host_edit.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.host.action.value="edit_search";
  6. document.forms.host.submit();
  7. doDisable(document.forms.host, "button");
  8. }
  9. function doUpdateHost(){
  10. var x = window.confirm("<bean:message key="confirm.edit"/>");
  11. if(x){
  12. document.forms.host.action.value = "edit_ok";
  13. document.forms.host.post.value = "true";
  14. document.forms.host.submit();
  15. }
  16. }
  17. function doBack(){
  18. document.forms.host.action.value="edit";
  19. document.forms.host.submit();
  20. doDisable(document.forms.host, "button");
  21. }
  22. -->
  23. </script>
  24. <!-- CONTENT -->
  25. <form name="host" method="post" action="host.do">
  26. <input type="hidden" name="action" value ="">
  27. <input type="hidden" name="clear" value ="">
  28. <input type="hidden" name="id" value="<logic:notEmpty name="host" property="id"><bean:write name="host" property="id" /></logic:notEmpty>">
  29. <input type="hidden" name="post">
  30. <!--td width="80%" valign="top"-->
  31. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  32. <tr>
  33. <td class="titleHeader"><bean:message key="project.host.key"/> - EDIT</td>
  34. </tr>
  35. </table>
  36. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  37. <tr>
  38. <td colspan="7"><html:errors/></td>
  39. </tr>
  40. <tr>
  41. <td align="center">
  42. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  43. <logic:empty name="host" property="id">
  44. <tr align = "left">
  45. <td width="15%"><b><bean:message key="host.id.key" /></b></td>
  46. <td width="10">:</td>
  47. <td width="30%">
  48. <input type="text" name="idSearch">
  49. </td>
  50. <td width="5%">&nbsp;</td>
  51. <td width="15%">&nbsp;</td>
  52. <td width="10">&nbsp;</td>
  53. <td width="30%">&nbsp;</td>
  54. </tr>
  55. <tr align = "left">
  56. <td width="15%"></td>
  57. <td width="10"></td>
  58. <td width="30%">
  59. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  60. </td>
  61. <td width="5%">&nbsp;</td>
  62. <td width="15%">&nbsp;</td>
  63. <td width="10">&nbsp;</td>
  64. <td width="30%">&nbsp;</td>
  65. </tr>
  66. </logic:empty>
  67. <logic:notEmpty name="host" property="id">
  68. <tr>
  69. <td width="30%"><b><bean:message key="host.id.key"/> <font color="#FF0000">*</font></b></td>
  70. <td width="5">:</td>
  71. <td width="60%" colspan="4">
  72. <bean:write name="host" property="id"/>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td width="15%"><b><bean:message key="host.host.key"/></b></td>
  77. <td width="10">:</td>
  78. <td width="30%">
  79. <html:text name="host" property="host" size="30"/>
  80. </td>
  81. <td width="5%">&nbsp;</td>
  82. <td width="15%">&nbsp;</td>
  83. <td width="10">&nbsp;</td>
  84. <td width="30%">&nbsp;</td>
  85. </tr>
  86. <tr>
  87. <td width="15%"><b><bean:message key="host.username.key"/></b></td>
  88. <td width="10">:</td>
  89. <td width="30%">
  90. <html:text name="host" property="username" size="30"/>
  91. </td>
  92. <td width="5%">&nbsp;</td>
  93. <td width="15%">&nbsp;</td>
  94. <td width="10">&nbsp;</td>
  95. <td width="30%">&nbsp;</td>
  96. </tr>
  97. <tr>
  98. <td width="15%"><b><bean:message key="host.password.key"/></b></td>
  99. <td width="10">:</td>
  100. <td width="30%">
  101. <input type="password" name="password" value="*****">
  102. </td>
  103. <td width="5%">&nbsp;</td>
  104. <td width="15%">&nbsp;</td>
  105. <td width="10">&nbsp;</td>
  106. <td width="30%">&nbsp;</td>
  107. </tr>
  108. <tr>
  109. <td width="15%"><b><bean:message key="host.context.key"/></b></td>
  110. <td width="10">:</td>
  111. <td width="30%">
  112. <html:textarea cols="40" rows="5" name="host" property="context"/>
  113. </td>
  114. <td width="5%">&nbsp;</td>
  115. <td width="15%">&nbsp;</td>
  116. <td width="10">&nbsp;</td>
  117. <td width="30%">&nbsp;</td>
  118. </tr>
  119. <tr>
  120. <td width="15%"></td>
  121. <td width="1%"></td>
  122. <td width="84%" colspan="5">
  123. <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
  124. &nbsp;
  125. <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateHost();">
  126. </td>
  127. </tr>
  128. <tr>
  129. <td>&nbsp;</td>
  130. <td>&nbsp;</td>
  131. <td>&nbsp;</td>
  132. <td>&nbsp;</td>
  133. <td>&nbsp;</td>
  134. <td>&nbsp;</td>
  135. <td>&nbsp;</td>
  136. </tr>
  137. </logic:notEmpty>
  138. </table>
  139. </td>
  140. </tr>
  141. </table>
  142. </form>
  143. <!-- END CONTENT -->
  144. <%@ include file="../common/footer.jsp"%>