]> git.mxchange.org Git - friendica.git/blob - view/templates/admin/contactblock.tpl
Remove uses of HTML escaping in Smarty templates
[friendica.git] / view / templates / admin / contactblock.tpl
1 <script>
2         function selectall(cls) {
3                 $('.' + cls).prop('checked', true);
4                 return false;
5         }
6         function selectnone(cls) {
7                 $('.' + cls).prop('checked', false);
8                 return false;
9         }
10 </script>
11 <div id="adminpage">
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}}">
16
17                 <h3>{{$h_contacts}}</h3>
18         {{if $contacts}}
19                 <table id="contactblock">
20                         <thead>
21                                 <tr>
22                                         <th></th>
23                                                 {{foreach $th_contacts as $th}}
24                                         <th>
25                                                 {{$th}}
26                                         </th>
27                                         {{/foreach}}
28                                         <th></th>
29                                 </tr>
30                         </thead>
31                         <tbody>
32                                 {{foreach $contacts as $contact}}
33                                 <tr>
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>
39                                 </tr>
40                                 {{/foreach}}
41                         </tbody>
42                 </table>
43                 <p><a href="#" onclick="return selectall('contacts_ckbx');">{{$select_all}}</a> | <a href="#" onclick="return selectnone('contacts_ckbx');">{{$select_none}}</a></p>
44                 {{$paginate}}
45                 <div class="submit"><input type="submit" name="page_contactblock_unblock" value="{{$unblock}}" /></div>
46         {{else}}
47                 <p>{{$no_data}}</p>
48         {{/if}}
49         </form>
50
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">
55                         <tbody>
56                                 <tr>
57                                         <td>{{include file="field_input.tpl" field=$contacturl}}</td>
58                                 </tr>
59                         </tbody>
60                 </table>
61                 <div class="submit"><input type="submit" name="page_contactblock_block" value="{{$submit}}" /></div>
62         </form>
63 </div>