rpgCall_create.jsp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascripit">
  3. function doCreateRpgCall(){
  4. var x = window.confirm("<bean:message key="confirm.create"/>")
  5. if (x) {
  6. document.forms.rpgCall.action.value="create_ok";
  7. document.forms.rpgCall.post.value = "true";
  8. document.forms.rpgCall.submit();
  9. }
  10. }
  11. function doBack(){
  12. document.forms.rpgCall.action.value="back";
  13. document.forms.rpgCall.submit();
  14. }
  15. function doAddRpgCallArg(){
  16. document.forms.rpgCall.addRpgCallArgBtn.disabled=true;
  17. document.forms.rpgCall.action.value="add_rpgCallArg";
  18. document.forms.rpgCall.itemFocus.value="name";
  19. document.forms.rpgCall.submit();
  20. }
  21. function doEditRpgCallArg(sequence){
  22. document.forms.rpgCall.action.value="edit_rpgCallArg";
  23. document.forms.rpgCall.itemFocus.value="name";
  24. document.forms.rpgCall.sequence.value=sequence;
  25. document.forms.rpgCall.submit();
  26. }
  27. function doDeleterpgCallArg(sequence){
  28. var x = window.confirm("<bean:message key="confirm.delete"/>");
  29. if(x){
  30. document.forms.rpgCall.action.value="delete_rpgCallArg";
  31. document.forms.rpgCall.itemFocus.value="name";
  32. document.forms.rpgCall.sequence.value=sequence;
  33. document.forms.rpgCall.submit();
  34. }
  35. }
  36. </script>
  37. <!-- CONTENT -->
  38. <form name="rpgCall" method="post" action="rpgCall.do">
  39. <input type="hidden" name="action">
  40. <input type="hidden" name="post">
  41. <input type="hidden" name="clear">
  42. <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
  43. <%/*<input type="hidden" name="ts" value="<bean:write name="ts"/>">*/%>
  44. <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
  45. <input type="hidden" name="redirect" value="create">
  46. <input type="hidden" name="itemFocus">
  47. <input type="hidden" name="sequence">
  48. <!--td width="80%" valign="top"-->
  49. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  50. <tr>
  51. <td class="titleHeader" align="left"><bean:message key="project.rpgCall.key"/> - CREATE</td>
  52. </tr>
  53. </table>
  54. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  55. <tr>
  56. <td align="center">
  57. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  58. <tr>
  59. <td colspan="7"><html:errors/></td>
  60. </tr>
  61. <tr>
  62. <td width="25%"><b><bean:message key="rpgCall.id.key"/> <font color="#FF0000">*</font></b></td>
  63. <td width="5%">:</td>
  64. <td width="50%">
  65. <html:text name="rpgCall_${ts}" property="id"/>
  66. </td>
  67. <td width="5%">&nbsp;</td>
  68. </tr>
  69. <tr>
  70. <td width="25%"><b><bean:message key="rpgCall.cmd.key"/> <font color="#FF0000">*</font></b></td>
  71. <td width="5%">:</td>
  72. <td width="50%">
  73. <html:text name="rpgCall_${ts}" property="cmd"/>
  74. </td>
  75. <td width="5%">&nbsp;</td>
  76. </tr>
  77. <tr>
  78. <td width="25%"><b><bean:message key="rpgCall.host.key"/><font color="#FF0000">*</font></b></td>
  79. <td width="5%">:</td>
  80. <td width="50%">
  81. <select name="host">
  82. <option value="">-- Pilih Salah Satu --</option>
  83. <logic:notEmpty name="hostList">
  84. <logic:iterate id="hostElement" name="hostList">
  85. <option value="<bean:write name="hostElement" property="id"/>"
  86. <logic:notEmpty name="rpgCall_${ts}" property="host">
  87. <logic:equal name="rpgCall_${ts}" property="host.id" value="${hostElement.id}">
  88. SELECTED
  89. </logic:equal>
  90. </logic:notEmpty>
  91. >
  92. <bean:write name="hostElement" property="id"/></option>
  93. </logic:iterate>
  94. </logic:notEmpty>
  95. </select>
  96. </td>
  97. <td width="5%">&nbsp;</td>
  98. </tr>
  99. <tr>
  100. <td width="25%"><b><bean:message key="rpgCall.timeout.key"/></b></td>
  101. <td width="5%">:</td>
  102. <td width="50%">
  103. <html:text name="rpgCall_${ts}" property="timeout"/>
  104. </td>
  105. <td width="5%">&nbsp;</td>
  106. </tr>
  107. <tr>
  108. <td width="25%"></td>
  109. <td width="10"></td>
  110. <td width="50%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
  111. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateRpgCall();"></td>
  112. <td>&nbsp;</td>
  113. </tr>
  114. </table>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td>&nbsp;</td>
  119. </tr>
  120. <tr>
  121. <td><b><bean:message key="project.rpgCallArg.key"/></b></td>
  122. </tr>
  123. <!-- LIST ADD CHARGES ITEM -->
  124. <tr>
  125. <td>
  126. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  127. <tr>
  128. <td class="titleField" height="22"><bean:message key="rpgCallArg.no.key"/></td>
  129. <td nowrap="nowrap" class="titleField"><bean:message key="rpgCallArg.id.key"/></td>
  130. <td class="titleField"><bean:message key="rpgCallArg.name.key"/></td>
  131. <td class="titleField"><bean:message key="rpgCallArg.type.key"/></td>
  132. <td class="titleField"><bean:message key="rpgCallArg.length.key"/></td>
  133. <td class="titleField">&nbsp;</td>
  134. </tr>
  135. <!-- START CHARGES ITEM -->
  136. <logic:notEmpty name="rpgCall_${ts}" property="rpgCallArgs">
  137. <% int index = 0; %>
  138. <logic:iterate id="element_rpgCallArgs" name="rpgCall_${ts}" property="rpgCallArgs">
  139. <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
  140. <td align="center"><%=++seq%>&nbsp;</td>
  141. <td align="left"><bean:write name="element_rpgCallArgs" property="id"/></td>
  142. <td align="left"><bean:write name="element_rpgCallArgs" property="name"/></td>
  143. <td align="left"><bean:write name="element_rpgCallArgs" property="type"/></td>
  144. <td align="left"><bean:write name="element_rpgCallArgs" property="length"/></td>
  145. <td align="center">
  146. <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditRpgCallArg(<%=index%>);" alt="edit"></a>
  147. <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleterpgCallArg(<%=index%>);" alt="remove"></a>
  148. </td>
  149. </tr>
  150. <% index++; %>
  151. </logic:iterate>
  152. </logic:notEmpty>
  153. </table>
  154. </td>
  155. </tr>
  156. <!-- END LIST ADD CHARGES ITEM -->
  157. <!-- ADD ANAK -->
  158. <tr>
  159. <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
  160. <tr>
  161. <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.name.key"/><span class="style1">* </span></td>
  162. <td width="1%" align="left" valign="top">:</td>
  163. <td width="29%" align="left" valign="top">
  164. <input type="text" name="name" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="name"><bean:write name="rpgCallArgs_${ts}" property="name"/></logic:notEmpty>">
  165. </td>
  166. </tr>
  167. <tr>
  168. <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.type.key"/><span class="style1">* </span></td>
  169. <td width="1%" align="left" valign="top">:</td>
  170. <td width="29%" align="left" valign="top">
  171. <input type="text" name="type" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="type"><bean:write name="rpgCallArgs_${ts}" property="type"/></logic:notEmpty>">
  172. </td>
  173. </tr>
  174. <tr>
  175. <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.length.key"/><span class="style1">* </span></td>
  176. <td width="1%" align="left" valign="top">:</td>
  177. <td width="29%" align="left" valign="top">
  178. <input type="text" name="length" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="length"><bean:write name="rpgCallArgs_${ts}" property="length"/></logic:notEmpty>">
  179. </td>
  180. </tr>
  181. <tr>
  182. <td align="left" valign="top">&nbsp;</td>
  183. <td align="left" valign="top">&nbsp;</td>
  184. <td align="left" valign="top">
  185. <input type="button" name="addRpgCallArgBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddRpgCallArg();">
  186. </td>
  187. </tr>
  188. <tr>
  189. <td>&nbsp;</td>
  190. <td>&nbsp;</td>
  191. <td>&nbsp;</td>
  192. <td>&nbsp;</td>
  193. <td>&nbsp;</td>
  194. <td>&nbsp;</td>
  195. </tr>
  196. </table></td>
  197. </tr>
  198. <!-- END ANAK -->
  199. </table>
  200. </form>
  201. <!-- END CONTENT -->
  202. <%@ include file="../common/footer.jsp"%>