rpgCall_list.jsp 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <%@ include file="../common/header.jsp"%>
  2. <%
  3. if (seq==0){
  4. seq = (Integer) request.getAttribute("rpgCall_start");
  5. }
  6. %>
  7. <script type="text/javascript" language="javascript">
  8. <!--
  9. function page(start, count){
  10. document.forms.rpgCall.start.value=start;
  11. document.forms.rpgCall.count.value=count;
  12. document.forms.rpgCall.action.value="list";
  13. document.forms.rpgCall.submit();
  14. doDisable(document.forms.rpgCall, "button");
  15. }
  16. function doChangePage(count){
  17. document.forms.rpgCall.start.value= (document.forms.rpgCall.startx.value-1)*20;
  18. if(document.forms.rpgCall.start.value=="NaN") document.forms.rpgCall.start.value = 0;
  19. document.forms.rpgCall.count.value=count;
  20. document.forms.rpgCall.action.value="list";
  21. document.forms.rpgCall.submit();
  22. doDisable(document.forms.rpgCall, "button");
  23. }
  24. function fillIndex(val){
  25. document.forms.rpgCall.startx.value = val.value;
  26. }
  27. function doCreate(){
  28. document.forms.rpgCall.action.value="new";
  29. document.forms.rpgCall.submit();
  30. doDisable(document.forms.rpgCall, "button");
  31. }
  32. function doDetail(id){
  33. document.forms.rpgCall.id.value=id;
  34. document.forms.rpgCall.action.value="newDetail";
  35. document.forms.rpgCall.submit();
  36. }
  37. function doFilter(){
  38. document.forms.rpgCall.action.value="list";
  39. document.forms.rpgCall.submit();
  40. doDisable(document.forms.rpgCall, "button");
  41. }
  42. function doReset(){
  43. document.forms.rpgCall.rpgCall_id_filter.value="";
  44. document.forms.rpgCall.rpgCall_cmd_filter.value="";
  45. document.forms.rpgCall.clear.value="true";
  46. document.forms.rpgCall.action.value="list";
  47. document.forms.rpgCall.submit();
  48. doDisable(document.forms.rpgCall, "button");
  49. }
  50. function doOrder(field, type){
  51. document.forms.rpgCall.rpgCall_fieldOrder.value=field;
  52. document.forms.rpgCall.rpgCall_orderType.value=type;
  53. document.forms.rpgCall.action.value="list";
  54. document.forms.rpgCall.submit();
  55. doDisable(document.forms.status, "button");
  56. }
  57. -->
  58. </script>
  59. <!-- CONTENT -->
  60. <form name="rpgCall" method="post" action="rpgCall.do">
  61. <input type="hidden" name="start" value="">
  62. <input type="hidden" name="startx" value="">
  63. <input type="hidden" name="action" value="">
  64. <input type="hidden" name="count" value="">
  65. <input type="hidden" name="id" value="">
  66. <input type="hidden" name="clear" value="">
  67. <input type="hidden" name="rpgCall_fieldOrder" value="<bean:write name="rpgCall_fieldOrder"/>">
  68. <input type="hidden" name="rpgCall_orderType" value="<bean:write name="rpgCall_orderType"/>">
  69. <input type="hidden" name="focus_field" value="">
  70. <!--td width="80%" valign="top"-->
  71. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  72. <tr>
  73. <td class="titlePage"><bean:message key="project.rpgCall.key"/> - LIST</td>
  74. </tr>
  75. <tr>
  76. <td><%@ include file="../common/paging.jsp"%></td>
  77. </tr>
  78. </table>
  79. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  80. <tr>
  81. <td width="5%" class="titleField"><div align="center">#</div></td>
  82. <td align="left" height="10" valign="top" class="titleField"><bean:message key="rpgCall.id.key" />
  83. <logic:equal name="rpgCall_fieldOrder" value="id">
  84. <logic:equal name="rpgCall_orderType" value="ASC">
  85. <a href="#" onclick="doOrder('id', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  86. </logic:equal>
  87. <logic:equal name="rpgCall_orderType" value="DESC">
  88. <a href="#" onclick="doOrder('id', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  89. </logic:equal>
  90. </logic:equal>
  91. <logic:notEqual name="rpgCall_fieldOrder" value="id">
  92. <a href="#" onclick="doOrder('id', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  93. </logic:notEqual>
  94. </td>
  95. <td align="left" height="10" valign="top" class="titleField"><bean:message key="rpgCall.cmd.key" />
  96. <logic:equal name="rpgCall_fieldOrder" value="cmd">
  97. <logic:equal name="rpgCall_orderType" value="ASC">
  98. <a href="#" onclick="doOrder('cmd', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  99. </logic:equal>
  100. <logic:equal name="rpgCall_orderType" value="DESC">
  101. <a href="#" onclick="doOrder('cmd', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  102. </logic:equal>
  103. </logic:equal>
  104. <logic:notEqual name="rpgCall_fieldOrder" value="cmd">
  105. <a href="#" onclick="doOrder('cmd', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  106. </logic:notEqual>
  107. </td>
  108. <td align="left" height="10" valign="top" class="titleField"><bean:message key="rpgCall.host.key" />
  109. <logic:equal name="rpgCall_fieldOrder" value="host.id">
  110. <logic:equal name="rpgCall_orderType" value="ASC">
  111. <a href="#" onclick="doOrder('host.id', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  112. </logic:equal>
  113. <logic:equal name="rpgCall_orderType" value="DESC">
  114. <a href="#" onclick="doOrder('host.id', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  115. </logic:equal>
  116. </logic:equal>
  117. <logic:notEqual name="rpgCall_fieldOrder" value="host.id">
  118. <a href="#" onclick="doOrder('host.id', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  119. </logic:notEqual>
  120. </td>
  121. <td align="left" height="10" valign="top" class="titleField"><bean:message key="rpgCall.timeout.key" />
  122. <logic:equal name="rpgCall_fieldOrder" value="timeout">
  123. <logic:equal name="rpgCall_orderType" value="ASC">
  124. <a href="#" onclick="doOrder('timeout', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
  125. </logic:equal>
  126. <logic:equal name="rpgCall_orderType" value="DESC">
  127. <a href="#" onclick="doOrder('timeout', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
  128. </logic:equal>
  129. </logic:equal>
  130. <logic:notEqual name="rpgCall_fieldOrder" value="timeout">
  131. <a href="#" onclick="doOrder('timeout', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
  132. </logic:notEqual>
  133. </td>
  134. <td width="5%" class="titleField">&nbsp;</td>
  135. </tr>
  136. <logic:notEmpty name="rpgCallList">
  137. <logic:iterate id="element" name="rpgCallList" scope="request" indexId="index">
  138. <%
  139. sequence++;
  140. String bgcolor = "FFFFFF";
  141. if(sequence%2 == 0){
  142. bgcolor = "EDEDE8";
  143. }
  144. %>
  145. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  146. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  147. <td align="left" class="celBorder">
  148. &nbsp;<bean:write name="element" property="id"/>
  149. </td>
  150. <td align="left" class="celBorder">
  151. &nbsp;<bean:write name="element" property="cmd"/>
  152. </td>
  153. <td align="left" class="celBorder">
  154. &nbsp;<bean:write name="element" property="host.id"/>
  155. </td>
  156. <td align="left" class="celBorder">
  157. &nbsp;<bean:write name="element" property="timeout"/>
  158. </td>
  159. <td align="center" class="celBorder" ><a href="#" ><img src="./images/detail.gif" border="0" onclick="doDetail('<bean:write name="element" property="id"/>');" alt="see detail"></a>
  160. </td>
  161. </tr>
  162. </logic:iterate>
  163. </logic:notEmpty>
  164. <tr>
  165. <td valign="top">&nbsp;</td>
  166. <td valign="top">&nbsp;</td>
  167. <td valign="top">&nbsp;</td>
  168. <td valign="top">&nbsp;</td>
  169. <td valign="top">&nbsp;</td>
  170. <td valign="top">
  171. <%/*<div align="center">
  172. <input type="button" size="50" maxlength="25" value="<bean:message key="button.create"/>" onclick="doCreate();">
  173. </div>*/%>
  174. </td>
  175. </tr>
  176. </table>
  177. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  178. <tr>
  179. <td class="search"><bean:message key="project.search.key" /></td>
  180. </tr>
  181. </table>
  182. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  183. <tr>
  184. <td width="20%"><b><bean:message key="rpgCall.id.key"/></b></td>
  185. <td width="1%">:</td>
  186. <td width="29%">
  187. <label>
  188. <input type="text" name="rpgCall_id_filter" value="<logic:notEmpty name="rpgCall_id_filter"><bean:write name="rpgCall_id_filter"/></logic:notEmpty>">
  189. </label>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td width="20%"><b><bean:message key="rpgCall.cmd.key"/></b></td>
  194. <td width="1%">:</td>
  195. <td width="29%">
  196. <label>
  197. <input type="text" name="rpgCall_cmd_filter" value="<logic:notEmpty name="rpgCall_cmd_filter"><bean:write name="rpgCall_cmd_filter"/></logic:notEmpty>">
  198. </label>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td>&nbsp;</td>
  203. <td>&nbsp;</td>
  204. <td>&nbsp;</td>
  205. <td>&nbsp;</td>
  206. <td>&nbsp;</td>
  207. <td>&nbsp;</td>
  208. </tr>
  209. <tr>
  210. <td>&nbsp;</td>
  211. <td>&nbsp;</td>
  212. <td colspan="3" align="left">
  213. <input type="button" size="50" maxlength="25" value="<bean:message key="button.reset"/>" onclick="doReset();">
  214. &nbsp;&nbsp;
  215. <input type="button" value="<bean:message key="button.search"/>" onclick="doFilter();">
  216. </td>
  217. <td>&nbsp;</td>
  218. <td>&nbsp;</td>
  219. <td>&nbsp;</td>
  220. </tr>
  221. </table>
  222. </form>
  223. <!-- END CONTENT -->
  224. <logic:notEmpty name="focus"><bean:write name="focus" filter="false" /></logic:notEmpty>
  225. <%@ include file="../common/footer.jsp"%>