| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
- function doEditSearch(){
- document.forms.rpgCall.action.value="edit_search";
- document.forms.rpgCall.submit();
- doDisable(document.forms.rpgCall, "button");
- }
-
- function doUpdateRpgCall(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.rpgCall.action.value = "edit_ok";
- document.forms.rpgCall.post.value = "true";
- document.forms.rpgCall.submit();
- }
- }
- function doBack(){
- document.forms.rpgCall.action.value="detail";
- document.forms.rpgCall.submit();
- doDisable(document.forms.rpgCall, "button");
- }
-
-
- 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();
- }
- }
-
- function doActivateRpgCallsItems(sequence) {
- var form = document.forms.rpgCall;
- var x = window.confirm("<bean:message key="confirm.activate" />");
- if (x) {
- form.action.value="activate_RpgCallsItems";
- form.sequence.value=sequence;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- }
- function doInactivateRpgCallsItems(sequence) {
- var form = document.forms.rpgCall;
- var x = window.confirm("<bean:message key="confirm.inactivate" />");
- if (x) {
- form.action.value="inactivate_RpgCallsItems";
- form.sequence.value=sequence;
- form.submit();
- doDisable(form, "button");
- doDisableImage(form);
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="rpgCall" method="post" action="rpgCall.do">
- <input type="hidden" name="action">
- <input type="hidden" name="itemFocus">
- <html:hidden name="rpgCall_${ts}" property="id"/>
- <input type="hidden" name="sequence">
- <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="post">
- <input type="hidden" name="redirect" value="edit">
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titlePage"><bean:message key="project.rpgCall.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr><td colspan="7"><html:errors/></td></tr>
- <tr>
- <logic:empty name="rpgCall_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="rpgCall.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <input type="text" name="idSearch" value="">
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="84%" colspan="4" align="left">
- <br>
- <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
- </td>
- </tr>
- </table>
- </td>
- </logic:empty>
- <logic:notEmpty name="rpgCall_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="rpgCall.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <bean:write name="rpgCall_${ts}" property="id" />
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="rpgCall.cmd.key"/> <font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:textarea cols="40" rows="5" name="rpgCall_${ts}" property="cmd"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="rpgCall.host.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <select name="host">
- <option value="emptyVal">-- 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>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="rpgCall.timeout.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="rpgCall_${ts}" property="timeout" />
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <!--UNTUK BUTTON EDIT-->
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%">
- <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/> <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateRpgCall();">
- </td>
- <td colspan="4"> </td>
- </tr>
-
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- <!--Untuk ANAK AKHIR-->
- <br>
- <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
- <tr ><td colspan="10" align="center" class="titleField"><bean:message key="project.rpgCallArg.key" /></td></tr>
- <tr class="titlefield">
- <td align="left" class="titleField"><bean:message key="rpgCallArg.name.key"/> <font color="#FF0000">*</font></td>
- <td align="left" class="titleField"><bean:message key="rpgCallArg.type.key"/> <font color="#FF0000">*</font></td>
- <td align="left" class="titleField"><bean:message key="rpgCallArg.length.key"/></td>
- <td class="titleField"> </td>
- </tr>
- <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="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>
- <tr>
- <td><input type="text" maxlength="50" name="name" value="<bean:write name="rpgCallArgs_${ts}" property="name"/>"></td>
- <td><input type="text" size ="25" maxlength="100" name="type" value="<bean:write name="rpgCallArgs_${ts}" property="type"/>"></td>
- <td><input type="text" maxlength="25" name="length" value="<bean:write name="rpgCallArgs_${ts}" property="length"/>"></td>
- <td align=center>
- <input type="button" size="5" name="addRpgCallArgBtn" value="<bean:message key="button.add" />" onclick="javascript:doAddRpgCallArg();"></td>
- </tr>
- </table>
- <!--Untuk ANAK AKHIR-->
- </td>
- </logic:notEmpty>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|