lastSynch_config.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doStop(id,status){
  5. var x = window.confirm(" Are you sure to stop synchronizer server status?")
  6. if (x) {
  7. document.forms.nhServerConfig.id.value=id;
  8. document.forms.nhServerConfig.status.value=status;
  9. document.forms.nhServerConfig.action.value="update_status";
  10. document.forms.nhServerConfig.submit();
  11. doDisable(document.forms.nhServerConfig, "button");
  12. }
  13. }
  14. function doStart(id,status){
  15. var x = window.confirm(" Are you sure to start synchronizer server status?")
  16. if (x) {
  17. document.forms.nhServerConfig.id.value=id;
  18. document.forms.nhServerConfig.status.value=status;
  19. document.forms.nhServerConfig.action.value="update_status";
  20. document.forms.nhServerConfig.submit();
  21. doDisable(document.forms.nhServerConfig, "button");
  22. }
  23. }
  24. function doUpdate(id){
  25. var x = window.confirm("<bean:message key="confirm.edit"/>");
  26. if(x){
  27. document.forms.nhServerConfig.id.value=id;
  28. document.forms.nhServerConfig.action.value = "edit_ok";
  29. document.forms.nhServerConfig.submit();
  30. doDisable(document.forms.nhServerConfig, "button");
  31. }
  32. }
  33. -->
  34. </script>
  35. <!-- CONTENT -->
  36. <form name="nhServerConfig" method="post" action="nhServerConfig.do">
  37. <input type="hidden" name="action" value="">
  38. <input type="hidden" name="id" value="">
  39. <input type="hidden" name="status" value =""/>
  40. <!--td width="80%" valign="top"-->
  41. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  42. <tr>
  43. <td class="titleHeader"><bean:message key="project.nhServerConfig.key"/></td>
  44. </tr>
  45. </table>
  46. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  47. <tr>
  48. <td width="15%"><b><bean:message key="nhServerConfig.lastSynch.key"/></b></td>
  49. <td width="1%">:</td>
  50. <td width="84%" colspan="4" align="left">
  51. <bean:write name="nhServerConfig" property="lastSynch.time" format="yyyy-MMM-dd HH:mm:ss.SSS"/>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td width="15%"><b><bean:message key="nhServerConfig.currentNode.key"/></b></td>
  56. <td width="1%">:</td>
  57. <td width="84%" colspan="4" align="left">
  58. <bean:write name="nhServerConfig" property="currentNode"/>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td width="15%"><b><bean:message key="nhServerConfig.serverStatus.key"/></b></td>
  63. <td width="1%">:</td>
  64. <td width="84%" colspan="4" align="left">
  65. <bean:write name="nhServerConfig" property="serverStatus"/>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td width="15%"><b><bean:message key="nhServerConfig.lastStatus.key"/></b></td>
  70. <td width="1%">:</td>
  71. <td width="84%" colspan="4" align="left">
  72. <bean:write name="nhServerConfig" property="lastStatus"/>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td width="15%"><b><bean:message key="nhServerConfig.synchStartTime.key"/></b></td>
  77. <td width="1%">:</td>
  78. <td width="84%" colspan="4" align="left">
  79. <select name="hhStart" style="width:70">
  80. <logic:notEmpty name="hourList">
  81. <logic:iterate id="element_hour" name="hourList" indexId="hourIndex">
  82. <option value="${hourIndex}"
  83. <logic:equal name="hhStart" value="${hourIndex}">
  84. selected
  85. </logic:equal>
  86. ><bean:write name="element_hour"/></option>
  87. </logic:iterate>
  88. </logic:notEmpty>
  89. </select>
  90. &nbsp;&nbsp;
  91. <select name="mmStart" style="width:70">
  92. <logic:notEmpty name="minuteList">
  93. <logic:iterate id="element_minute" name="minuteList" indexId="minuteIndex">
  94. <option value="${minuteIndex}"
  95. <logic:equal name="mmStart" value="${minuteIndex}">
  96. selected
  97. </logic:equal>
  98. ><bean:write name="element_minute"/></option>
  99. </logic:iterate>
  100. </logic:notEmpty>
  101. </select>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td width="15%"><b><bean:message key="nhServerConfig.synchStopTime.key"/></b></td>
  106. <td width="1%">:</td>
  107. <td width="84%" colspan="4" align="left">
  108. <select name="hhStop" style="width:70">
  109. <logic:notEmpty name="hourList">
  110. <logic:iterate id="element_hour" name="hourList" indexId="hourIndex">
  111. <option value="${hourIndex}"
  112. <logic:equal name="hhStop" value="${hourIndex}">
  113. selected
  114. </logic:equal>
  115. ><bean:write name="element_hour"/></option>
  116. </logic:iterate>
  117. </logic:notEmpty>
  118. </select>
  119. &nbsp;&nbsp;
  120. <select name="mmStop" style="width:70">
  121. <logic:notEmpty name="minuteList">
  122. <logic:iterate id="element_minute" name="minuteList" indexId="minuteIndex">
  123. <option value="${minuteIndex}"
  124. <logic:equal name="mmStop" value="${minuteIndex}">
  125. selected
  126. </logic:equal>
  127. ><bean:write name="element_minute"/></option>
  128. </logic:iterate>
  129. </logic:notEmpty>
  130. </select>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td width="15%"></td>
  135. <td width="1%"></td>
  136. <td width="84%" colspan="4" align="left">
  137. <logic:equal name="nhServerConfig" property="serverStatus" value="start">
  138. <input type="button" value="Stop" onclick="doStop('<bean:write name="nhServerConfig" property="id"/>','stop');">
  139. </logic:equal>
  140. <logic:equal name="nhServerConfig" property="serverStatus" value="stop">
  141. <input type="button" value="Start" onclick="doStart('<bean:write name="nhServerConfig" property="id"/>','start');">
  142. </logic:equal>
  143. &nbsp;
  144. <input type="button" value="<bean:message key="button.edit"/>" onclick="doUpdate('<bean:write name="nhServerConfig" property="id"/>');"/>
  145. </td>
  146. </tr>
  147. </TABLE>
  148. </td>
  149. </form>
  150. <!-- END CONTENT -->
  151. <%@ include file="../common/footer.jsp"%>