dbquery_edit.jsp 3.5 KB

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