| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
-
- function doEditSearch(){
- document.forms.client.action.value="client_edit_search";
- document.forms.client.submit();
- doDisable(document.forms.client, "button");
- }
-
- function doUpdateClient(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.client.action.value = "client_edit_ok";
- document.forms.client.post.value = "true";
- document.forms.client.submit();
- }
- }
-
- function doBack(){
- document.forms.client.action.value="client_detail";
- document.forms.client.submit();
- doDisable(document.forms.client, "button");
- }
-
-
- function doAddClientItem(){
- document.forms.client.addClientItemBtn.disabled=true;
- document.forms.client.action.value="add_clientTarget";
- document.forms.client.itemFocus.value="host";
- document.forms.client.submit();
- }
- function doEditClientItem(sequence){
- document.forms.client.action.value="edit_clientTarget";
- document.forms.client.itemFocus.value="host";
- document.forms.client.sequence.value=sequence;
- document.forms.client.submit();
- }
- function doDeleteClientItem(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.client.action.value="delete_clientTarget";
- //document.forms.client.itemFocus.value="host";
- document.forms.client.sequence.value=sequence;
- document.forms.client.submit();
-
- }
- }
-
- function doAddAdaptorCodex(){
- document.forms.client.addAdaptorCodexBtn.disabled=true;
- document.forms.client.action.value="add_adaptorCodexClient";
- document.forms.client.submit();
- }
-
- function doEditAdaptorCodex(sequence){
- document.forms.client.action.value="edit_adaptorCodexClient";
- document.forms.client.sequence.value=sequence;
- document.forms.client.submit();
- }
-
- function doDeleteAdaptorCodex(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.client.action.value="delete_adaptorCodexClient";
- document.forms.client.sequence.value=sequence;
-
- document.forms.client.submit();
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="client" method="post" action="adaptor.do">
- <input type="hidden" name="action">
- <input type="hidden" name="itemFocus">
- <html:hidden name="client_${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="client_edit">
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.client.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td colspan="7"><html:errors/></td>
- </tr>
- <logic:empty name="client_${ts}" property="adaptorId">
- <tr>
- <td width="15%"><b><bean:message key="client.adaptorId.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%">
- <input type="text" name="idSearch" value="">
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%">
- <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </logic:empty>
- <logic:notEmpty name="adaptor_${ts}" property="id">
- <logic:notEmpty name="client_${ts}" property="adaptorId">
- <tr>
- <td width="30%"><b><bean:message key="client.adaptorId.key"/> <font color="#FF0000">*</font></b></td>
- <td width="5">:</td>
- <td width="60%">
- <bean:write name="client_${ts}" property="adaptorId"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.idleWait.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="client_${ts}" property="idleWait"/>
- </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="client.timeout.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="client_${ts}" property="timeout"/>
- </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="client.closeQueue.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="client_${ts}" property="closeQueue"/>
- </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="client.controlQueue.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="client_${ts}" property="controlQueue"/>
- </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="client.keepConn.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <SELECT name="keepConn">
- <option value="">Pilih Salah Satu</option>
- <option value="1"
- <logic:equal name="client_${ts}" property="keepConn" value="1">
- SELECTED
- </logic:equal>
- >Yes</option>
- <option value="0"
- <logic:equal name="client_${ts}" property="keepConn" value="0">
- SELECTED
- </logic:equal>
- >No</option>
- </SELECT>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.reuseDelay.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="reuseDelay"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.node.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="node"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="adaptor.description.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="adaptor_${ts}" property="description"/>
- </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="adaptor.asynchronous.key"/></b></td>
- <td width="10">:</td>
- <td width="30%">
- <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>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
-
- <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="doUpdateClient();"/></td>
- <td colspan="4"> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="7">
- <br>
- <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
- <tr >
- <td colspan="7" class="titleHeader" align="left"><bean:message key="project.clientTarget.key"/></td>
- </tr>
- <tr class="titlefield">
- <td align="left" class="titleField"><bean:message key="clientTarget.id.key"/> <font color="#FF0000">*</font></td>
- <td align="left" class="titleField"><bean:message key="clientTarget.host.key"/> <font color="#FF0000">*</font></td>
- <td align="left" class="titleField"><bean:message key="clientTarget.weight.key"/></td>
- <td class="titleField"> </td>
- </tr>
- <logic:notEmpty name="client_${ts}" property="clientTargets">
- <% int index = 0; %>
- <logic:iterate id="element_clientTargets" name="client_${ts}" property="clientTargets">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="left"><bean:write name="element_clientTargets" property="id.id"/></td>
- <td align="left"><bean:write name="element_clientTargets" property="host"/></td>
- <td align="left"><bean:write name="element_clientTargets" property="weight" /></td>
- <td align="center">
- <img alt="<bean:message key="button.edit" /> <bean:message key="project.clientTarget.key" />" src="images/edit.gif" onclick="javascript:doEditClientItem(<%=index%>);">
- <img alt="<bean:message key="button.delete" /> <bean:message key="project.clientTarget.key" />" src="images/recylce.gif" onclick="javascript:doDeleteClientItem(<%=index%>);">
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- <tr>
- <td>
- <input type="text" name="idClientTarget" value="<logic:notEmpty name="clientTargets_${ts}" property="id"><bean:write name="clientTargets_${ts}" property="id.id"/></logic:notEmpty>">
- </td>
- <td>
- <input type="text" name="host" value="<logic:notEmpty name="clientTargets_${ts}" property="host"><bean:write name="clientTargets_${ts}" property="host"/></logic:notEmpty>">
- </td>
- <td>
- <input type="text" name="weight" value="<logic:notEmpty name="clientTargets_${ts}" property="weight"><bean:write name="clientTargets_${ts}" property="weight"/></logic:notEmpty>">
- </td>
- <td align="center">
- <input type="button" name="addClientItemBtn" value="<bean:message key="button.add" />" onclick="javascript:doAddClientItem();"></td>
- </tr>
- </table>
- <br>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td class="titleHeader" align="left" colspan="7"><b><bean:message key="project.adaptorCodex.key"/></b></td>
- </tr>
- <!-- LIST ADD ADAPTOR CODEX -->
- <tr>
- <td colspan="7">
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td class="titleField" height="22" width="5%" align="center"><bean:message key="adaptorCodex.no.key"/></td>
- <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="adaptorCodex.id.key"/></td>
- <td class="titleField" width="55%"><bean:message key="adaptorCodex.codex.key"/></td>
- <td class="titleField" width="10%"> </td>
- </tr>
- <!-- START ADAPTOR CODEX -->
- <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"><%=++seq2%> </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>
- <!-- END LIST ADD ADAPTOR CODEX -->
- <!-- ADD ANAK ADAPTOR CODEX-->
- <tr>
- <td> </td>
- <td align="left" >
- <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 align="left">
- <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>
- </td>
- </tr>
- </logic:notEmpty>
- </logic:notEmpty>
- <!-- END ANAK ADAPTOR CODEX-->
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|