2017-12-01 22:33:04 -05:00
|
|
|
<script type="text/javascript" src="view/theme/frio/js/mod_admin.js"></script>
|
2017-12-01 00:43:39 -05:00
|
|
|
<div id="adminpage">
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
<p>{{$description}}</p>
|
|
|
|
<form action="{{$baseurl}}/admin/contactblock" method="post">
|
2018-04-22 14:23:24 -04:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2017-12-01 00:43:39 -05:00
|
|
|
|
|
|
|
<h3>{{$h_contacts}}</h3>
|
2018-04-22 14:23:24 -04:00
|
|
|
{{if $contacts}}
|
2017-12-01 00:43:39 -05:00
|
|
|
<table id="contactblock" class="table table-condensed table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-04-22 14:23:24 -04:00
|
|
|
<th><input type="checkbox" class="selecttoggle contacts_ckbx" data-select-class="contacts_ckbx" data-select-all="{{$select_all}}" data-select-none="{{$select_none}}" title="{{$select_all}}"/></th>
|
|
|
|
{{foreach $th_contacts as $th}}
|
|
|
|
<th>
|
|
|
|
{{$th}}
|
|
|
|
</th>
|
2017-12-01 00:43:39 -05:00
|
|
|
{{/foreach}}
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{foreach $contacts as $contact}}
|
2018-04-22 14:23:24 -04:00
|
|
|
<tr>
|
|
|
|
<td><input type="checkbox" class="contacts_ckbx" id="id_contact_{{$contact.id}}" name="contacts[]" value="{{$contact.id}}"/></td>
|
|
|
|
<td><img class="icon" src="{{$contact.micro}}" alt="{{$contact.nickname}}" title="{{$contact.addr}}"></td>
|
|
|
|
<td class="name">{{$contact.name}}</td>
|
|
|
|
<td class="addr" colspan="2"><a href="{{$contact.url}}" title="{{$contact.addr}}" >{{$contact.url}}</a></td>
|
|
|
|
</tr>
|
2017-12-01 00:43:39 -05:00
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
2017-12-01 22:33:04 -05:00
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2018-04-22 14:23:24 -04:00
|
|
|
<td><input type="checkbox" class="selecttoggle contacts_ckbx" data-select-class="contacts_ckbx" data-select-all="{{$select_all}}" data-select-none="{{$select_none}}" title="{{$select_all}}"/></td>
|
2017-12-01 22:33:04 -05:00
|
|
|
<td colspan="3">
|
|
|
|
{{$total_contacts}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
2017-12-01 00:43:39 -05:00
|
|
|
</table>
|
2017-12-01 22:33:04 -05:00
|
|
|
<div class="submit"><button type="submit" class="btn btn-small btn-default" name="page_contactblock_unblock" value="1">{{$unblock|escape:'html'}}</button></div>
|
2017-12-01 00:43:39 -05:00
|
|
|
{{$paginate}}
|
2018-04-22 14:23:24 -04:00
|
|
|
{{else}}
|
2017-12-01 00:43:39 -05:00
|
|
|
<p>{{$no_data|escape:'html'}}</p>
|
2018-04-22 14:23:24 -04:00
|
|
|
{{/if}}
|
2017-12-01 00:43:39 -05:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3>{{$h_newblock}}</h3>
|
|
|
|
<form action="{{$baseurl}}/admin/contactblock" method="post">
|
|
|
|
<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>
|
2017-12-01 22:33:04 -05:00
|
|
|
<div class="submit"><button type="submit" class="btn btn-primary" name="page_contactblock_block" value="1">{{$submit|escape:'html'}}</button></div>
|
2017-12-01 00:43:39 -05:00
|
|
|
</form>
|
|
|
|
</div>
|