[31394] | 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 | |
---|
[31368] | 20 | <div class="titrePage"> |
---|
[31394] | 21 | <h2>{'Ban IP'|@translate}</h2> |
---|
[31368] | 22 | </div> |
---|
| 23 | {if isset ($ipbangest)} |
---|
[31394] | 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 IP Ban'|@translate}</a> |
---|
| 27 | |
---|
| 28 | </p> |
---|
[31368] | 29 | {/if} |
---|
[31394] | 30 | <div id="banip_edit" style="display: none;"> |
---|
[31368] | 31 | <form method="post"> |
---|
| 32 | <fieldset> |
---|
[31394] | 33 | <legend>{'Ban new IP address'|@translate}</legend> |
---|
[31368] | 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> |
---|
[31394] | 37 | <input class="submit" name="submitaddipban" type="submit" value="{'Add'|@translate}" /> |
---|
[31368] | 38 | </fieldset> |
---|
| 39 | </form> |
---|
[31394] | 40 | </div> |
---|
[31368] | 41 | {if isset ($ipbangest)} |
---|
| 42 | <form method="post" > |
---|
| 43 | <fieldset> |
---|
[31394] | 44 | <legend>{'List IP banned'|@translate}</legend> |
---|
[31368] | 45 | {foreach from=$ipban2 item=ipban} |
---|
[31394] | 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> |
---|
[31368] | 53 | {/foreach} |
---|
| 54 | </table> |
---|
| 55 | </fieldset> |
---|
| 56 | </form> |
---|
| 57 | {/if} |
---|
| 58 | {if isset ($ipban_edit)} |
---|
[31394] | 59 | <form method="post" id="ipedit"> |
---|
[31368] | 60 | <fieldset> |
---|
[31394] | 61 | <legend>{'Edit IP banned'|@translate}</legend> |
---|
[31368] | 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> |
---|
[31394] | 66 | <input class="submit" name="submitaddipban2" data-ip type="submit" value="{'Update'|@translate}" /> |
---|
[31368] | 67 | </fieldset> |
---|
| 68 | </form> |
---|
| 69 | {/if} |
---|