2 function selectall(cls) {
3 $('.' + cls).prop('checked', true);
6 function selectnone(cls) {
7 $('.' + cls).prop('checked', false);
12 <h1>{{$title}} - {{$page}}</h1>
13 <p>{{$description}}</p>
14 <form action="{{$baseurl}}/admin/contactblock" method="post">
15 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
17 <h3>{{$h_contacts}}</h3>
19 <table id="contactblock">
23 {{foreach $th_contacts as $th}}
32 {{foreach $contacts as $contact}}
34 <td class="checkbox"><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
35 <td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.nickname}}"></td>
36 <td class="name">{{$contact.name}}</td>
37 <td class="addr">{{$contact.addr}}</td>
38 <td class="addr"><a href="{{$contact.url}}" title="{{$contact.nickname}}" >{{$contact.url}}</a></td>
43 <p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
45 <div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock|escape:'html'}}" /></div>
47 <p>{{$no_data|escape:'html'}}</p>
51 <h3>{{$h_newblock}}</h3>
52 <form action="{{$baseurl}}/admin/contactblock" method="post">
53 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
54 <table id="contactblock">
57 <td>{{include file="field_input.tpl" field=$contacturl}}</td>
61 <div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit|escape:'html'}}" /></div>