adaptorParam_edit.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.adaptorParam.action.value="edit_search";
  6. document.forms.adaptorParam.submit();
  7. doDisable(document.forms.adaptorParam, "button");
  8. }
  9. function doUpdateAdaptorParamList(id,name){
  10. document.forms.adaptorParam.id.value=id;
  11. document.forms.adaptorParam.name.value=name;
  12. document.forms.adaptorParam.action.value = "edit_list";
  13. document.forms.adaptorParam.submit();
  14. }
  15. function doBack(){
  16. document.forms.adaptorParam.action.value="edit";
  17. document.forms.adaptorParam.submit();
  18. }
  19. -->
  20. </script>
  21. <!-- CONTENT -->
  22. <form name="adaptorParam" method="post" action="adaptorParam.do">
  23. <input type="hidden" name="action" value ="">
  24. <input type="hidden" name="id" value ="">
  25. <input type="hidden" name="name" value ="">
  26. <input type="hidden" name="post">
  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.adaptorParam.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="adaptorParamListUpdate">
  39. <logic:empty name="adaptorParam" property="id">
  40. <tr align = "left">
  41. <td width="15%"><b><bean:message key="adaptorParam.id.key" /></b></td>
  42. <td width="1%">:</td>
  43. <td width="84%" align="left" colspan="5">
  44. <input type="text" name="adaptorIdSearch" 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. </logic:empty>
  61. </logic:empty>
  62. <!--START LIST UPDATE ROUTING TABLE-->
  63. <logic:notEmpty name="adaptorParamListUpdate">
  64. <tr>
  65. <td width="15%" class="titleField"><div align="center">#</div></td>
  66. <td width="25%" align="left" height="10" valign="top" class="titleField"><bean:message key="adaptorParam.id.key"/></td>
  67. <td width="25%" align="left" height="10" valign="top" class="titleField"><bean:message key="adaptorParam.name.key"/></td>
  68. <td width="25%" align="left" height="10" valign="top" class="titleField"><bean:message key="adaptorParam.value.key"/></td>
  69. <td width="10%" class="titleField">&nbsp;</td>
  70. </tr>
  71. <logic:notEmpty name="adaptorParamListUpdate">
  72. <logic:iterate id="element" name="adaptorParamListUpdate" scope="request" indexId="index">
  73. <%
  74. sequence++;
  75. String bgcolor = "FFFFFF";
  76. if(sequence%2 == 0){
  77. bgcolor = "EDEDE8";
  78. }
  79. %>
  80. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  81. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  82. <td align="left" class="celBorder">
  83. &nbsp;<bean:write name="element" property="id.adaptorId"/>
  84. </td>
  85. <td align="left" class="celBorder">
  86. &nbsp;<bean:write name="element" property="id.name"/>
  87. </td>
  88. <td align="left" class="celBorder">
  89. &nbsp;<bean:write name="element" property="value"/>
  90. </td>
  91. <td align="center" class="celBorder">
  92. <a href="#" ><img src="./images/edit.gif" border="0" onclick="doUpdateAdaptorParamList('<bean:write name="element" property="id.adaptorId"/>','<bean:write name="element" property="id.name"/>');" alt="update"></a>
  93. </td>
  94. </tr>
  95. </logic:iterate>
  96. </logic:notEmpty>
  97. <tr align = "left">
  98. <td width="100%" colspan="8"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"></td>
  99. </tr>
  100. </logic:notEmpty>
  101. <!--END LIST UPDATE ROUTING TABLE-->
  102. </table>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>&nbsp;</td>
  107. </tr>
  108. </table>
  109. </form>
  110. <!-- END CONTENT -->
  111. <%@ include file="../common/footer.jsp"%>