scriptDialog.jsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html" %>
  3. <html>
  4. <head>
  5. <title>脚本管理列表</title>
  6. <%@include file="/commons/include/get.jsp" %>
  7. <script type="text/javascript">
  8. window.name="win";
  9. var tmpScript="";
  10. $(function(){
  11. $("#layoutMain").ligerLayout({ rightWidth: 350, height: '100%'});
  12. });
  13. function selectScript()
  14. {
  15. if(tmpScript==""){
  16. $.ligerDialog.warn("还没有选择脚本!",'提示信息');
  17. return ;
  18. }
  19. window.returnValue= tmpScript;
  20. window.close();
  21. }
  22. function ifrloaded(){
  23. $("#scriptListFrame").contents().find("tr.even,tr.odd").click(function(){
  24. var obj=$(this);
  25. var memo=$("textarea[name='memo']",obj).val();
  26. tmpScript=$("textarea[name='script']",obj).val();
  27. $("#tdMemo").text(memo);
  28. $("#tdScript").text(tmpScript);
  29. });
  30. }
  31. </script>
  32. <style type="text/css">
  33. div.bottom{text-align: center;}
  34. div.bottom input {width:65px;margin: 8px 10px;font-size: 14px;height: 23px;}
  35. html { overflow-x: hidden; }
  36. </style>
  37. </head>
  38. <body>
  39. <div id="layoutMain" style="width:100%">
  40. <div position="right" title="预览" width="300">
  41. <div class="panel-detail">
  42. <table class="table-detail" cellpadding="0" cellspacing="0" border="0">
  43. <tr>
  44. <th width="20%">描述: </th>
  45. <td id="tdMemo"></td>
  46. </tr>
  47. <tr>
  48. <th width="20%">脚本: </th>
  49. <td id="tdScript"></td>
  50. </tr>
  51. </table>
  52. </div>
  53. </div>
  54. <div position="center" id="framecenter">
  55. <!--
  56. <div class="panel-search">
  57. <form id="searchForm" method="post" action="dialog.ht" target="win">
  58. <ul class="row">
  59. <li><span class="label">脚本分类:</span>
  60. <select name="Q_category_S">
  61. <option value="">全部</option>
  62. <c:forEach items="${categoryList }" var="catName">
  63. <option value="${catName}">${catName}</option>
  64. </c:forEach>
  65. </select>
  66. <input type="submit" value="查询"></li>
  67. </ul>
  68. </form>
  69. </div>
  70. <div class="panel-data" style="overflow:auto;height:450px;">
  71. <display:table name="scriptList" id="scriptItem" requestURI="list.ht" cellpadding="1" cellspacing="1" class="table-grid">
  72. <display:column title="名称" style="text-align:left" >
  73. ${scriptItem.name}
  74. <textarea name="memo" style="display: none;">${scriptItem.memo}</textarea>
  75. <textarea name="script" style="display: none;">${scriptItem.script}</textarea>
  76. </display:column>
  77. </display:table>
  78. <hotent:paging tableId="scriptItem" showExplain="false" showPageSize="false" />
  79. </div>
  80. -->
  81. <iframe onload="ifrloaded()" id="scriptListFrame" name="scriptListFrame" height="100%" width="100%" frameborder="0" src="${ctx}/platform/system/script/selector.ht"></iframe>
  82. </div>
  83. <div position="bottom" class="bottom" style='margin-top:10px;'>
  84. <a href='#' class='button' onclick="selectScript()" ><span class="icon ok"></span><span >选择</span></a>
  85. <a href='#' class='button' style='margin-left:10px;' onclick="window.close()"><span class="icon cancel"></span><span >取消</span></a>
  86. </div>
  87. </div>
  88. </body>
  89. </html>