serverPort_edit.jsp 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.serverPort.action.value="serverPort_edit_search";
  6. document.forms.serverPort.submit();
  7. doDisable(document.forms.serverPort, "button");
  8. }
  9. function doAddAdaptorCodex(){
  10. document.forms.serverPort.addAdaptorCodexBtn.disabled=true;
  11. document.forms.serverPort.action.value="add_adaptorCodexServerPort";
  12. document.forms.serverPort.submit();
  13. }
  14. function doEditAdaptorCodex(sequence){
  15. document.forms.serverPort.action.value="edit_adaptorCodexServerPort";
  16. document.forms.serverPort.sequence.value=sequence;
  17. document.forms.serverPort.submit();
  18. }
  19. function doDeleteAdaptorCodex(sequence){
  20. var x = window.confirm("<bean:message key="confirm.delete"/>");
  21. if(x){
  22. document.forms.serverPort.action.value="delete_adaptorCodexServerPort";
  23. document.forms.serverPort.sequence.value=sequence;
  24. document.forms.serverPort.submit();
  25. }
  26. }
  27. function doUpdateServerPort(){
  28. var x = window.confirm("<bean:message key="confirm.edit"/>");
  29. if(x){
  30. document.forms.serverPort.action.value = "serverPort_edit_ok";
  31. document.forms.serverPort.post.value = "true";
  32. document.forms.serverPort.submit();
  33. }
  34. }
  35. function doBack(){
  36. document.forms.serverPort.action.value="serverPort_edit";
  37. document.forms.serverPort.submit();
  38. doDisable(document.forms.serverPort, "button");
  39. }
  40. -->
  41. </script>
  42. <!-- CONTENT -->
  43. <form name="serverPort" method="post" action="adaptor.do">
  44. <input type="hidden" name="action" value ="">
  45. <input type="hidden" name="clear" value ="">
  46. <html:hidden name="serverPort_${ts}" property="adaptorId"/>
  47. <input type="hidden" name="sequence">
  48. <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
  49. <input type="hidden" name="ts" value="<bean:write name="ts"/>">
  50. <input type="hidden" name="post">
  51. <input type="hidden" name="redirect" value="serverPort_edit">
  52. <!--td width="80%" valign="top"-->
  53. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  54. <tr>
  55. <td class="titlePage"><bean:message key="project.serverPort.key"/> - EDIT</td>
  56. </tr>
  57. </table>
  58. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  59. <tr>
  60. <td colspan="7"><html:errors/></td></tr>
  61. <tr>
  62. <logic:empty name="adaptor_${ts}" property="id">
  63. <td align="center">
  64. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  65. <tr>
  66. <td width="15%"><b><bean:message key="adaptor.id.key"/> <font color="#FF0000">*</font></b></td>
  67. <td width="1%">:</td>
  68. <td width="84%" colspan="4" align="left">
  69. <input type="text" name="idSearch" value="">
  70. </td>
  71. </tr>
  72. <tr>
  73. <td width="15%"></td>
  74. <td width="10"></td>
  75. <td width="84%" colspan="4" align="left">
  76. <br>
  77. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  78. </td>
  79. </tr>
  80. </table>
  81. </td>
  82. </logic:empty>
  83. <logic:notEmpty name="adaptor_${ts}" property="id">
  84. <td align="center">
  85. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  86. <tr>
  87. <td width="15%"><b><bean:message key="serverPort.adaptorId.key"/> <font color="#FF0000">*</font></b></td>
  88. <td width="1%">:</td>
  89. <td width="84%" colspan="4" align="left">
  90. <bean:write name="serverPort_${ts}" property="adaptorId"/>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td width="15%"><b><bean:message key="serverPort.port.key"/><font color="#FF0000">*</font></b></td>
  95. <td width="1%">:</td>
  96. <td width="84%" colspan="4" align="left">
  97. <html:text name="serverPort_${ts}" property="port"/>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td width="15%"><b><bean:message key="serverPort.server.key"/></b></td>
  102. <td width="1%">:</td>
  103. <td width="84%" colspan="4" align="left">
  104. <html:text name="serverPort_${ts}" property="server"/>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td width="15%"><b><bean:message key="serverPort.group.key"/></b></td>
  109. <td width="1%">:</td>
  110. <td width="84%" colspan="4" align="left">
  111. <html:text name="serverPort_${ts}" property="group"/>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td width="15%"><b><bean:message key="adaptor.description.key"/></b></td>
  116. <td width="1%">:</td>
  117. <td width="84%" colspan="4" align="left">
  118. <html:text name="adaptor_${ts}" property="description"/>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td width="15%"><b><bean:message key="adaptor.asynchronous.key"/></b></td>
  123. <td width="1%">:</td>
  124. <td width="84%" colspan="4" align="left">
  125. <select name="asynchronous">
  126. <option value="">Pilih Salah Satu</option>
  127. <option value="0"
  128. <logic:equal name="adaptor_${ts}" property="asynchronous" value="0">
  129. SELECTED
  130. </logic:equal>
  131. >Synchronous</option>
  132. <option value="1"
  133. <logic:equal name="adaptor_${ts}" property="asynchronous" value="1">
  134. SELECTED
  135. </logic:equal>
  136. >Asynchronous</option>
  137. </select>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td width="15%"><b><bean:message key="adaptor.modifiedBy.key"/></b></td>
  142. <td width="1%">:</td>
  143. <td width="84%" colspan="4" align="left">
  144. <bean:write name="adaptor_${ts}" property="modifiedBy"/>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td width="15%"></td>
  149. <td width="1%"></td>
  150. <td width="84%" colspan="4" align="left">
  151. <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
  152. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateServerPort();"/>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>&nbsp;</td>
  157. <td>&nbsp;</td>
  158. <td>&nbsp;</td>
  159. <td>&nbsp;</td>
  160. <td>&nbsp;</td>
  161. <td>&nbsp;</td>
  162. <td>&nbsp;</td>
  163. </tr>
  164. <tr>
  165. <td colspan="7" align="left">
  166. <!--Untuk ANAK AKHIR-->
  167. <br>
  168. <div style="border: 2px solid rgb(204, 204, 204); overflow: auto; width: 800px; height: 150px; background-color: rgb(255, 255, 255);">
  169. <table border="0" width="100%" align="center" cellpadding="2" cellspacing="1">
  170. <tr>
  171. <td colspan="14" align="center" class="titleHeader"><bean:message key="project.adaptorCodex.key"/></td>
  172. </tr>
  173. <tr class="titlefield">
  174. <td class="titleField" height="22" width="5%" align="center"><bean:message key="adaptorCodex.no.key"/></td>
  175. <td align="left" class="titleField"><bean:message key="adaptorCodex.id.key"/> <font color="#FF0000">*</font></td>
  176. <td align="left" class="titleField"><bean:message key="adaptorCodex.codex.key"/></td>
  177. <td class="titleField">&nbsp;</td>
  178. </tr>
  179. <logic:notEmpty name="adaptor_${ts}" property="adaptorCodexes">
  180. <% int index = 0; %>
  181. <logic:iterate id="element_adaptorCodexes" name="adaptor_${ts}" property="adaptorCodexes">
  182. <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
  183. <td align="center"><%=++seq%>&nbsp;</td>
  184. <td align="left">
  185. <bean:write name="element_adaptorCodexes" property="id.id"/>
  186. </td>
  187. <td align="left">
  188. &nbsp;<bean:write name="element_adaptorCodexes" property="codexId.id" />
  189. </td>
  190. <td align="center">
  191. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditAdaptorCodex(<%=index%>);" alt="edit"></a>
  192. <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteAdaptorCodex(<%=index%>);" alt="remove"></a>
  193. </td>
  194. </tr>
  195. <% index++; %>
  196. </logic:iterate>
  197. </logic:notEmpty>
  198. <tr>
  199. <td>&nbsp;</td>
  200. <td>
  201. <input type="text" name="idAdaptorCodexes" value="<logic:notEmpty name="adaptorCodexes_${ts}" property="id"><bean:write name="adaptorCodexes_${ts}" property="id.id"/></logic:notEmpty>">
  202. </td>
  203. <td>
  204. <select name="codex">
  205. <option value="">-- Pilih Salah Satu --</option>
  206. <logic:notEmpty name="codexList">
  207. <logic:iterate id="codexElement" name="codexList">
  208. <option value="<bean:write name="codexElement" property="id"/>"
  209. <logic:notEmpty name="adaptorCodexes_${ts}" property="codexId">
  210. <logic:equal name="adaptorCodexes_${ts}" property="codexId.id" value="${codexElement.id}">
  211. SELECTED
  212. </logic:equal>
  213. </logic:notEmpty>
  214. >
  215. <bean:write name="codexElement" property="id"/></option>
  216. </logic:iterate>
  217. </logic:notEmpty>
  218. </select>
  219. </td>
  220. <td align=center>
  221. <br><input type="button" name="addAdaptorCodexBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddAdaptorCodex();">
  222. </td>
  223. </tr>
  224. </table>
  225. </div>
  226. <br>
  227. <br>
  228. <!--Untuk ANAK AKHIR-->
  229. </td>
  230. </tr>
  231. </table>
  232. </td>
  233. </logic:notEmpty>
  234. </tr>
  235. </table>
  236. </form>
  237. <!-- END CONTENT -->
  238. <%@ include file="../common/footer.jsp"%>