sealSelector.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>电子印章管理</title>
  7. <%@include file="/commons/include/get.jsp"%>
  8. <style type="text/css">
  9. .Div_MySeal_click{
  10. background:#F00;
  11. }
  12. .Div_MySeal_Move{
  13. background:#FF0;
  14. }
  15. </style>
  16. <script type="text/javascript">
  17. /* function returnSeal(sealId,sealName,fileId){
  18. var obj = {};
  19. obj.sealId = sealId;
  20. obj.sealName = sealName;
  21. obj.fileId = fileId;
  22. if (window.opener != undefined) {
  23. window.opener.returnValue = obj;
  24. }else if (window.parent != undefined) {
  25. parent.window.returnValue = obj;
  26. }else {
  27. window.returnValue = obj;
  28. }
  29. window.close();
  30. } */
  31. $(function(){
  32. var tbodySeal = $('#tbodySeal');
  33. var seals = $("div[name=mySealDiv]",tbodySeal);
  34. seals.each(function(){
  35. divMouseMove($(this));
  36. changeStyle($(this),seals);
  37. });
  38. });
  39. //移过事件
  40. function divMouseMove(div_me){
  41. div_me.hover(
  42. function() {
  43. div_me.addClass('Div_MySeal_Move');
  44. },
  45. function() {
  46. div_me.removeClass("Div_MySeal_Move");
  47. }
  48. );
  49. }
  50. //点击 事件
  51. function changeStyle(div_me,seals){
  52. var sealId = div_me.attr("id");
  53. div_me.click(function(){
  54. var myclass = div_me.attr("class");
  55. if(myclass==""||myclass=="Div_MySeal_Move"){
  56. // div_me.addClass('Div_MySeal_click');
  57. div_me.attr("class","Div_MySeal_click");
  58. }else{
  59. div_me.attr("class","");
  60. }
  61. seals.each(function(){
  62. var other_div_me=$(this);
  63. var otherSealId = other_div_me.attr("id");
  64. if(sealId!=otherSealId){
  65. other_div_me.attr("class","");
  66. }
  67. });
  68. });
  69. }
  70. </script>
  71. </head>
  72. <body>
  73. <div class="panel-toolbar">
  74. <div class="group">
  75. <a class="link search" id="btnSearch">查询</a>
  76. </div>
  77. </div>
  78. <div class="panel-search">
  79. <form id="searchForm" method="post" action="selector.ht">
  80. <ul class="row">
  81. <li><span class="label">印章名:</span>
  82. <input type="text" name="sealName" class="inputText" value="${sealName}"/> </li>
  83. </il>
  84. </form>
  85. </div>
  86. <div align="center">
  87. <table class="table-grid table-list" cellpadding="1" style="margin-top:10px;" cellspacing="1" id="tableSeal" width="96%" >
  88. <tr>
  89. <th colspan="3">电子印章列表</th>
  90. </tr>
  91. <tbody id="tbodySeal">
  92. <c:if test="${fn:length(sealList)==0}">
  93. <tr>
  94. <td colspan="3">暂时没有符合的内容</td>
  95. </tr>
  96. </c:if>
  97. <!-- 有内容时 -->
  98. <c:forEach items="${sealList}" var="seal" varStatus="status" >
  99. <c:if test="${status.count%3==1}">
  100. <tr>
  101. <td width="33%" align="center">
  102. <div id="${seal.sealId}" name="mySealDiv" class="" value="{'sealId':'${seal.sealId}','sealName':'${seal.sealName}','fileId':'${seal.attachmentId}'}" >
  103. <c:if test="${ !empty seal.showImageId && !(seal.showImageId eq '') }">
  104. <img alt="${seal.sealName}" src="${ctx}/platform/system/sysFile/getFileById.ht?fileId=${seal.showImageId}" width="100px" height="100px" >
  105. </br>
  106. ${seal.sealName}
  107. </c:if>
  108. <c:if test="${ empty seal.showImageId || (seal.showImageId eq '') }">
  109. <div style="width:100px;height:110px" ></br></br></br>${seal.sealName}</div>
  110. </c:if>
  111. </div>
  112. </td>
  113. </c:if>
  114. <c:if test="${status.count%3==2}">
  115. <td width="33%" align="center">
  116. <div id="${seal.sealId}" name="mySealDiv" class="" value="{'sealId':'${seal.sealId}','sealName':'${seal.sealName}','fileId':'${seal.attachmentId}'}" >
  117. <c:if test="${ !empty seal.showImageId && !(seal.showImageId eq '') }">
  118. <img alt="${seal.sealName}" src="${ctx}/platform/system/sysFile/getFileById.ht?fileId=${seal.showImageId}" width="100px" height="100px" >
  119. </br>
  120. ${seal.sealName}
  121. </c:if>
  122. <c:if test="${ empty seal.showImageId || (seal.showImageId eq '') }">
  123. <div style="width:100px;height:110px" ></br></br></br>${seal.sealName}</div>
  124. </c:if>
  125. </div>
  126. </td>
  127. </c:if>
  128. <c:if test="${status.count%3==0}">
  129. <td width="34%" align="center">
  130. <div id="${seal.sealId}" name="mySealDiv" class="" value="{'sealId':'${seal.sealId}','sealName':'${seal.sealName}','fileId':'${seal.attachmentId}'}" >
  131. <c:if test="${ !empty seal.showImageId && !(seal.showImageId eq '') }">
  132. <img alt="${seal.sealName}" src="${ctx}/platform/system/sysFile/getFileById.ht?fileId=${seal.showImageId}" width="100px" height="100px" >
  133. </br>
  134. ${seal.sealName}
  135. </c:if>
  136. <c:if test="${ empty seal.showImageId || (seal.showImageId eq '') }">
  137. <div style="width:100px;height:110px" ></br></br></br>${seal.sealName}</div>
  138. </c:if>
  139. </div>
  140. </td>
  141. </tr>
  142. </c:if>
  143. </c:forEach>
  144. <!-- 不够填充表格时,补上并完整表格 -->
  145. <c:if test="${fn:length(sealList)%3==1}">
  146. <td align="center" width="33%"></td>
  147. <td align="center" width="33%"></td>
  148. </tr>
  149. </c:if>
  150. <c:if test="${fn:length(sealList)%3==2}">
  151. <td align="center" width="34%"></td>
  152. </tr>
  153. </c:if>
  154. </tbody>
  155. </table>
  156. </div>
  157. <%-- <div class="panel-search">
  158. <form id="searchForm" method="post" action="selector.ht">
  159. <ul class="row">
  160. <li><span class="label">印章名:</span>
  161. <input type="text" name="Q_sealName_S" class="inputText" value="${param['Q_sealName_S']}"/> </li>
  162. <li><span class="label">印章持有者姓名:</span>
  163. <input type="text" name="Q_belongName_S" class="inputText" value="${param['Q_belongName_S']}"/></li>
  164. </il>
  165. </form>
  166. </div>
  167. <br />
  168. <display:table name="sealList" id="sealItem" requestURI="selector.ht" sort="external" cellpadding="1" cellspacing="1" class="table-grid">
  169. <display:column media="html" style="width:30px;">
  170. <input type="radio" class="pk" name="attachmentId" value="${sealItem.attachmentId}" />
  171. </display:column>
  172. <display:column property="sealName" title="印章名" sortable="true" sortName="sealName"></display:column>
  173. <display:column property="belongName" title="印章持所属单位或个人" sortable="true" sortName="belongName"></display:column>
  174. </display:table>
  175. <hotent:paging tableId="sealItem" /> --%>
  176. </body>
  177. </html>