dataQuery_edit.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.dataQuery.action.value="edit_search";
  6. document.forms.dataQuery.submit();
  7. doDisable(document.forms.dataQuery, "button");
  8. }
  9. function doUpdateDataQuery(){
  10. var x = window.confirm("<bean:message key="confirm.edit"/>");
  11. if(x){
  12. document.forms.dataQuery.action.value = "edit_ok";
  13. document.forms.dataQuery.post.value = "true";
  14. document.forms.dataQuery.submit();
  15. }
  16. }
  17. function doBack(){
  18. document.forms.dataQuery.action.value="list";
  19. document.forms.dataQuery.submit();
  20. doDisable(document.forms.dataQuery, "button");
  21. }
  22. -->
  23. </script>
  24. <!-- CONTENT -->
  25. <form name="dataQuery" method="post" action="dataQuery.do">
  26. <input type="hidden" name="action" value =""/>
  27. <input type="hidden" name="clear" value =""/>
  28. <html:hidden name="dataQuery" property="dataqueryPk"/>
  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.dataQuery.key"/> - EDIT</td>
  34. </tr>
  35. </table>
  36. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  37. <tr><td><html:errors/></td></tr>
  38. <tr>
  39. <td align="center">
  40. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  41. <logic:empty name="dataQuery" property="dataqueryPk">
  42. <tr align = "left">
  43. <td width="15%"><b><bean:message key="dataQuery.querycode.key" /></b></td>
  44. <td width="1%">:</td>
  45. <td width="84%" colspan="4" align="left">
  46. <input type="text" name="queryCodeSearch" value="">
  47. </td
  48. </tr>
  49. <tr align = "left">
  50. <td width="15%"></td>
  51. <td width="1%"></td>
  52. <td width="84%" colspan="4" align="left">
  53. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  54. </td>
  55. </tr>
  56. </logic:empty>
  57. <logic:notEmpty name="dataQuery" property="dataqueryPk">
  58. <tr>
  59. <td width="15%"><b><bean:message key="dataQuery.querycode.key"/></b></td>
  60. <td width="1%">:</td>
  61. <td width="84%" colspan="4" align="left">
  62. <input type="text" name="queryCode" value="<bean:write name="dataQuery" property="dataqueryPk"/>"/>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td width="15%"><b><bean:message key="dataQuery.queryline.key"/></b></td>
  67. <td width="1%">:</td>
  68. <td width="84%" colspan="4" align="left">
  69. <html:text name="dataQuery" property="queryLine"/>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td width="15%"><b><bean:message key="dataQuery.dbconnectionFk.key"/></b></td>
  74. <td width="1%">:</td>
  75. <td width="84%" colspan="4" align="left">
  76. <select name="dbconnectionFk">
  77. <option value="">-- Select Connection --</option>
  78. <logic:notEmpty name="dbconnectionFkList">
  79. <logic:iterate id="dbconnectionFkElement" name="dbconnectionFkList">
  80. <option value="<bean:write name="dbconnectionFkElement" property="dbconnectionPk"/>"
  81. <logic:equal name="dbconnectionFkElement" property="dbconnectionPk" value="${dataQuery.dbconnectionFk.dbconnectionPk}">
  82. SELECTED
  83. </logic:equal>
  84. >
  85. <bean:write name="dbconnectionFkElement" property="dsn"/></option>
  86. </logic:iterate>
  87. </logic:notEmpty>
  88. </select>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td width="15%"></td>
  93. <td width="1%"></td>
  94. <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="doUpdateDataQuery();"/></td>
  95. <td colspan="4">&nbsp;</td>
  96. </tr>
  97. <tr>
  98. <td>&nbsp;</td>
  99. <td>&nbsp;</td>
  100. <td>&nbsp;</td>
  101. <td>&nbsp;</td>
  102. <td>&nbsp;</td>
  103. <td>&nbsp;</td>
  104. <td>&nbsp;</td>
  105. </tr>
  106. </logic:notEmpty>
  107. </table>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>&nbsp;</td>
  112. </tr>
  113. </table>
  114. </td>
  115. </form>
  116. <!-- END CONTENT -->
  117. <%@ include file="../common/footer.jsp"%>