人人商城

log.html 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {template '_header'}
  2. <div class="page-heading">
  3. <h2>操作日志 <small>总数: <span class='text-danger'>{$total}</span></small></h2>
  4. </div>
  5. <form action="./index.php" method="get" class="form-horizontal" plugins="form">
  6. <input type="hidden" name="c" value="site" />
  7. <input type="hidden" name="a" value="entry" />
  8. <input type="hidden" name="m" value="ewei_shopv2" />
  9. <input type="hidden" name="do" value="web" />
  10. <input type="hidden" name="r" value="perm.log" />
  11. <div class="page-toolbar row m-b-sm m-t-sm">
  12. <div class="col-sm-1">
  13. <div class="input-group-btn">
  14. <button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
  15. </div>
  16. </div>
  17. <div class="col-sm-11 pull-right">
  18. <div class='input-group input-group-sm' style='float:left;' >
  19. {php echo tpl_daterange('time', array('placeholder'=>'操作时间'),true);}
  20. </div>
  21. <select name='logtype' class='form-control input-sm select-md select2' style="width:250px;" >
  22. <option value=''>操作类型</option>
  23. {loop $types $t}
  24. <option value='{$t['value']}' {if $_GPC['logtype']==$t['value']}selected{/if}>{$t['text']}</option>
  25. {/loop}
  26. </select>
  27. <div class="input-group">
  28. <input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="可搜索操作员用户名/操作内容"> <span class="input-group-btn">
  29. <button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
  30. </div>
  31. </div>
  32. </div>
  33. </form>
  34. <table class="table table-hover table-responsive">
  35. <thead>
  36. <tr>
  37. <th style='width:50px;'>ID</th>
  38. <th style='width:80px;'>操作员</th>
  39. <th style='width:200px;' >类型</th>
  40. <th>操作内容</th>
  41. <th style='width:110px;'>操作IP</th>
  42. <th style='width:100px;'>操作时间</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {loop $list $row}
  47. <tr data-toggle='popover' data-html='true' data-placement='top' data-trigger='hover' data-content='{$row['op']}'>
  48. <td>{$row['id']}</td>
  49. <td>{$row['username']}</td>
  50. <td>{$row['name']}</td>
  51. <td><span>{$row['op']}</span></td>
  52. <td>{$row['ip']}</td>
  53. <td>{php echo date('Y-m-d', $row['createtime'])}<br/>{php echo date('H:i:s', $row['createtime'])}</td>
  54. </tr>
  55. {/loop}
  56. </tbody>
  57. </table>
  58. {$pager}
  59. </div>
  60. </form>
  61. {template '_footer'}