logsList.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <%@ page contentType="text/html; charset=UTF-8"%>
  2. <%@ page import="org.maxkey.domain.*"%>
  3. <%@ page import="java.util.Map,java.util.LinkedHashMap"%>
  4. <%@ taglib prefix="s" uri="http://www.connsec.com/tags" %>
  5. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  6. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
  7. <script type="text/javascript">
  8. function viewformatter (value, options, rData){
  9. return "<a href='javascript:void(0);' selid='"+rData["id"]+"' class='viewJsonObject' title='view more' >view more</a>";
  10. }
  11. $(".viewJsonObject").on("click",function(){
  12. var content=$("#list").getRowData($(this).attr("selid")+"")["content"];
  13. var jsonHtml='<textarea name="jsondata" id="formatteddata" rows="20" cols="70">';
  14. jsonHtml+=FormatJSON(eval("("+content+")"));
  15. jsonHtml+='</textarea>';
  16. $.alert({
  17. title : "JSON Data View",
  18. type : null,
  19. content : jsonHtml,
  20. okVal : null,
  21. cancelVal : $.platform.messages.alert.no,
  22. ok : null,
  23. cancel : function (){}
  24. });
  25. });
  26. </script>
  27. <div id="tool_box">
  28. <table class="datatable">
  29. <tr>
  30. <td width="120px"><s:Locale code="logs.servicename"/>:</td>
  31. <td width="375px">
  32. <form id="basic_search_form">
  33. <input style="width:200px" id="serviceName" name="serviceName" type="text" value="" >
  34. <input class="button primary" id="searchBtn" type="button" size="50" value="<s:Locale code="button.text.search"/>"/>
  35. </form>
  36. </td>
  37. <td colspan="2">
  38. <input class="button" id="advancedSearchExpandBtn" type="button" size="50" value="<s:Locale code="button.text.expandsearch"/>" expandValue="<s:Locale code="button.text.expandsearch"/>" collapseValue="<s:Locale code="button.text.collapsesearch"/>">
  39. </td>
  40. </tr>
  41. </table>
  42. </div>
  43. <div id="advanced_search">
  44. <form id="advanced_search_form">
  45. <table class="datatable">
  46. <tr>
  47. <td width="120px"><s:Locale code="logs.message"/></td>
  48. <td width="360px">
  49. <input name="message" type="text" >
  50. </td>
  51. <td width="120px"><s:Locale code="logs.operatetype"/></td>
  52. <td width="360px">
  53. <select id="operateType" name="operateType" >
  54. <option value="" selected>All</option>
  55. <option value="add" >Add</option>
  56. <option value="update" >Update</option>
  57. <option value="delete" >Delete</option>
  58. </select>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td width="120px"><s:Locale code="common.text.startdate"/></td>
  63. <td width="360px">
  64. <input id="datepickerstart" name="startDate" type="text" >
  65. </td>
  66. <td width="120px"><s:Locale code="common.text.enddate"/></td>
  67. <td width="360px">
  68. <input id="datepickerend" type="text" id="endDate" name="endDate" title="" value=""/>
  69. </td>
  70. </tr>
  71. </table>
  72. </form>
  73. </div>
  74. <div class="mainwrap" id="main">
  75. <s:Grid id="list" url="/logs/grid" multiselect="false">
  76. <s:Column width="0" field="id" title="id" hidden="true"/>
  77. <s:Column width="100" field="serviceName" title="logs.servicename"/>
  78. <s:Column width="100" field="message" title="logs.message"/>
  79. <s:Column width="100" field="view" title="logs.content" formatter="viewformatter"/>
  80. <s:Column width="100" field="messageType" title="logs.messagetype"/>
  81. <s:Column width="100" field="operateType" title="logs.operatetype" />
  82. <s:Column width="100" field="username" title="userinfo.username" />
  83. <s:Column width="0" field="createdBy" title="common.text.createdby" hidden="true"/>
  84. <s:Column width="100" field="createdDate" title="common.text.createddate" hidden="false"/>
  85. <s:Column width="0" field="modifiedBy" title="common.text.modifiedby" hidden="true"/>
  86. <s:Column width="0" field="modifiedDate" title="common.text.modifieddate" hidden="true"/>
  87. </s:Grid>
  88. </div>