| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
- function doEditSearch(){
- document.forms.serverPort.action.value="serverPort_edit_search";
- document.forms.serverPort.submit();
- doDisable(document.forms.serverPort, "button");
- }
-
- function doAddAdaptorCodex(){
- document.forms.serverPort.addAdaptorCodexBtn.disabled=true;
- document.forms.serverPort.action.value="add_adaptorCodexServerPort";
- document.forms.serverPort.submit();
- }
-
- function doEditAdaptorCodex(sequence){
- document.forms.serverPort.action.value="edit_adaptorCodexServerPort";
- document.forms.serverPort.sequence.value=sequence;
- document.forms.serverPort.submit();
- }
-
- function doDeleteAdaptorCodex(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.serverPort.action.value="delete_adaptorCodexServerPort";
- document.forms.serverPort.sequence.value=sequence;
- document.forms.serverPort.submit();
- }
- }
-
- function doUpdateServerPort(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.serverPort.action.value = "serverPort_edit_ok";
- document.forms.serverPort.post.value = "true";
- document.forms.serverPort.submit();
- }
- }
- function doBack(){
- document.forms.serverPort.action.value="serverPort_edit";
- document.forms.serverPort.submit();
- doDisable(document.forms.serverPort, "button");
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="serverPort" method="post" action="adaptor.do">
- <input type="hidden" name="action" value ="">
- <input type="hidden" name="clear" value ="">
- <html:hidden name="serverPort_${ts}" property="adaptorId"/>
- <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="serverPort_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.serverPort.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="adaptor_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="adaptor.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="adaptor_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="serverPort.adaptorId.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="serverPort_${ts}" property="adaptorId"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="serverPort.port.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="serverPort_${ts}" property="port"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="serverPort.server.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="serverPort_${ts}" property="server"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="serverPort.group.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="serverPort_${ts}" property="group"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="adaptor.description.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="adaptor_${ts}" property="description"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="adaptor.asynchronous.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <select name="asynchronous">
- <option value="">Pilih Salah Satu</option>
- <option value="0"
- <logic:equal name="adaptor_${ts}" property="asynchronous" value="0">
- SELECTED
- </logic:equal>
- >Synchronous</option>
- <option value="1"
- <logic:equal name="adaptor_${ts}" property="asynchronous" value="1">
- SELECTED
- </logic:equal>
- >Asynchronous</option>
-
- </select>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="adaptor.modifiedBy.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="adaptor_${ts}" property="modifiedBy"/>
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="1%"></td>
- <td width="84%" colspan="4" align="left">
- <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
- <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateServerPort();"/>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="7" align="left">
- <!--Untuk ANAK AKHIR-->
- <br>
- <div style="border: 2px solid rgb(204, 204, 204); overflow: auto; width: 800px; height: 150px; background-color: rgb(255, 255, 255);">
- <table border="0" width="100%" align="center" cellpadding="2" cellspacing="1">
- <tr>
- <td colspan="14" align="center" class="titleHeader"><bean:message key="project.adaptorCodex.key"/></td>
- </tr>
- <tr class="titlefield">
- <td class="titleField" height="22" width="5%" align="center"><bean:message key="adaptorCodex.no.key"/></td>
- <td align="left" class="titleField"><bean:message key="adaptorCodex.id.key"/> <font color="#FF0000">*</font></td>
- <td align="left" class="titleField"><bean:message key="adaptorCodex.codex.key"/></td>
- <td class="titleField"> </td>
- </tr>
- <logic:notEmpty name="adaptor_${ts}" property="adaptorCodexes">
- <% int index = 0; %>
- <logic:iterate id="element_adaptorCodexes" name="adaptor_${ts}" property="adaptorCodexes">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="center"><%=++seq%> </td>
- <td align="left">
- <bean:write name="element_adaptorCodexes" property="id.id"/>
- </td>
- <td align="left">
- <bean:write name="element_adaptorCodexes" property="codexId.id" />
- </td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditAdaptorCodex(<%=index%>);" alt="edit"></a>
- <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteAdaptorCodex(<%=index%>);" alt="remove"></a>
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- <tr>
- <td> </td>
- <td>
- <input type="text" name="idAdaptorCodexes" value="<logic:notEmpty name="adaptorCodexes_${ts}" property="id"><bean:write name="adaptorCodexes_${ts}" property="id.id"/></logic:notEmpty>">
- </td>
- <td>
- <select name="codex">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="codexList">
- <logic:iterate id="codexElement" name="codexList">
- <option value="<bean:write name="codexElement" property="id"/>"
- <logic:notEmpty name="adaptorCodexes_${ts}" property="codexId">
- <logic:equal name="adaptorCodexes_${ts}" property="codexId.id" value="${codexElement.id}">
- SELECTED
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="codexElement" property="id"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- <td align=center>
- <br><input type="button" name="addAdaptorCodexBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddAdaptorCodex();">
- </td>
- </tr>
- </table>
- </div>
- <br>
- <br>
- <!--Untuk ANAK AKHIR-->
- </td>
- </tr>
- </table>
- </td>
- </logic:notEmpty>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|