1
0

dbConnection_create.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateDbConnection(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.databaseConnection.action.value="create_ok";
  8. document.forms.databaseConnection.post.value = "true";
  9. document.forms.databaseConnection.submit();
  10. }
  11. }
  12. function doBack(){
  13. document.forms.databaseConnection.action.value="list";
  14. document.forms.databaseConnection.clear.value="true";
  15. document.forms.databaseConnection.submit();
  16. }
  17. -->
  18. </script>
  19. <!-- CONTENT -->
  20. <form name="databaseConnection" method="post" action="databaseConnection.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. <input type="hidden" name="focus_field" value=""/>
  27. <!--td width="80%" valign="top"-->
  28. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  29. <td class="titleHeader" align="left"><bean:message key="project.databaseConnection.key"/> CREATE</td>
  30. </table>
  31. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  32. <tr>
  33. <td align="center">
  34. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  35. <tr><td colspan="6"><html:errors/></td></tr>
  36. <tr>
  37. <td width="15%"><b>Code</b></td>
  38. <td width="1%">:</td>
  39. <td width="84%" colspan="5" align="left">
  40. <html:text name="dbconnection" property="dbconnectionPk"/>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td width="15%"><b><bean:message key="databaseConnection.dsn.key"/></b></td>
  45. <td width="1%">:</td>
  46. <td width="84%" colspan="5" align="left">
  47. <html:text name="dbconnection" property="dsn"/>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td width="15%"><b><bean:message key="databaseConnection.jdbcdriver.key"/></b></td>
  52. <td width="1%">:</td>
  53. <td width="84%" colspan="5" align="left">
  54. <html:text name="dbconnection" property="jdbcDriver"/>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td width="15%"><b><bean:message key="databaseConnection.jdbcurl.key"/></b></td>
  59. <td width="1%">:</td>
  60. <td width="84%" colspan="5" align="left">
  61. <html:text name="dbconnection" property="jdbcUrl"/>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td width="15%"><b><bean:message key="databaseConnection.loginname.key"/></b></td>
  66. <td width="1%">:</td>
  67. <td width="84%" colspan="5" align="left">
  68. <html:text name="dbconnection" property="loginName"/>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td width="15%"><b><bean:message key="databaseConnection.password.key"/></b></td>
  73. <td width="1%">:</td>
  74. <td width="84%" colspan="5" align="left">
  75. <html:password name="dbconnection" property="password"/>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td width="15%"></td>
  80. <td width="1%"></td>
  81. <td width="84%" colspan="5" align="left"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
  82. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateDbConnection();"/></td>
  83. </tr>
  84. </table>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>&nbsp;</td>
  89. </tr>
  90. </table>
  91. </td>
  92. </form>
  93. <logic:notEmpty name="focus"><bean:write name="focus" filter="false"/></logic:notEmpty>
  94. <!-- END CONTENT -->
  95. <%@ include file="../common/footer.jsp"%>