1
0

dataQuery_create.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateDataQuery(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.dataQuery.action.value="create_ok";
  8. document.forms.dataQuery.post.value = "true";
  9. document.forms.dataQuery.submit();
  10. }
  11. }
  12. function doBack(){
  13. document.forms.dataQuery.action.value="list";
  14. document.forms.dataQuery.clear.value="true";
  15. document.forms.dataQuery.submit();
  16. }
  17. -->
  18. </script>
  19. <!-- CONTENT -->
  20. <form name="dataQuery" method="post" action="dataQuery.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. <td class="titleHeader" align="left"><bean:message key="project.dataQuery.key"/> CREATE</td>
  29. </table>
  30. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  31. <tr>
  32. <td align="center">
  33. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  34. <tr><td colspan="6"><html:errors/></td></tr>
  35. <tr>
  36. <td width="15%"><b><bean:message key="dataQuery.querycode.key"/></b></td>
  37. <td width="1%">:</td>
  38. <td width="84%" colspan="5" align="left">
  39. <html:text name="dataQuery" property="queryCode"/>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td width="15%"><b><bean:message key="dataQuery.queryline.key"/></b></td>
  44. <td width="1%">:</td>
  45. <td width="84%" colspan="5" align="left">
  46. <html:textarea cols="40" rows="5" name="dataQuery" property="queryLine"/>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td width="15%"><b><bean:message key="dataQuery.dbconnectionFk.key"/></b></td>
  51. <td width="1%">:</td>
  52. <td width="84%" colspan="5" align="left">
  53. <select name="dbconnectionFk">
  54. <option value="">-- Pilih Salah Satu --</option>
  55. <logic:notEmpty name="dbconnectionFkList">
  56. <logic:iterate id="dbconnectionFkElement" name="dbconnectionFkList">
  57. <option value="<bean:write name="dbconnectionFkElement" property="dbconnectionPk"/>"
  58. <logic:equal name="dbconnectionFkElement" property="dbconnectionPk" value="${dataQuery.dbconnectionFk.dbconnectionPk}">
  59. SELECTED
  60. </logic:equal>
  61. >
  62. <bean:write name="dbconnectionFkElement" property="dsn"/></option>
  63. </logic:iterate>
  64. </logic:notEmpty>
  65. </select>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td width="15%"></td>
  70. <td width="10"></td>
  71. <td width="30%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
  72. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateDataQuery();"/></td>
  73. <td colspan="4">&nbsp;</td>
  74. </tr>
  75. </table>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>&nbsp;</td>
  80. </tr>
  81. </table>
  82. </td>
  83. </form>
  84. <!-- END CONTENT -->
  85. <%@ include file="../common/footer.jsp"%>