report_create.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreate(){
  5. var x = window.confirm("<bean:message key="confirm.create" />");
  6. if (x) {
  7. document.forms.report.action.value="create_ok";
  8. document.forms.report.post.value = "true";
  9. document.forms.report.submit();
  10. doDisable(document.forms.report, "button");
  11. }
  12. }
  13. function doBack(){
  14. document.forms.report.action.value="list";
  15. document.forms.report.clear.value="true";
  16. document.forms.report.submit();
  17. }
  18. -->
  19. </script>
  20. <!-- CONTENT -->
  21. <FORM name="report" method="post" action="report.do" enctype="multipart/form-data">
  22. <input type="hidden" name="action">
  23. <input type="hidden" name="post">
  24. <input type="hidden" name="clear">
  25. <input type="hidden" name="itemFocus">
  26. <!-- <td width="640" valign="top"> -->
  27. <!-- td width="80%" valign="top" -->
  28. <!-- <td valign="top">
  29. -->
  30. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  31. <td class="titleHeader" align="left"><bean:message key="project.report.key"/> - CREATE</td>
  32. </table>
  33. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  34. <tr>
  35. <td align="center">
  36. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  37. <tr><td colspan="7"><html:errors/></td></tr>
  38. <tr>
  39. <td width="15%"><b><bean:message key="report.code.key"/> <font color="#FF0000">*</font></b></td>
  40. <td width="1%">:</td>
  41. <td width="34%">
  42. <html:text name="report" property="code"/>
  43. </td>
  44. <td width="5%">&nbsp;</td>
  45. <td width="15%">&nbsp;</td>
  46. <td width="10">&nbsp;</td>
  47. <td width="30%">&nbsp;</td>
  48. </tr>
  49. <tr>
  50. <td width="15%"><b><bean:message key="report.name.key"/> <font color="#FF0000">*</font></b></td>
  51. <td width="1%">:</td>
  52. <td width="34%">
  53. <html:text name="report" property="report"/>
  54. </td>
  55. <td width="5%">&nbsp;</td>
  56. <td width="15%">&nbsp;</td>
  57. <td width="10">&nbsp;</td>
  58. <td width="30%">&nbsp;</td>
  59. </tr>
  60. <tr>
  61. <td width="15%"><b><bean:message key="report.jrxml.key"/> <font color="#FF0000">*</font></b></td>
  62. <td width="1%">:</td>
  63. <td width="34%">
  64. <input type="file" name="uploadFile" value="<logic:notEmpty name="uploadFile_report"><bean:write name="uploadFile_report" /></logic:notEmpty>">
  65. </td>
  66. <td width="5%">&nbsp;</td>
  67. <td width="15%">&nbsp;</td>
  68. <td width="10">&nbsp;</td>
  69. <td width="30%">&nbsp;</td>
  70. </tr>
  71. <tr>
  72. <td width="15%"><b><bean:message key="report.filter.key"/> <font color="#FF0000">*</font></b></td>
  73. <td width="1%">:</td>
  74. <td width="34%" valign="top">
  75. <select name="filter" style="width:300">
  76. <option value="">-- Select Filter --</option>
  77. <logic:notEmpty name="filters">
  78. <logic:iterate id="element_filter" name="filters" >
  79. <option value="<bean:write name="element_filter" property="code"/>"
  80. <logic:notEmpty name="report" property="filter">
  81. <logic:equal name="report" property="filter.code" value="${element_filter.code}">
  82. selected
  83. </logic:equal>
  84. </logic:notEmpty>
  85. ><bean:write name="element_filter" property="name" /></option>
  86. </logic:iterate>
  87. </logic:notEmpty>
  88. </select>
  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 align = "left">
  96. <td width="15%"><b><bean:message key="report.category.key" /></b></td>
  97. <td width="1%">:</td>
  98. <td width="34%" valign="top">
  99. <select name="billerCode" style="width:300">
  100. <option value="">-- Select Biller Category --</option>
  101. <logic:notEmpty name="billerCategoryList">
  102. <logic:iterate id="element_billerCategory" name="billerCategoryList" >
  103. <option value="<bean:write name="element_billerCategory" property="code" />"
  104. <logic:notEmpty name="billerCategory" property="code">
  105. <logic:equal name="billerCategory" property="code" value="${element_billerCategory.code}">
  106. selected
  107. </logic:equal>
  108. </logic:notEmpty>
  109. ><bean:write name="element_billerCategory" property="name" /></option>
  110. </logic:iterate>
  111. </logic:notEmpty>
  112. </select>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td width="15%"></td>
  117. <td width="1%"></td>
  118. <td width="84%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
  119. &nbsp;<input type="button" value="Submit" onclick="javascript:doCreate();"/></td>
  120. <td colspan="4">&nbsp;</td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td>&nbsp;</td>
  127. </tr>
  128. </table>
  129. </form>
  130. <!-- END CONTENT -->
  131. <%@ include file="../common/footer.jsp"%>