1
0

host_create.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateHost(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.host.action.value="create_ok";
  8. document.forms.host.post.value = "true";
  9. document.forms.host.submit();
  10. }
  11. }
  12. function doBack(){
  13. document.forms.host.action.value="list";
  14. document.forms.host.clear.value="true";
  15. document.forms.host.submit();
  16. }
  17. -->
  18. </script>
  19. <!-- CONTENT -->
  20. <form name="host" method="post" action="host.do">
  21. <input type="hidden" name="action">
  22. <input type="hidden" name="clear">
  23. <input type="hidden" name="sequence">
  24. <input type="hidden" name="post">
  25. <input type="hidden" name="redirect" value="create">
  26. <!--td width="80%" valign="top"-->
  27. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  28. <tr>
  29. <td class="titleHeader" align="left"><bean:message key="project.host.key"/> CREATE</td>
  30. </tr>
  31. </table>
  32. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  33. <tr>
  34. <td align="center">
  35. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  36. <tr>
  37. <td colspan="6"><html:errors/></td>
  38. </tr>
  39. <tr>
  40. <td width="15%"><b><bean:message key="host.id.key"/> <font color="#FF0000">*</font></b></td>
  41. <td width="10">:</td>
  42. <td width="30%">
  43. <html:text name="host" property="id" size="30"/>
  44. </td>
  45. <td width="5%">&nbsp;</td>
  46. <td width="15%">&nbsp;</td>
  47. <td width="10">&nbsp;</td>
  48. <td width="30%">&nbsp;</td>
  49. </tr>
  50. <tr>
  51. <td width="15%"><b><bean:message key="host.host.key"/><font color="#FF0000">*</font></b></td>
  52. <td width="10">:</td>
  53. <td width="30%">
  54. <html:text name="host" property="host" size="30"/>
  55. </td>
  56. <td width="5%">&nbsp;</td>
  57. <td width="15%">&nbsp;</td>
  58. <td width="10">&nbsp;</td>
  59. <td width="30%">&nbsp;</td>
  60. </tr>
  61. <tr>
  62. <td width="15%"><b><bean:message key="host.username.key"/></b></td>
  63. <td width="10">:</td>
  64. <td width="30%">
  65. <html:text name="host" property="username"/>
  66. </td>
  67. <td width="5%">&nbsp;</td>
  68. <td width="15%">&nbsp;</td>
  69. <td width="10">&nbsp;</td>
  70. <td width="30%">&nbsp;</td>
  71. </tr>
  72. <tr>
  73. <td width="15%"><b><bean:message key="host.password.key"/></b></td>
  74. <td width="10">:</td>
  75. <td width="30%">
  76. <html:password name="host" property="password"/>
  77. </td>
  78. <td width="5%">&nbsp;</td>
  79. <td width="15%">&nbsp;</td>
  80. <td width="10">&nbsp;</td>
  81. <td width="30%">&nbsp;</td>
  82. </tr>
  83. <tr>
  84. <td width="15%"><b><bean:message key="host.context.key"/></b></td>
  85. <td width="10">:</td>
  86. <td width="30%">
  87. <html:textarea cols="40" rows="5" name="host" property="context"/>
  88. </td>
  89. <td width="5%">&nbsp;</td>
  90. <td width="15%">&nbsp;</td>
  91. <td width="10">&nbsp;</td>
  92. <td width="30%">&nbsp;</td>
  93. </tr>
  94. <tr>
  95. <td width="15%"></td>
  96. <td width="10"></td>
  97. <td width="30%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
  98. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateHost();"></td>
  99. <td colspan="4">&nbsp;</td>
  100. </tr>
  101. </table>
  102. </td>
  103. </tr>
  104. </table>
  105. </form>
  106. <!-- END CONTENT -->
  107. <%@ include file="../common/footer.jsp"%>