2017-12-01 06:43:39 +01:00
|
|
|
<script>
|
|
|
|
function selectall(cls) {
|
|
|
|
$('.' + cls).prop('checked', true);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
function selectnone(cls) {
|
|
|
|
$('.' + cls).prop('checked', false);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="adminpage">
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
2018-12-14 07:24:26 +01:00
|
|
|
<p>{{$description nofilter}}</p>
|
2019-04-22 02:46:37 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/contact" method="post">
|
2017-12-01 06:43:39 +01:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
|
|
|
|
<h3>{{$h_contacts}}</h3>
|
|
|
|
{{if $contacts}}
|
|
|
|
<table id="contactblock">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
{{foreach $th_contacts as $th}}
|
|
|
|
<th>
|
|
|
|
{{$th}}
|
|
|
|
</th>
|
|
|
|
{{/foreach}}
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{foreach $contacts as $contact}}
|
|
|
|
<tr>
|
|
|
|
<td class="checkbox"><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
|
2018-12-14 04:28:12 +01:00
|
|
|
<td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.nickname}}"></td>
|
|
|
|
<td class="name">{{$contact.name}}</td>
|
|
|
|
<td class="addr">{{$contact.addr}}</td>
|
|
|
|
<td class="addr"><a href="{{$contact.url}}" title="{{$contact.nickname}}" >{{$contact.url}}</a></td>
|
2017-12-01 06:43:39 +01:00
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$paginate nofilter}}
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock}}" /></div>
|
2017-12-01 06:43:39 +01:00
|
|
|
{{else}}
|
2018-12-14 04:28:12 +01:00
|
|
|
<p>{{$no_data}}</p>
|
2017-12-01 06:43:39 +01:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3>{{$h_newblock}}</h3>
|
2019-04-22 02:46:37 +02:00
|
|
|
<form action="{{$baseurl}}/admin/blocklist/contact" method="post">
|
2017-12-01 06:43:39 +01:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
<table id="contactblock">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>{{include file="field_input.tpl" field=$contacturl}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit}}" /></div>
|
2017-12-01 06:43:39 +01:00
|
|
|
</form>
|
|
|
|
</div>
|