log_list.tpl.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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)?> <?php echo L('username')?> <input type="text" value="phpcms" class="input-text" name="search[username]" size='10'> <?php echo L('times')?> <?php echo form::date('search[start_time]','','1')?> <?php echo L('to')?> <?php echo form::date('search[end_time]','','1')?> <input type="submit" value="<?php echo L('determine_search')?>" class="button" name="dosubmit"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="button" name="del_log_4" value="<?php echo L('removed_data')?>" onclick="location='?m=admin&c=log&a=delete&week=4&menuid=<?php echo $_GET['menuid'];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>'" />
  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="80"><?php echo L('username')?></th>
  27. <th ><?php echo L('module')?></th>
  28. <th ><?php echo L('file')?></th>
  29. <th width="120"><?php echo L('time')?></th>
  30. <th width="120">IP</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <?php
  35. if(is_array($infos)){
  36. foreach($infos as $info){
  37. ?>
  38. <tr>
  39. <td align="center"><?php echo $info['username']?></td>
  40. <td align="center"><?php echo $info['module']?></td>
  41. <td align="left" title="<?php echo $info['querystring']?>"><?php echo str_cut($info['querystring'], 40);?></td>
  42. <td align="center"><?php echo $info['time'];//echo $info['lastusetime'] ? date('Y-m-d H:i', $info['lastusetime']):''?></td>
  43. <td align="center"><?php echo $info['ip']?> </td>
  44. </tr>
  45. <?php
  46. }
  47. }
  48. ?></tbody>
  49. </table>
  50. <div class="btn">
  51. </div>
  52. <div id="pages"><?php echo $pages?></div>
  53. </div>
  54. </form>
  55. </div>
  56. </body>
  57. </html>
  58. <script type="text/javascript">
  59. function checkuid() {
  60. var ids='';
  61. $("input[name='logid[]']:checked").each(function(i, n){
  62. ids += $(n).val() + ',';
  63. });
  64. if(ids=='') {
  65. window.top.art.dialog({content:'<?php echo L('select_operations')?>',lock:true,width:'200',height:'50',time:1.5},function(){});
  66. return false;
  67. } else {
  68. myform.submit();
  69. }
  70. }
  71. </script>