1 | {footer_script} |
---|
2 | jQuery(document).ready(function(){ |
---|
3 | |
---|
4 | jQuery('#submitipban').click(function(){ |
---|
5 | jQuery("#banip_edit").toggle(); |
---|
6 | jQuery("#ipedit").hide(); |
---|
7 | jQuery("input[name=submitaddipban]").focus(); |
---|
8 | }); |
---|
9 | |
---|
10 | jQuery('.lip').mouseover(function(){ |
---|
11 | jQuery(this).children('span').show(); |
---|
12 | }); |
---|
13 | jQuery('.lip').mouseout(function(){ |
---|
14 | jQuery(this).children('span').hide(); |
---|
15 | }); |
---|
16 | |
---|
17 | }); |
---|
18 | {/footer_script} |
---|
19 | |
---|
20 | <div class="titrePage"> |
---|
21 | <h2>{'Ban IP'|@translate}</h2> |
---|
22 | </div> |
---|
23 | {if isset ($ipbangest)} |
---|
24 | <p class="showCreateAlbum" id="showAddIP"> |
---|
25 | <a href="#" id="submitipban" class="icon-plus-circled mouse">{'Ban new IP address'|translate}</a> |
---|
26 | | <a href="{$ipbangest.U_DELETEALL}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><span class="icon-trash mouse"></span>{'Delete all banned IP addresses'|@translate}</a> |
---|
27 | |
---|
28 | </p> |
---|
29 | {/if} |
---|
30 | <div id="banip_edit" style="display: none;"> |
---|
31 | <form method="post"> |
---|
32 | <fieldset> |
---|
33 | <legend>{'Ban new IP address'|@translate}</legend> |
---|
34 | {'IP'|@translate} <input " type="text" name="inserip" data-ip placeholder="123.123.123.123/123.123.123.*" value="" size="50" maxlenght="50" required pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|\*)$"> |
---|
35 | <br> |
---|
36 | <br> |
---|
37 | <input class="submit" name="submitaddipban" type="submit" value="{'Add'|@translate}" /> |
---|
38 | </fieldset> |
---|
39 | </form> |
---|
40 | </div> |
---|
41 | {if isset ($ipbangest)} |
---|
42 | <form method="post" > |
---|
43 | <fieldset> |
---|
44 | <legend>{'List IP banned'|@translate}</legend> |
---|
45 | {foreach from=$ipban2 item=ipban} |
---|
46 | <div class="lip"> |
---|
47 | <!-- {$ipban.ID} --> {$ipban.IP} |
---|
48 | <span class="actionip" style="display: none"> |
---|
49 | <a href="{$ipban.U_EDIT}"><span class="icon-pencil"></span>{'Edit'|@translate}</a> |
---|
50 | | <a href="{$ipban.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><span class="icon-trash"></span>{'delete'|@translate}</a> |
---|
51 | </span> |
---|
52 | </div> |
---|
53 | {/foreach} |
---|
54 | </table> |
---|
55 | </fieldset> |
---|
56 | </form> |
---|
57 | {/if} |
---|
58 | {if isset ($ipban_edit)} |
---|
59 | <form method="post" id="ipedit"> |
---|
60 | <fieldset> |
---|
61 | <legend>{'Edit IP banned'|@translate}</legend> |
---|
62 | <input type="hidden" name="invisibleID" value="{$ipban_edit.ID}"> |
---|
63 | {'IP'|@translate} <input " type="text" name="inserip" data-ip="1" placeholder="123.123.123.123/123.123.123.*" value="{$ipban_edit.IP}" size="50" maxlenght="50" required pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|\*)$"> |
---|
64 | <br> |
---|
65 | <br> |
---|
66 | <input class="submit" name="submitaddipban2" data-ip type="submit" value="{'Update'|@translate}" /> |
---|
67 | </fieldset> |
---|
68 | </form> |
---|
69 | {/if} |
---|