| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <%@ include file="../common/header.jsp"%>
- <script type="text/javascript" language="javascript">
- <!--
- function doStop(id,status){
- var x = window.confirm(" Are you sure to stop synchronizer server status?")
- if (x) {
- document.forms.nhServerConfig.id.value=id;
- document.forms.nhServerConfig.status.value=status;
- document.forms.nhServerConfig.action.value="update_status";
- document.forms.nhServerConfig.submit();
- doDisable(document.forms.nhServerConfig, "button");
- }
- }
-
- function doStart(id,status){
- var x = window.confirm(" Are you sure to start synchronizer server status?")
- if (x) {
- document.forms.nhServerConfig.id.value=id;
- document.forms.nhServerConfig.status.value=status;
- document.forms.nhServerConfig.action.value="update_status";
- document.forms.nhServerConfig.submit();
- doDisable(document.forms.nhServerConfig, "button");
- }
- }
- function doUpdate(id){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.nhServerConfig.id.value=id;
- document.forms.nhServerConfig.action.value = "edit_ok";
- document.forms.nhServerConfig.submit();
- doDisable(document.forms.nhServerConfig, "button");
- }
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="nhServerConfig" method="post" action="nhServerConfig.do">
- <input type="hidden" name="action" value="">
- <input type="hidden" name="id" value="">
- <input type="hidden" name="status" value =""/>
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.nhServerConfig.key"/></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.lastSynch.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="nhServerConfig" property="lastSynch.time" format="yyyy-MMM-dd HH:mm:ss.SSS"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.currentNode.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="nhServerConfig" property="currentNode"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.serverStatus.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="nhServerConfig" property="serverStatus"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.lastStatus.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="nhServerConfig" property="lastStatus"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.synchStartTime.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <select name="hhStart" style="width:70">
- <logic:notEmpty name="hourList">
- <logic:iterate id="element_hour" name="hourList" indexId="hourIndex">
- <option value="${hourIndex}"
- <logic:equal name="hhStart" value="${hourIndex}">
- selected
- </logic:equal>
- ><bean:write name="element_hour"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
-
- <select name="mmStart" style="width:70">
- <logic:notEmpty name="minuteList">
- <logic:iterate id="element_minute" name="minuteList" indexId="minuteIndex">
- <option value="${minuteIndex}"
- <logic:equal name="mmStart" value="${minuteIndex}">
- selected
- </logic:equal>
- ><bean:write name="element_minute"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="nhServerConfig.synchStopTime.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <select name="hhStop" style="width:70">
- <logic:notEmpty name="hourList">
- <logic:iterate id="element_hour" name="hourList" indexId="hourIndex">
- <option value="${hourIndex}"
- <logic:equal name="hhStop" value="${hourIndex}">
- selected
- </logic:equal>
- ><bean:write name="element_hour"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
-
- <select name="mmStop" style="width:70">
- <logic:notEmpty name="minuteList">
- <logic:iterate id="element_minute" name="minuteList" indexId="minuteIndex">
- <option value="${minuteIndex}"
- <logic:equal name="mmStop" value="${minuteIndex}">
- selected
- </logic:equal>
- ><bean:write name="element_minute"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="1%"></td>
- <td width="84%" colspan="4" align="left">
- <logic:equal name="nhServerConfig" property="serverStatus" value="start">
- <input type="button" value="Stop" onclick="doStop('<bean:write name="nhServerConfig" property="id"/>','stop');">
- </logic:equal>
- <logic:equal name="nhServerConfig" property="serverStatus" value="stop">
- <input type="button" value="Start" onclick="doStart('<bean:write name="nhServerConfig" property="id"/>','start');">
- </logic:equal>
-
- <input type="button" value="<bean:message key="button.edit"/>" onclick="doUpdate('<bean:write name="nhServerConfig" property="id"/>');"/>
- </td>
- </tr>
- </TABLE>
- </td>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|