| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function doCreateClient(){
- var x = window.confirm("<bean:message key="confirm.create"/>")
- if (x) {
- document.forms.client.action.value="create_client_ok";
- document.forms.client.post.value = "true";
- document.forms.client.submit();
- }
- }
- function doBack(){
- document.forms.client.action.value="client_list";
- document.forms.client.clear.value="true";
- document.forms.client.submit();
- }
-
-
- function doAddClientTarget(){
- document.forms.client.addClientTargetBtn.disabled=true;
- document.forms.client.action.value="add_clientTarget";
- //document.forms.client.itemFocus.value="id";
- document.forms.client.submit();
- }
- function doEditClientTarget(sequence){
- document.forms.client.action.value="edit_clientTarget";
- //document.forms.client.itemFocus.value="idClientTarget";
- document.forms.client.sequence.value=sequence;
-
- document.forms.client.submit();
- }
- function doDeleteClientTarget(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.client.action.value="delete_clientTarget";
- //document.forms.client.itemFocus.value="idClientTarget";
- 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="clear">
- <input type="hidden" name="sequence">
- <input type="hidden" name="post">
- <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
- <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
- <input type="hidden" name="redirect" value="client_create">
- <!--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.client.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="15%"><b><bean:message key="client.adaptorId.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="adaptorId" size="30"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.idleWait.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="idleWait" size="30"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.timeout.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="timeout"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.closeQueue.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="closeQueue"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="client.controlQueue.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <html:text name="client_${ts}" property="controlQueue"/>
- </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="1%">:</td>
- <td width="84%" align="left" colspan="5">
- <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%" align="left" colspan="5">
- <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%"></td>
- <td width="1%"></td>
- <td width="84%" align="left" colspan="5">
- <br><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
- <input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateClient();">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td class="titleHeader" align="left"><b><bean:message key="project.clientTarget.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" width="5%" align="center"><bean:message key="clientTarget.no.key"/></td>
- <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="clientTarget.id.key"/></td>
- <td class="titleField" width="25%"><bean:message key="clientTarget.host.key"/></td>
- <td class="titleField" width="30%"><bean:message key="clientTarget.weight.key"/></td>
- <td class="titleField" width="10%" > </td>
- </tr>
- <!-- START CHARGES ITEM -->
- <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="center"><%=++seq%> </td>
- <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="right"><bean:write name="element_clientTargets" property="weight"/> </td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditClientTarget(<%=index%>);" alt="edit"></a>
- <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteClientTarget(<%=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"><b><bean:message key="clientTarget.id.key"/></b><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="idClientTarget" value="<logic:notEmpty name="clientTargets_${ts}" property="id"><bean:write name="clientTargets_${ts}" property="id.id"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="clientTarget.host.key"/></b><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="host" value="<logic:notEmpty name="clientTargets_${ts}" property="host"><bean:write name="clientTargets_${ts}" property="host"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="clientTarget.weight.key"/></b><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="weight" value="<logic:notEmpty name="clientTargets_${ts}" property="weight"><bean:write name="clientTargets_${ts}" property="weight"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top">
- <BR><input type="button" name="addClientTargetBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddClientTarget();">
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table></td>
- </tr>
- <!-- END ANAK -->
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td class="titleHeader" align="left"><b><bean:message key="project.adaptorCodex.key"/></b></td>
- </tr>
- <!-- LIST ADD ADAPTOR CODEX -->
- <tr>
- <td>
- <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>
- </table>
- </td>
- </tr>
- <!-- END LIST ADD ADAPTOR CODEX -->
- <!-- ADD ANAK ADAPTOR CODEX-->
- <tr>
- <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="adaptorCodex.id.key"/></b><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="idAdaptorCodexes" value="<logic:notEmpty name="adaptorCodexes_${ts}" property="id"><bean:write name="adaptorCodexes_${ts}" property="id.id"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="adaptorCodex.codex.key"/></b><span class="style1">* </span></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <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>
- </tr>
- <tr>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top">
- <BR><input type="button" name="addAdaptorCodexBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddAdaptorCodex();">
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table></td>
- </tr>
- <!-- END ANAK ADAPTOR CODEX-->
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|