ip_search_list.tpl.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_dialog = 1;
  4. include $this->admin_tpl('header','admin');
  5. ?>
  6. <div class="pad-lr-10">
  7. <form name="searchform" action="?m=admin&c=ipbanned&a=search_ip&menuid=<?php echo $_GET['menuid'];?>" method="get" >
  8. <input type="hidden" value="admin" name="m">
  9. <input type="hidden" value="ipbanned" name="c">
  10. <input type="hidden" value="search_ip" name="a">
  11. <table width="100%" cellspacing="0" class="search-form">
  12. <tbody>
  13. <tr>
  14. <td><div class="explain-col">IP: <input type="text" value="" class="input-text" name="search[ip]"> <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
  15. </div>
  16. </td>
  17. </tr>
  18. </tbody>
  19. </table>
  20. </form>
  21. <form name="myform" id="myform" action="?m=admin&c=ipbanned&a=delete" method="post" onsubmit="checkuid();return false;">
  22. <div class="table-list">
  23. <table width="100%" cellspacing="0">
  24. <thead>
  25. <tr>
  26. <th width="35" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('ipbannedid[]');"></th>
  27. <th width="30%">IP</th>
  28. <th ><?php echo L('deblocking_time')?></th>
  29. <th width="120"><?php echo L('operations_manage')?></th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <?php
  34. if(is_array($infos)){
  35. foreach($infos as $info){
  36. ?>
  37. <tr>
  38. <td align="center">
  39. <input type="checkbox" name="ipbannedid[]" value="<?php echo $info['ipbannedid']?>">
  40. </td>
  41. <td width="30%" align="left"><span class="<?php echo $info['style']?>"><?php echo $info['ip']?></span> </td>
  42. <td align="center"><?php echo date('Y-m-d H:i', $info['expires']);?></td>
  43. <td align="center"><a href="javascript:confirmurl('?m=admin&c=ipbanned&a=delete&ipbannedid=<?php echo $info['ipbannedid']?>', "<?php echo L('confirm_del_ip')?>")"><?php echo L('delete')?></a> </td>
  44. </tr>
  45. <?php
  46. }
  47. }
  48. ?></tbody>
  49. </table>
  50. <div class="btn">
  51. <a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('selected_all')?></a>/<a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a>
  52. <input type="submit" name="submit" class="button" value="<?php echo L('remove_all_selected')?>" onClick="return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')" />
  53. </div>
  54. <div id="pages"><?php echo $pages?></div>
  55. </div>
  56. </form></div>
  57. </body>
  58. </html>
  59. <script type="text/javascript">
  60. function checkuid() {
  61. var ids='';
  62. $("input[name='ipbannedid[]']:checked").each(function(i, n){
  63. ids += $(n).val() + ',';
  64. });
  65. if(ids=='') {
  66. window.top.art.dialog({content:"<?php echo L('before_select_operation')?>",lock:true,width:'200',height:'50',time:1.5},function(){});
  67. return false;
  68. } else {
  69. myform.submit();
  70. }
  71. }
  72. </script>