routingTable_edit.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.routingTable.action.value="edit_search";
  6. document.forms.routingTable.submit();
  7. doDisable(document.forms.routingTable, "button");
  8. }
  9. function doUpdateRoutingTableList(id){
  10. document.forms.routingTable.id.value=id;
  11. document.forms.routingTable.action.value = "edit_list";
  12. document.forms.routingTable.submit();
  13. }
  14. function doBack(){
  15. document.forms.routingTable.action.value="edit";
  16. document.forms.routingTable.submit();
  17. doDisable(document.forms.routingTable, "button");
  18. }
  19. -->
  20. </script>
  21. <!-- CONTENT -->
  22. <form name="routingTable" method="post" action="routingTable.do">
  23. <input type="hidden" name="action" value ="">
  24. <input type="hidden" name="id" value ="">
  25. <input type="hidden" name="post">
  26. <input type="hidden" name="status" value ="">
  27. <!--td width="80%" valign="top"-->
  28. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  29. <tr>
  30. <td class="titleHeader"><bean:message key="project.routingTable.key"/> - EDIT</td>
  31. </tr>
  32. </table>
  33. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  34. <tr><td><html:errors/></td></tr>
  35. <tr>
  36. <td align="center">
  37. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  38. <logic:empty name="routingTableListUpdate">
  39. <logic:empty name="routingTable" property="channel">
  40. <tr align = "left">
  41. <td width="15%"><b><bean:message key="routingTable.channel.key" /></b></td>
  42. <td width="1%">:</td>
  43. <td width="84%" align="left" colspan="5">
  44. <input type="text" name="channelSearch" value="">
  45. </td>
  46. </tr>
  47. <tr align = "left">
  48. <td width="15%"></td>
  49. <td width="1%"></td>
  50. <td width="84%" align="left" colspan="5">
  51. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  52. </td>
  53. </tr>
  54. <tr align = "left">
  55. <td width="15%"></td>
  56. <td width="1%"></td>
  57. <td width="84%" align="left" colspan="5">
  58. </td>
  59. </tr>
  60. <tr align = "left">
  61. <td width="15%"></td>
  62. <td width="1%"></td>
  63. <td width="84%" align="left" colspan="5">
  64. </td>
  65. </tr>
  66. </logic:empty>
  67. </logic:empty>
  68. <!--START LIST UPDATE ROUTING TABLE-->
  69. <logic:notEmpty name="routingTableListUpdate">
  70. <tr>
  71. <td width="5%" class="titleField"><div align="center">#</div></td>
  72. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.codeStart.key"/></td>
  73. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.codeEnd.key"/></td>
  74. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.channel.key"/></td>
  75. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.startDate.key"/> </td>
  76. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.endDate.key"/></td>
  77. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="routingTable.queue.key"/></td>
  78. <td width="5%" class="titleField">&nbsp;</td>
  79. </tr>
  80. <logic:notEmpty name="routingTableListUpdate">
  81. <logic:iterate id="element" name="routingTableListUpdate" scope="request" indexId="index">
  82. <%
  83. sequence++;
  84. String bgcolor = "FFFFFF";
  85. if(sequence%2 == 0){
  86. bgcolor = "EDEDE8";
  87. }
  88. %>
  89. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  90. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  91. <td align="left" class="celBorder">
  92. &nbsp;<bean:write name="element" property="codeStart"/>
  93. </td>
  94. <td align="left" class="celBorder">
  95. &nbsp;<bean:write name="element" property="codeEnd"/>
  96. </td>
  97. <td align="left" class="celBorder">
  98. &nbsp;<bean:write name="element" property="channel"/>
  99. </td>
  100. <td align="left" class="celBorder">
  101. <logic:notEmpty name="element" property="startDate">
  102. &nbsp;<bean:write name="element" property="startDate.time" format="yyyy-MM-dd HH:mm:ss.SSS"/>
  103. </logic:notEmpty>&nbsp;
  104. </td>
  105. <td align="left" class="celBorder">
  106. <logic:notEmpty name="element" property="endDate">
  107. &nbsp;<bean:write name="element" property="endDate.time" format="yyyy-MM-dd HH:mm:ss.SSS"/>
  108. </logic:notEmpty>&nbsp;
  109. </td>
  110. <td align="left" class="celBorder">
  111. &nbsp;<bean:write name="element" property="queue"/>
  112. </td>
  113. <td align="center" class="celBorder">
  114. <a href="#" ><img src="./images/edit.gif" border="0" onclick="doUpdateRoutingTableList('<bean:write name="element" property="id"/>');" alt="update"></a>
  115. </td>
  116. </tr>
  117. </logic:iterate>
  118. </logic:notEmpty>
  119. <tr align = "left">
  120. <td width="100%" colspan="8"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"></td>
  121. </tr>
  122. </logic:notEmpty>
  123. <!--END LIST UPDATE ROUTING TABLE-->
  124. </table>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td>&nbsp;</td>
  129. </tr>
  130. </table>
  131. </form>
  132. <!-- END CONTENT -->
  133. <%@ include file="../common/footer.jsp"%>