errorMap_edit.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.errorMap.action.value="edit_search";
  6. document.forms.errorMap.submit();
  7. doDisable(document.forms.errorMap, "button");
  8. }
  9. function doUpdateErrorMapList(group1,original1){
  10. document.forms.errorMap.group1.value=group1;
  11. document.forms.errorMap.original1.value=original1;
  12. document.forms.errorMap.action.value = "edit_list";
  13. document.forms.errorMap.submit();
  14. }
  15. function doBack(){
  16. document.forms.errorMap.action.value="list";
  17. document.forms.errorMap.submit();
  18. doDisable(document.forms.errorMap, "button");
  19. }
  20. function doCreateErrorMap(){
  21. var x = window.confirm("<bean:message key="confirm.create"/>")
  22. if (x) {
  23. document.forms.errorMap.action.value="create_ok";
  24. document.forms.errorMap.post.value = "true";
  25. document.forms.errorMap.submit();
  26. }
  27. }
  28. function doUpdateErrorMap(group1,original1){
  29. var x = window.confirm("<bean:message key="confirm.edit"/>");
  30. if(x){
  31. document.forms.errorMap.group1.value=group1;
  32. document.forms.errorMap.original1.value=original1;
  33. document.forms.errorMap.action.value = "edit_ok";
  34. document.forms.errorMap.post.value = "true";
  35. document.forms.errorMap.submit();
  36. }
  37. }
  38. function doDeleteErrorMap(group1,original1){
  39. var x = window.confirm("<bean:message key="confirm.delete"/>");
  40. if(x){
  41. document.forms.errorMap.action.value="delete_errorMap";
  42. //document.forms.client.itemFocus.value="idClientTarget";
  43. document.forms.errorMap.group1.value=group1;
  44. document.forms.errorMap.original1.value=original1;
  45. document.forms.errorMap.submit();
  46. }
  47. }
  48. -->
  49. </script>
  50. <!-- CONTENT -->
  51. <form name="errorMap" method="post" action="errorMap.do">
  52. <input type="hidden" name="action" value ="">
  53. <input type="hidden" name="id" value ="">
  54. <input type="hidden" name="group1" value ="">
  55. <input type="hidden" name="original1" value ="">
  56. <input type="hidden" name="post">
  57. <input type="hidden" name="status" value ="">
  58. <input type="hidden" name="itemFocus" value="errorMap_group_filter">
  59. <!--td width="80%" valign="top"-->
  60. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  61. <tr>
  62. <td class="titleHeader"><bean:message key="project.errorMap.key"/> - EDIT</td>
  63. </tr>
  64. </table>
  65. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  66. <tr><td><html:errors/></td></tr>
  67. <tr>
  68. <td align="center">
  69. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  70. <tr align = "left">
  71. <td width="15%"><b><bean:message key="errorMap.group.key" /></b></td>
  72. <td width="1%">:</td>
  73. <td width="84%" align="left" colspan="5">
  74. <select name="id_search" style="width:150" id="group_id">
  75. <option value="">-- Select Group --</option>
  76. <logic:notEmpty name="groupList">
  77. <logic:iterate id="element_group" name="groupList" >
  78. <option value="<bean:write name="element_group" property="group" />"
  79. <logic:notEmpty name="idSearchGroupOriginal">
  80. <logic:equal name="idSearchGroupOriginal" value="${element_group.group}">
  81. selected
  82. </logic:equal>
  83. </logic:notEmpty>
  84. ><bean:write name="element_group" property="group" /></option>
  85. </logic:iterate>
  86. </logic:notEmpty>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr align = "left">
  91. <td width="15%"></td>
  92. <td width="1%"></td>
  93. <td width="84%" align="left" colspan="5">
  94. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  95. </td>
  96. </tr>
  97. <tr align = "left">
  98. <td width="15%"></td>
  99. <td width="1%"></td>
  100. <td width="84%" align="left" colspan="5">
  101. </td>
  102. </tr>
  103. <tr align = "left">
  104. <td width="15%"></td>
  105. <td width="1%"></td>
  106. <td width="84%" align="left" colspan="5">
  107. </td>
  108. </tr>
  109. <!--START LIST UPDATE ERROR MAP-->
  110. <logic:notEmpty name="errorMapListUpdate">
  111. <tr>
  112. <td width="5%" class="titleField"><div align="center">#</div></td>
  113. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="errorMap.group.key"/></td>
  114. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="errorMap.original.key"/></td>
  115. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="errorMap.target.key"/></td>
  116. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="errorMap.detail.key"/> </td>
  117. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="errorMap.modified_by.key"/></td>
  118. <td width="5%" class="titleField">&nbsp;</td>
  119. </tr>
  120. <logic:notEmpty name="errorMapListUpdate">
  121. <logic:iterate id="element" name="errorMapListUpdate" scope="request" indexId="index">
  122. <%
  123. sequence++;
  124. String bgcolor = "FFFFFF";
  125. if(sequence%2 == 0){
  126. bgcolor = "EDEDE8";
  127. }
  128. %>
  129. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  130. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  131. <td align="left" class="celBorder">
  132. &nbsp;<bean:write name="element" property="id.group"/>
  133. </td>
  134. <td align="left" class="celBorder">
  135. &nbsp;<bean:write name="element" property="id.original"/>
  136. </td>
  137. <td align="left" class="celBorder">
  138. &nbsp;<bean:write name="element" property="target"/>
  139. </td>
  140. <td align="left" class="celBorder">
  141. &nbsp;<bean:write name="element" property="detail"/>
  142. </td>
  143. <td align="left" class="celBorder">
  144. &nbsp;<bean:write name="element" property="modified_by"/>
  145. </td>
  146. <td align="center" class="celBorder">
  147. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doUpdateErrorMapList('<bean:write name="element" property="id.group"/>','<bean:write name="element" property="id.original"/>');" alt="update"></a>
  148. <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteErrorMap('<bean:write name="element" property="id.group"/>','<bean:write name="element" property="id.original"/>');" alt="remove"></a>
  149. </td>
  150. </tr>
  151. </logic:iterate>
  152. </logic:notEmpty>
  153. <tr align = "left">
  154. <td width="100%" colspan="8">
  155. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  156. <tr>
  157. <td width="15%"><b><bean:message
  158. key="errorMap.group.key" /> <font color="#FF0000">*</font></b></td>
  159. <td width="1">:</td>
  160. <td width="29%" align="left" valign="top"><input type="text"
  161. name="group"
  162. value='<logic:notEmpty name="errorMap" property="id"><bean:write name="errorMap" property="id.group"/></logic:notEmpty>'>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td width="15%"><b><bean:message key="errorMap.original.key" />
  167. <font color="#FF0000">*</font></b></td>
  168. <td width="1%">:</td>
  169. <td width="29%" align="left" valign="top"><input type="text"
  170. name="original"
  171. value='<logic:notEmpty name="errorMap" property="id"><bean:write name="errorMap" property="id.original"/></logic:notEmpty>'>
  172. </td>
  173. </tr>
  174. <tr>
  175. <td width="15%"><b><bean:message
  176. key="errorMap.target.key" /></b></td>
  177. <td width="1%">:</td>
  178. <td width="29%" align="left" valign="top"><input type="text"
  179. name="target"
  180. value='<logic:notEmpty name="errorMap" property="target"><bean:write name="errorMap" property="target"/></logic:notEmpty>'>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td width="15%"><b><bean:message key="errorMap.detail.key" /></b></td>
  185. <td width="1%">:</td>
  186. <td width="29%" align="left" valign="top"><input type="text"
  187. name="detail"
  188. value='<logic:notEmpty name="errorMap" property="detail"><bean:write name="errorMap" property="detail"/></logic:notEmpty>'>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td align="left" valign="top">&nbsp;</td>
  193. <td align="left" valign="top">&nbsp;</td>
  194. <td align="left" valign="top"><br>
  195. <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateErrorMap('<logic:notEmpty name="errorMap" property="id"><bean:write name="errorMap" property="id.group"/></logic:notEmpty>','<logic:notEmpty name="errorMap" property="id"><bean:write name="errorMap" property="id.original"/></logic:notEmpty>');">
  196. </td>
  197. </tr>
  198. <tr>
  199. <td>&nbsp;</td>
  200. <td>&nbsp;</td>
  201. <td>&nbsp;</td>
  202. <td>&nbsp;</td>
  203. <td>&nbsp;</td>
  204. <td>&nbsp;</td>
  205. </tr>
  206. </table>
  207. </td>
  208. </tr>
  209. <tr>
  210. </tr>
  211. </logic:notEmpty>
  212. <!--END LIST UPDATE ERROR MAP-->
  213. </table>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>&nbsp;
  218. </td>
  219. </tr>
  220. </table>
  221. </form>
  222. <!-- END CONTENT -->
  223. <%@ include file="../common/footer.jsp"%>