loglist.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_adminlog}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.admin_log_man}</dt>
  16. <dd><input class="txt" name="admin_name" value="{$Request.get.admin_name}" type="text"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.admin_log_dotime}</dt>
  20. <dd><input class="txt date" type="text" value="{$Request.get.time_from}" id="time_from" name="time_from">
  21. <label for="time_to">~</label>
  22. <input class="txt date" type="text" value="{$Request.get.time_to}" id="time_to" name="time_to"/>
  23. </dd>
  24. </dl>
  25. <div class="btn_group">
  26. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  27. {if $filtered}
  28. <a href="{:url('Adminlog/loglist')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  29. {/if}
  30. <a class="btn btn-mini" href="javascript:export_xls('{:url('Adminlog/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>
  31. </div>
  32. </div>
  33. </form>
  34. <div class="explanation" id="explanation">
  35. <div class="title" id="checkZoom">
  36. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  37. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  38. </div>
  39. <ul>
  40. <li>{$Think.lang.admin_log_tips2}</li>
  41. </ul>
  42. </div>
  43. <table class="ds-default-table">
  44. <thead>
  45. <tr class="thead">
  46. <th></th>
  47. <th>{$Think.lang.admin_log_man}</th>
  48. <th>{$Think.lang.admin_log_do}</th>
  49. <th class="align-center">{$Think.lang.admin_log_dotime}</th>
  50. <th class="align-center">IP</th>
  51. <th class="align-center">URL</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. {notempty name="adminlog_list"}
  56. {foreach name="adminlog_list" item="v"}
  57. <tr class="hover">
  58. <td class="w24">
  59. <input type="checkbox" class="checkitem" value="{$v.adminlog_id}">
  60. </td>
  61. <td>{$v.admin_name}</td>
  62. <td>{$v.adminlog_content}</td>
  63. <td class="align-center">{$v.adminlog_time|date="Y-m-d H:i:s"}</td>
  64. <td class="align-center">{$v.adminlog_ip}</td>
  65. <td class="align-center">{$v.adminlog_url}</td>
  66. </tr>
  67. {/foreach}
  68. {else}
  69. <tr class="no_data">
  70. <td colspan="10">{$Think.lang.ds_no_record}</td>
  71. </tr>
  72. {/notempty}
  73. </tbody>
  74. <tfoot>
  75. {notempty name="adminlog_list"}
  76. <tr class="tfoot">
  77. <td><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></td>
  78. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  79. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  80. </td>
  81. </tr>
  82. {/notempty}
  83. </tfoot>
  84. </table>
  85. {$show_page|raw}
  86. </div>
  87. <script type="text/javascript">
  88. $(function () {
  89. $('#time_from').datepicker({dateFormat: 'yy-mm-dd'});
  90. $('#time_to').datepicker({dateFormat: 'yy-mm-dd'});
  91. });
  92. function submit_delete(ids_str){
  93. _uri = ADMINSITEURL+"/Adminlog/list_del.html?adminlog_id=" + ids_str;
  94. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  95. }
  96. </script>