paramMap_edit.jsp 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.paramMap.action.value="edit_search";
  6. document.forms.paramMap.submit();
  7. doDisable(document.forms.paramMap, "button");
  8. }
  9. function doUpdateParamMapList(group1,name1){
  10. document.forms.paramMap.group1.value=group1;
  11. document.forms.paramMap.name1.value=name1;
  12. document.forms.paramMap.action.value = "edit_list";
  13. document.forms.paramMap.submit();
  14. }
  15. function doBack(){
  16. document.forms.paramMap.action.value="list";
  17. document.forms.paramMap.submit();
  18. doDisable(document.forms.paramMap, "button");
  19. }
  20. function doCreateParamMap(){
  21. var x = window.confirm("<bean:message key="confirm.create"/>")
  22. if (x) {
  23. document.forms.paramMap.action.value="create_ok";
  24. document.forms.paramMap.post.value = "true";
  25. document.forms.paramMap.submit();
  26. }
  27. }
  28. function doUpdateParamMap(group1,name1){
  29. var x = window.confirm("<bean:message key="confirm.edit"/>");
  30. if(x){
  31. document.forms.paramMap.group1.value=group1;
  32. document.forms.paramMap.name1.value=name1;
  33. document.forms.paramMap.action.value = "edit_ok";
  34. document.forms.paramMap.post.value = "true";
  35. document.forms.paramMap.submit();
  36. }
  37. }
  38. function doDeleteParamMap(group1,name1){
  39. var x = window.confirm("<bean:message key="confirm.delete"/>");
  40. if(x){
  41. document.forms.paramMap.action.value="delete_paramMap";
  42. //document.forms.client.itemFocus.value="idClientTarget";
  43. document.forms.paramMap.group1.value=group1;
  44. document.forms.paramMap.name1.value=name1;
  45. document.forms.paramMap.submit();
  46. }
  47. }
  48. -->
  49. </script>
  50. <!-- CONTENT -->
  51. <form name="paramMap" method="post" action="paramMap.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="name1" value ="">
  56. <input type="hidden" name="post">
  57. <input type="hidden" name="status" value ="">
  58. <input type="hidden" name="itemFocus" value="paramMap_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.paramMap.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="paramMap.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="idSearchGroupName">
  80. <logic:equal name="idSearchGroupName" 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 PARAMETER MAP-->
  110. <logic:notEmpty name="paramMapListUpdate">
  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="paramMap.group.key"/></td>
  114. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="paramMap.name.key"/></td>
  115. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="paramMap.value.key"/></td>
  116. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="paramMap.seq.key"/> </td>
  117. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="paramMap.modified_by.key"/></td>
  118. <td width="15%" align="left" height="10" valign="top" class="titleField"><bean:message key="paramMap.description.key"/></td>
  119. <td width="5%" class="titleField">&nbsp;</td>
  120. </tr>
  121. <logic:notEmpty name="paramMapListUpdate">
  122. <logic:iterate id="element" name="paramMapListUpdate" scope="request" indexId="index">
  123. <%
  124. sequence++;
  125. String bgcolor = "FFFFFF";
  126. if(sequence%2 == 0){
  127. bgcolor = "EDEDE8";
  128. }
  129. %>
  130. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  131. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  132. <td align="left" class="celBorder">
  133. &nbsp;<bean:write name="element" property="id.group"/>
  134. </td>
  135. <td align="left" class="celBorder">
  136. &nbsp;<bean:write name="element" property="id.name"/>
  137. </td>
  138. <td align="left" class="celBorder">
  139. &nbsp;<bean:write name="element" property="value"/>
  140. </td>
  141. <td align="left" class="celBorder">
  142. &nbsp;<bean:write name="element" property="seq"/>
  143. </td>
  144. <td align="left" class="celBorder">
  145. &nbsp;<bean:write name="element" property="modified_by"/>
  146. </td>
  147. <td align="left" class="celBorder">
  148. &nbsp;<bean:write name="element" property="description"/>
  149. </td>
  150. <td align="center" class="celBorder">
  151. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doUpdateParamMapList('<bean:write name="element" property="id.group"/>','<bean:write name="element" property="id.name"/>');" alt="update"></a>
  152. <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteParamMap('<bean:write name="element" property="id.group"/>','<bean:write name="element" property="id.name"/>');" alt="remove"></a>
  153. </td>
  154. </tr>
  155. </logic:iterate>
  156. </logic:notEmpty>
  157. <tr align = "left">
  158. <td width="100%" colspan="8">
  159. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  160. <tr>
  161. <td width="15%"><b><bean:message
  162. key="paramMap.group.key" /> <font color="#FF0000">*</font></b></td>
  163. <td width="1">:</td>
  164. <td width="29%" align="left" valign="top"><input type="text"
  165. name="group"
  166. value='<logic:notEmpty name="paramMap" property="id"><bean:write name="paramMap" property="id.group"/></logic:notEmpty>'>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td width="15%"><b><bean:message key="paramMap.name.key" />
  171. <font color="#FF0000">*</font></b></td>
  172. <td width="1%">:</td>
  173. <td width="29%" align="left" valign="top"><input type="text"
  174. name="name"
  175. value='<logic:notEmpty name="paramMap" property="id"><bean:write name="paramMap" property="id.name"/></logic:notEmpty>'>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td width="15%"><b><bean:message
  180. key="paramMap.value.key" /><font color="#FF0000">*</font></b></td>
  181. <td width="1%">:</td>
  182. <td width="29%" align="left" valign="top"><input type="text"
  183. name="paramMapValue"
  184. value='<logic:notEmpty name="paramMap" property="value"><bean:write name="paramMap" property="value"/></logic:notEmpty>'>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td width="15%"><b><bean:message key="paramMap.seq.key" /></b></td>
  189. <td width="1%">:</td>
  190. <td width="29%" align="left" valign="top"><input type="text"
  191. name="seq"
  192. value='<logic:notEmpty name="paramMap" property="seq"><bean:write name="paramMap" property="seq"/></logic:notEmpty>'>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td width="15%"><b><bean:message key="paramMap.description.key" /></b></td>
  197. <td width="1%">:</td>
  198. <td width="29%" align="left" valign="top"><input type="text"
  199. name="description"
  200. value='<logic:notEmpty name="paramMap" property="description"><bean:write name="paramMap" property="description"/></logic:notEmpty>'>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td align="left" valign="top">&nbsp;</td>
  205. <td align="left" valign="top">&nbsp;</td>
  206. <td align="left" valign="top"><br>
  207. <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateParamMap('<logic:notEmpty name="paramMap" property="id"><bean:write name="paramMap" property="id.group"/></logic:notEmpty>','<logic:notEmpty name="paramMap" property="id"><bean:write name="paramMap" property="id.name"/></logic:notEmpty>');">
  208. </td>
  209. </tr>
  210. <tr>
  211. <td>&nbsp;</td>
  212. <td>&nbsp;</td>
  213. <td>&nbsp;</td>
  214. <td>&nbsp;</td>
  215. <td>&nbsp;</td>
  216. <td>&nbsp;</td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <tr>
  222. </tr>
  223. </logic:notEmpty>
  224. <!--END LIST UPDATE PARAMETER MAP-->
  225. </table>
  226. </td>
  227. </tr>
  228. <tr>
  229. <td>&nbsp;
  230. </td>
  231. </tr>
  232. </table>
  233. </form>
  234. <!-- END CONTENT -->
  235. <%@ include file="../common/footer.jsp"%>