index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  5. <load href='__TMPL__Common/js/calendar/calendar.css' />
  6. <load href='__TMPL__Common/js/calendar/calendar.js' />
  7. <div class="main">
  8. <div class="main_title_list"><div class="list-line-ico"></div>{$main_title}</div>
  9. <script>
  10. function claer_log(id)
  11. {
  12. if(confirm("确定要清除全部日志?"))
  13. $.ajax({
  14. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=claer_log",
  15. data: "ajax=1",
  16. dataType: "json",
  17. success: function(obj){
  18. alert(obj.info);
  19. func();
  20. function func(){
  21. if(obj.status==1){
  22. location.href=location.href;
  23. }
  24. }
  25. }
  26. });
  27. }
  28. </script>
  29. <div class="search_row">
  30. <form name="search" action="__APP__" method="get">
  31. {%KEYWORD}:<input type="text" class="textbox" name="log_info" value="{:trim($_REQUEST['log_info'])}" />{%LOG_TIME}:<span><input type="text" class="textbox" name="log_begin_time" id="log_begin_time" value="{:trim($_REQUEST['log_begin_time'])}" onfocus="return showCalendar('log_begin_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_log_begin_time');" /><input type="button" class="button" id="btn_log_begin_time" value="{%SELECT_TIME}" onclick="return showCalendar('log_begin_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_log_begin_time');" /></span>
  32. -
  33. <span><input type="text" class="textbox" name="log_end_time" id="log_end_time" value="{:trim($_REQUEST['log_end_time'])}" onfocus="return showCalendar('log_end_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_log_end_time');" /><input type="button" class="button" id="btn_log_end_time" value="{%SELECT_TIME}" onclick="return showCalendar('log_end_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_log_end_time');" /></span><input type="hidden" value="Log" name="m" /><input type="hidden" value="index" name="a" /><input type="submit" class="button" value="{%SEARCH}" />
  34. </form>
  35. </div>
  36. <html:list
  37. id="dataTable"
  38. style="dataTable"
  39. name="log"
  40. checkbox="true"
  41. action="true"
  42. datasource="list"
  43. show="id:{%ID}|90px,log_info:{%LOG_INFO},log_time|to_date:{%LOG_TIME},log_ip:{%LOG_IP},log_admin|get_admin_name:{%LOG_ADMIN},log_status|get_log_status:{%LOG_STATUS},module:{%MODULE},action:{%ACTION}"
  44. actionlist="--" />
  45. <table class="dataTable">
  46. <tbody>
  47. <td colspan="10">
  48. <input type="button" class="button button-del" value="清除全部日志" onclick="claer_log();" />
  49. </td>
  50. </tbody>
  51. </table>
  52. <div class="page">{$page}</div>
  53. </div>
  54. <include file="Public:footer" />