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 nofilter}}</p>
14 <form action="{{$baseurl}}/admin/blocklist/contact" 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}}
31 {{foreach $contacts as $contact}}
33 <td class="checkbox"><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
34 <td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.nickname}}"></td>
37 <a href="{{$contact.url}}" title="{{$contact.nickname}}">{{$contact.addr}}</a>
39 <td class="reason">{{if $contact.block_reason}}{{$contact.block_reason}}{{else}}N/A{{/if}}</td>
44 <p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
45 {{$paginate nofilter}}
46 <div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock}}" /></div>
52 <h3>{{$h_newblock}}</h3>
53 <form action="{{$baseurl}}/admin/blocklist/contact" method="post">
54 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
55 <table id="contactblock">
58 <td>{{include file="field_input.tpl" field=$contacturl}}</td>
59 <td>{{include file="field_checkbox.tpl" field=$contact_block_purge}}</td>
60 <td>{{include file="field_textarea.tpl" field=$contact_block_reason}}</td>
64 <div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit}}" /></div>