1
0

dbconn_edit.jsp 5.0 KB

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