pyclog_list.jsp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function page(start, count){
  5. document.forms.pycLog.start.value=start;
  6. document.forms.pycLog.count.value=count;
  7. document.forms.pycLog.action.value="list";
  8. document.forms.pycLog.submit();
  9. doDisable(document.forms.pycLog, "button");
  10. }
  11. function doChangePage(count){
  12. document.forms.pycLog.start.value= (document.forms.pycLog.startx.value-1)*10;
  13. if(document.forms.pycLog.start.value=="NaN") document.forms.pycLog.start.value = 0;
  14. document.forms.pycLog.count.value=count;
  15. document.forms.pycLog.action.value="list";
  16. document.forms.pycLog.submit();
  17. doDisable(document.forms.pycLog, "button");
  18. }
  19. function fillIndex(val){
  20. document.forms.pycLog.startx.value = val.value;
  21. }
  22. function doFilter(){
  23. document.forms.pycLog.action.value="list";
  24. document.forms.pycLog.submit();
  25. doDisable(document.forms.pycLog, "button");
  26. }
  27. function doReset(){
  28. document.forms.pycLog.logDate_filter.value="";
  29. document.forms.pycLog.clear.value="true";
  30. document.forms.pycLog.action.value="list";
  31. document.forms.pycLog.submit();
  32. doDisable(document.forms.pycLog, "button");
  33. }
  34. function doOrder(field, type){
  35. document.forms.pycLog.pycLog_fieldOrder.value=field;
  36. document.forms.pycLog.pycLog_orderType.value=type;
  37. document.forms.pycLog.action.value="list";
  38. document.forms.pycLog.submit();
  39. doDisable(document.forms.pycLog, "button");
  40. }
  41. -->
  42. </script>
  43. <FORM name="pycLog" method="post" action="pycLog.do">
  44. <input type="hidden" name="start" value="">
  45. <input type="hidden" name="startx" value="">
  46. <input type="hidden" name="action" value="">
  47. <input type="hidden" name="code" value="">
  48. <input type="hidden" name="count" value="">
  49. <input type="hidden" name="clear" value="">
  50. <input type="hidden" name="pycLog_fieldOrder" value="<bean:write name="pycLog_fieldOrder"/>">
  51. <input type="hidden" name="pycLog_orderType" value="<bean:write name="pycLog_orderType"/>">
  52. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  53. <tr>
  54. <td class="titleHeader"><bean:message key="project.pycLog.key"/> - LIST</td>
  55. </tr>
  56. <tr>
  57. <td><%@ include file="../common/paging.jsp"%>
  58. </td>
  59. </tr>
  60. </table>
  61. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  62. <tr>
  63. <td width="5%" class="titleField"><div align="center">#</div></td>
  64. <td width="10%" align="left" height="10" valign="top" class="titleField">
  65. <bean:message key="pycLog.uncode.key"/>
  66. <logic:equal name="pycLog_fieldOrder" value="uncode">
  67. <logic:equal name="pycLog_orderType" value="ASC">
  68. <a href="#" onclick="doOrder('uncode', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  69. </logic:equal>
  70. <logic:equal name="pycLog_orderType" value="DESC">
  71. <a href="#" onclick="doOrder('uncode', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  72. </logic:equal>
  73. </logic:equal>
  74. <logic:notEqual name="pycLog_fieldOrder" value="uncode">
  75. <a href="#" onclick="doOrder('uncode', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  76. </logic:notEqual>
  77. </td>
  78. <td width="20%" align="left" height="10" valign="top" class="titleField">
  79. <bean:message key="pycLog.logdet.key"/>
  80. <logic:equal name="pycLog_fieldOrder" value="logdet">
  81. <logic:equal name="pycLog_orderType" value="ASC">
  82. <a href="#" onclick="doOrder('logdet', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  83. </logic:equal>
  84. <logic:equal name="pycLog_orderType" value="DESC">
  85. <a href="#" onclick="doOrder('logdet', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  86. </logic:equal>
  87. </logic:equal>
  88. <logic:notEqual name="pycLog_fieldOrder" value="logdet">
  89. <a href="#" onclick="doOrder('logdet', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  90. </logic:notEqual>
  91. </td>
  92. <td width="20%" align="left" height="10" valign="top" class="titleField">
  93. <bean:message key="pycLog.logdes.key"/>
  94. <logic:equal name="pycLog_fieldOrder" value="logdes">
  95. <logic:equal name="pycLog_orderType" value="ASC">
  96. <a href="#" onclick="doOrder('logdes', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  97. </logic:equal>
  98. <logic:equal name="pycLog_orderType" value="DESC">
  99. <a href="#" onclick="doOrder('logdes', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  100. </logic:equal>
  101. </logic:equal>
  102. <logic:notEqual name="pycLog_fieldOrder" value="logdes">
  103. <a href="#" onclick="doOrder('logdes', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  104. </logic:notEqual>
  105. </td>
  106. <td width="10%" align="left" height="10" valign="top" class="titleField">
  107. <bean:message key="pycLog.date.key"/>
  108. <logic:equal name="pycLog_fieldOrder" value="logdt8">
  109. <logic:equal name="pycLog_orderType" value="ASC">
  110. <a href="#" onclick="doOrder('logdt8', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  111. </logic:equal>
  112. <logic:equal name="pycLog_orderType" value="DESC">
  113. <a href="#" onclick="doOrder('logdt8', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  114. </logic:equal>
  115. </logic:equal>
  116. <logic:notEqual name="pycLog_fieldOrder" value="logdt8">
  117. <a href="#" onclick="doOrder('logdt8', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  118. </logic:notEqual>
  119. </td>
  120. </tr>
  121. <logic:notEmpty name="pycLogList">
  122. <logic:iterate id="element" name="pycLogList" scope="request" indexId="index">
  123. <%
  124. int sequence = 0;
  125. sequence++;
  126. String bgcolor = "FFFFFF";
  127. if(sequence%2 == 0){
  128. bgcolor = "EDEDE8";
  129. }
  130. %>
  131. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  132. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  133. <td align="left" class="celBorder">&nbsp;
  134. <bean:write name="element" property="uncode"/>&nbsp;
  135. </td>
  136. <td align="left" class="celBorder">&nbsp;
  137. <bean:write name="element" property="logdet"/>&nbsp;
  138. </td>
  139. <td align="left" class="celBorder">&nbsp;
  140. <bean:write name="element" property="logdes"/>&nbsp;
  141. </td>
  142. <td align="left" class="celBorder">&nbsp;
  143. <bean:write name="element" property="logdt8"/>&nbsp;
  144. </td>
  145. </tr>
  146. </logic:iterate>
  147. </logic:notEmpty>
  148. <tr>
  149. <td valign="top">&nbsp;</td>
  150. <td valign="top">&nbsp;</td>
  151. <td valign="top">&nbsp;</td>
  152. <td valign="top">&nbsp;</td>
  153. <td valign="top"></td>
  154. </tr>
  155. </TABLE>
  156. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  157. <tr>
  158. <td class="search"><bean:message key="project.search.key" /></td>
  159. </tr>
  160. </table>
  161. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  162. <tr>
  163. <td width="15%"><b><bean:message key="pycLog.date.key"/></b></td>
  164. <td width="10">:</td>
  165. <td width="30%">
  166. <input type="text" name="logDate_filter" value="<logic:notEmpty name="logDate_filter"><bean:write name="logDate_filter" format="dd/MM/yyyy" /></logic:notEmpty>" size="15" maxlength="10">
  167. <a href="javascript:cal_logDate_filter.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
  168. <script language="javascript" type="text/javascript">
  169. var cal_logDate_filter = new calendar1(document.forms['pycLog'].elements['logDate_filter']);
  170. </script>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td>&nbsp;</td>
  175. <td>&nbsp;</td>
  176. <td>&nbsp;</td>
  177. <td>&nbsp;</td>
  178. <td>&nbsp;</td>
  179. <td>&nbsp;</td>
  180. </tr>
  181. <tr>
  182. <td>&nbsp;</td>
  183. <td>&nbsp;</td>
  184. <td colspan="3" align="left">
  185. <input type="button" size="50" maxlength="25" value="<bean:message key="button.reset"/>" onclick="doReset();"/>
  186. &nbsp;&nbsp;
  187. <input type="button" value="<bean:message key="button.search"/>" onclick="doFilter();"/>
  188. </td>
  189. <td>&nbsp;</td>
  190. <td>&nbsp;</td>
  191. <td>&nbsp;</td>
  192. </tr>
  193. </table>
  194. </form>
  195. <%@ include file="../common/footer.jsp" %>