2 <h2>{{$header}}{{if $total}} ({{$total}}){{/if}}</h2>
4 {{if $finding}}<h4>{{$finding}}</h4>{{/if}}
6 <div id="contacts-search-wrapper">
7 <form id="contacts-search-form" action="{{$cmd}}" method="get" >
8 <span class="contacts-search-desc">{{$desc nofilter}}</span>
9 <input type="text" name="search" id="contacts-search" class="search-input" onfocus="this.select();" value="{{$search}}" />
10 <input type="submit" name="submit" id="contacts-search-submit" value="{{$submit}}" />
13 <div id="contacts-search-end"></div>
17 <form action="{{$baseurl}}/contact/batch/" method="POST">
18 {{foreach $contacts as $contact}}
19 {{include file="contact_template.tpl"}}
21 <div id="contact-edit-end"></div>
22 <div id="contacts-actions">
23 {{foreach $batch_actions as $n=>$l}}
24 <input class="batch-action" name="{{$n}}" value="{{$l}}" type="submit">
29 $(document).ready(function() {
30 // javascript dialog to batch actions
31 $(".batch-action").click(function(e){
32 if (confirm($(this).attr('value')+" ?")) {
40 // add javascript confirm dialog to "drop" links. Plain html url have "?confirm=1" to show confirmation form, we need to remove it
41 $(".drop").each(function() {
42 $(this).attr('href', $(this).attr('href').replace("confirm=1","") );
43 $(this).click(function(e){
44 if (confirm("{{$contact_drop_confirm}}")) {
56 {{$paginate nofilter}}