| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascripit">
- function doCreateRpgCall(){
- var x = window.confirm("<bean:message key="confirm.create"/>")
- if (x) {
- document.forms.rpgCall.action.value="create_ok";
- document.forms.rpgCall.post.value = "true";
- document.forms.rpgCall.submit();
- }
- }
- function doBack(){
- document.forms.rpgCall.action.value="back";
- document.forms.rpgCall.submit();
- }
- function doAddRpgCallArg(){
- document.forms.rpgCall.addRpgCallArgBtn.disabled=true;
- document.forms.rpgCall.action.value="add_rpgCallArg";
- document.forms.rpgCall.itemFocus.value="name";
- document.forms.rpgCall.submit();
- }
- function doEditRpgCallArg(sequence){
- document.forms.rpgCall.action.value="edit_rpgCallArg";
- document.forms.rpgCall.itemFocus.value="name";
- document.forms.rpgCall.sequence.value=sequence;
-
- document.forms.rpgCall.submit();
- }
- function doDeleterpgCallArg(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.rpgCall.action.value="delete_rpgCallArg";
- document.forms.rpgCall.itemFocus.value="name";
- document.forms.rpgCall.sequence.value=sequence;
-
- document.forms.rpgCall.submit();
- }
- }
- </script>
- <!-- CONTENT -->
- <form name="rpgCall" method="post" action="rpgCall.do">
- <input type="hidden" name="action">
- <input type="hidden" name="post">
- <input type="hidden" name="clear">
- <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
- <%/*<input type="hidden" name="ts" value="<bean:write name="ts"/>">*/%>
- <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
- <input type="hidden" name="redirect" value="create">
- <input type="hidden" name="itemFocus">
- <input type="hidden" name="sequence">
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader" align="left"><bean:message key="project.rpgCall.key"/> - CREATE</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="7"><html:errors/></td>
- </tr>
- <tr>
- <td width="25%"><b><bean:message key="rpgCall.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="5%">:</td>
- <td width="50%">
- <html:text name="rpgCall_${ts}" property="id"/>
- </td>
- <td width="5%"> </td>
- </tr>
- <tr>
- <td width="25%"><b><bean:message key="rpgCall.cmd.key"/> <font color="#FF0000">*</font></b></td>
- <td width="5%">:</td>
- <td width="50%">
- <html:text name="rpgCall_${ts}" property="cmd"/>
- </td>
- <td width="5%"> </td>
- </tr>
- <tr>
- <td width="25%"><b><bean:message key="rpgCall.host.key"/><font color="#FF0000">*</font></b></td>
- <td width="5%">:</td>
- <td width="50%">
- <select name="host">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="hostList">
- <logic:iterate id="hostElement" name="hostList">
- <option value="<bean:write name="hostElement" property="id"/>"
- <logic:notEmpty name="rpgCall_${ts}" property="host">
- <logic:equal name="rpgCall_${ts}" property="host.id" value="${hostElement.id}">
- SELECTED
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="hostElement" property="id"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- <td width="5%"> </td>
- </tr>
- <tr>
- <td width="25%"><b><bean:message key="rpgCall.timeout.key"/></b></td>
- <td width="5%">:</td>
- <td width="50%">
- <html:text name="rpgCall_${ts}" property="timeout"/>
- </td>
- <td width="5%"> </td>
- </tr>
- <tr>
- <td width="25%"></td>
- <td width="10"></td>
- <td width="50%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
- <input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateRpgCall();"></td>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td><b><bean:message key="project.rpgCallArg.key"/></b></td>
- </tr>
- <!-- LIST ADD CHARGES ITEM -->
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td class="titleField" height="22"><bean:message key="rpgCallArg.no.key"/></td>
- <td nowrap="nowrap" class="titleField"><bean:message key="rpgCallArg.id.key"/></td>
- <td class="titleField"><bean:message key="rpgCallArg.name.key"/></td>
- <td class="titleField"><bean:message key="rpgCallArg.type.key"/></td>
- <td class="titleField"><bean:message key="rpgCallArg.length.key"/></td>
- <td class="titleField"> </td>
- </tr>
- <!-- START CHARGES ITEM -->
- <logic:notEmpty name="rpgCall_${ts}" property="rpgCallArgs">
- <% int index = 0; %>
- <logic:iterate id="element_rpgCallArgs" name="rpgCall_${ts}" property="rpgCallArgs">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="center"><%=++seq%> </td>
- <td align="left"><bean:write name="element_rpgCallArgs" property="id"/></td>
- <td align="left"><bean:write name="element_rpgCallArgs" property="name"/></td>
- <td align="left"><bean:write name="element_rpgCallArgs" property="type"/></td>
- <td align="left"><bean:write name="element_rpgCallArgs" property="length"/></td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditRpgCallArg(<%=index%>);" alt="edit"></a>
- <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleterpgCallArg(<%=index%>);" alt="remove"></a>
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <!-- END LIST ADD CHARGES ITEM -->
- <!-- ADD ANAK -->
- <tr>
- <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.name.key"/><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="name" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="name"><bean:write name="rpgCallArgs_${ts}" property="name"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.type.key"/><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="type" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="type"><bean:write name="rpgCallArgs_${ts}" property="type"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><bean:message key="rpgCallArg.length.key"/><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="length" value="<logic:notEmpty name="rpgCallArgs_${ts}" property="length"><bean:write name="rpgCallArgs_${ts}" property="length"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top">
- <input type="button" name="addRpgCallArgBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddRpgCallArg();">
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table></td>
- </tr>
- <!-- END ANAK -->
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|