log_search_list.tpl.php 2.7 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=log&a=search_log&menuid=<?php echo $_GET['menuid'];?>" method="get" >
  8. <input type="hidden" value="admin" name="m">
  9. <input type="hidden" value="log" name="c">
  10. <input type="hidden" value="search_log" name="a">
  11. <table width="100%" cellspacing="0" class="search-form">
  12. <tbody>
  13. <tr>
  14. <td><div class="explain-col"><?php echo L('module')?>: <?php echo form::select($module_arr,'','name="search[module]"',$default)?> 用户名: <input type="text" value=<?php echo $_GET['search']['username'];?> class="input-text" name="search[username]" size='10'> 时 间: <?php echo form::date('search[start_time]',$_GET['search']['start_time'],'1')?> 至 <?php echo form::date('search[end_time]',$_GET['search']['end_time'],'1')?> <input type="submit" value="确定搜索" 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=log&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('logid[]');"></th>
  27. <th width="80"><?php echo L('username')?></th>
  28. <th ><?php echo L('module')?></th>
  29. <th ><?php echo L('file')?></th>
  30. <th width="120"><?php echo L('time')?></th>
  31. <th width="120">IP</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php
  36. if(is_array($infos)){
  37. foreach($infos as $info){
  38. ?>
  39. <tr>
  40. <td align="center">
  41. <input type="checkbox" name="logid[]" value="<?php echo $info['logid']?>">
  42. </td>
  43. <td align="center"><?php echo $info['username']?></td>
  44. <td align="center"><?php echo $info['module']?></td>
  45. <td align="left" title="<?php echo $info['querystring']?>"><?php echo str_cut($info['querystring'], 40);?></td>
  46. <td align="center"><?php echo $info['time'];//echo $info['lastusetime'] ? date('Y-m-d H:i', $info['lastusetime']):''?></td>
  47. <td align="center"><?php echo $info['ip']?> </td>
  48. </tr>
  49. <?php
  50. }
  51. }
  52. ?></tbody>
  53. </table>
  54. <div class="btn">
  55. </div>
  56. <div id="pages"><?php echo $pages?></div>
  57. </div>
  58. </form></div>
  59. </body>
  60. </html>
  61. <script type="text/javascript">
  62. function checkuid() {
  63. var ids='';
  64. $("input[name='logid[]']:checked").each(function(i, n){
  65. ids += $(n).val() + ',';
  66. });
  67. if(ids=='') {
  68. window.top.art.dialog({content:'<?php echo L('select_operations')?>',lock:true,width:'200',height:'50',time:1.5},function(){});
  69. return false;
  70. } else {
  71. myform.submit();
  72. }
  73. }
  74. </script>