download.jsp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doDownloadOk(){
  5. document.forms.download.action.value="download_ok";
  6. document.forms.download.submit();
  7. doDisable(document.forms.download, "button");
  8. }
  9. function doDownloadFile(name){
  10. document.forms.download.name.value=name;
  11. document.forms.download.action.value="download_file";
  12. document.forms.download.submit();
  13. }
  14. -->
  15. </script>
  16. <form name="download" action="download.do" method="POST" >
  17. <input type="hidden" name="action"/>
  18. <input type="hidden" name="sequence"/>
  19. <input type="hidden" name="name" value="">
  20. <input type="hidden" name="redirect" value="create"/>
  21. <input type="hidden" name="notes" value="<bean:write name="notes"/>">
  22. <input type="hidden" name="deletionNote" value="<bean:write name="deletionNote"/>">
  23. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  24. <td class="titleHeader" align="left"><bean:message key="project.download.key"/> DATA TRANSAKSI</td>
  25. </table>
  26. <table border="0" width="98%" align="center" cellpadding="2" cellspacing="1">
  27. <tr><td><html:errors/></td></tr>
  28. </table>
  29. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  30. <tr>
  31. <td width="15%"><b><bean:message key="download.startDate.key"/><font color="#FF0000">*</font></b></td>
  32. <td width="10">:</td>
  33. <td width="30%">
  34. <input type="text" name="startDate" value="<logic:notEmpty name="startDate"><bean:write name="startDate" format="dd/MM/yyyy" /></logic:notEmpty>" size="15" maxlength="10">
  35. <a href="javascript:cal_startDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
  36. <script type="text/javascript" language="javascript">
  37. var cal_startDate = new calendar1(document.forms['download'].elements['startDate']);
  38. </script>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td width="15%"><b><bean:message key="download.endDate.key"/><font color="#FF0000">*</font></b></td>
  43. <td width="10">:</td>
  44. <td width="30%">
  45. <input type="text" name="endDate" value="<logic:notEmpty name="endDate"><bean:write name="endDate" format="dd/MM/yyyy" /></logic:notEmpty>" size="15" maxlength="10">
  46. <a href="javascript:cal_endDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
  47. <script type="text/javascript" language="javascript">
  48. var cal_endDate = new calendar1(document.forms['download'].elements['endDate']);
  49. </script>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td width="15%" valign="top"><b><bean:message key="download.periode.key" /></b></td>
  54. <td valign="top">:</td>
  55. <td valign="top">
  56. <!--div align="left">
  57. <select name="periode">
  58. <option value="">-- Pilih Salah Satu --</option>
  59. <option value="unhisd">Periode Sekarang</option>
  60. <option value="unhist">Periode Yang Lalu</option>
  61. </select>
  62. </div-->
  63. <select name="periode" style="width:300">
  64. <option value="">-- Select Filter --</option>
  65. <logic:notEmpty name="periodeList">
  66. <logic:iterate id="element_periode" name="periodeList" >
  67. <option value="<bean:write name="element_periode" property="code"/>"
  68. <logic:equal name="periode" value="${element_periode.code}">
  69. selected
  70. </logic:equal>
  71. ><bean:write name="element_periode" property="name" /></option>
  72. </logic:iterate>
  73. </logic:notEmpty>
  74. </select>
  75. </td>
  76. <td colspan="4">&nbsp;</td>
  77. </tr>
  78. <tr>
  79. <td width="15%"></td>
  80. <td width="10"></td>
  81. <td width="30%"><input type="button" value=<bean:message key="button.download"/> onclick="doDownloadOk();" ></td>
  82. <td colspan="4">&nbsp;</td>
  83. </tr>
  84. </table>
  85. <table>
  86. <tr>
  87. <td>
  88. <font color="#FF0000">*</font><b><logic:notEmpty name="notes"><bean:write name="notes" /></logic:notEmpty></b>
  89. </td>
  90. </tr>
  91. </table>
  92. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  93. <tr>
  94. <td align="left" class="titleField"><bean:message key="download.filename.key"/></td>
  95. <td align="left" class="titleField"><bean:message key="download.filesize.key"/></td>
  96. <td align="left" class="titleField"><bean:message key="download.date.key"/></td>
  97. </tr>
  98. <tr>
  99. <logic:notEmpty name="fileList">
  100. <logic:iterate id="element" name="fileList">
  101. <tr>
  102. <logic:equal name="element" property="status" value="1">
  103. <td align="left" class="celBorder"><logic:notEmpty name="element"><a href="#" onclick="doDownloadFile('<bean:write name="element" property="name"/>');"><bean:write name="element" property="name" /></a></logic:notEmpty>&nbsp;</td>
  104. </logic:equal>
  105. <logic:equal name="element" property="status" value="0">
  106. <td align="left" class="celBorder"><logic:notEmpty name="element"><bean:write name="element" property="name" /></logic:notEmpty>&nbsp;</td>
  107. </logic:equal>
  108. <td align="right" class="celBorder"><logic:notEmpty name="element"><bean:write name="element" property="datafileLength"/></logic:notEmpty>&nbsp;</td>
  109. <logic:equal name="element" property="status" value="1">
  110. <td align="right" class="celBorder"><logic:notEmpty name="element"><bean:write name="element" property="timestamp" format="dd/MM/yyyy HH:mm:ss SSS"/></logic:notEmpty>&nbsp;</td>
  111. </logic:equal>
  112. <logic:equal name="element" property="status" value="0">
  113. <td align="right" class="celBorder">In Progress</td>
  114. </logic:equal>
  115. </tr>
  116. </logic:iterate>
  117. </logic:notEmpty>
  118. </tr>
  119. </table>
  120. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  121. <tr>
  122. <td align="left" class="celBorder">
  123. <b><logic:notEmpty name="deletionNote"><bean:write name="deletionNote" /></logic:notEmpty></b>
  124. </td>
  125. </tr>
  126. </table>
  127. </FORM>
  128. <%@ include file="../common/footer.jsp" %>