1
0

upload.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doUploadOk(){
  5. var x = window.confirm("<bean:message key="confirm.upload"/>")
  6. if (x) {
  7. document.forms.upload.action.value="upload_ok";
  8. document.forms.upload.submit();
  9. doDisable(document.forms.upload, "button");
  10. }
  11. }
  12. -->
  13. </script>
  14. <form name="upload" action="upload.do" method="POST" enctype="multipart/form-data" >
  15. <input type="hidden" name="action"/>
  16. <input type="hidden" name="sequence"/>
  17. <input type="hidden" name="redirect" value="create"/>
  18. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  19. <tr>
  20. <td class="titleHeader" align="left"><bean:message key="project.upload.key"/> FILE TARIF</td>
  21. </tr>
  22. </table>
  23. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  24. <tr>
  25. <td align="center">
  26. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  27. <tr><td colspan="7"><html:errors/></td></tr>
  28. <tr>
  29. <td width="15%" valign="top"><bean:message key="ftp.file.key" /></td>
  30. <td valign="top">:</td>
  31. <td valign="top">
  32. <div align="left">
  33. <input type="file" name="uploadFile" value="<logic:notEmpty name="uploadFile_ftp"><bean:write name="uploadFile_ftp" /></logic:notEmpty>">
  34. </div>
  35. </td>
  36. <td colspan="4">&nbsp;</td>
  37. </tr>
  38. <tr>
  39. <td width="15%"></td>
  40. <td width="10"></td>
  41. <td width="30%"><input type="button" value=<bean:message key="button.upload"/> onclick="doUploadOk();" ></td>
  42. <td colspan="4">&nbsp;</td>
  43. </tr>
  44. </table>
  45. </td>
  46. </tr>
  47. </table>
  48. <br>
  49. <table border="0" width="98%" align="center" class="td" cellpadding="2" cellspacing="1">
  50. <tr>
  51. <td>
  52. <font color="#FF0000">*</font>
  53. <b>File Upload Should be Text Format</b>
  54. </td>
  55. </tr>
  56. </table>
  57. </FORM>
  58. <%@ include file="../common/footer.jsp" %>