upload.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:2k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <script language="javascript" src="../js/upload.js"></script>
  3. <STYLE type=text/css>
  4. BODY {
  5. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  6. }
  7. TABLE {
  8. BORDER-LEFT: 1 px; BORDER-TOP: 1 px
  9. }
  10. TD {
  11. FONT: 12px 宋体;
  12. }
  13. IMG {
  14. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  15. }
  16. A {
  17. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  18. }
  19. A:hover {
  20. COLOR: #428eff; TEXT-DECORATION: underline
  21. }
  22. .sec_menu {
  23. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  24. }
  25. .menu_title {
  26. }
  27. .menu_title SPAN {
  28. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  29. }
  30. .menu_title2 {
  31. }
  32. .menu_title2 SPAN {
  33. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  34. }
  35. .style1 {color: #FF0000}
  36. </STYLE>
  37. <html>
  38. <head>
  39. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  40. <title>添加文章</title>
  41. </head>
  42. <body>
  43. <p>&nbsp;</p>
  44. <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  45.   <form action="upload_add.jsp" method="post" name="upload" onSubmit ="return check(upload)" enctype="multipart/form-data">
  46.     <tr align="center">
  47.       <td height="23" colspan="2">
  48.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  49.           <tr>
  50.             <td height="33" align="center"><div align="center" class="style1">文件上传</div> </td>
  51.           </tr>
  52.         </table>
  53.       </td>
  54.     </tr>
  55.     <tr align="center">
  56.       <td width="16%" height="32">文件说明</td>
  57.       <td width="84%" align="left">&nbsp; <input type="text" size="70" name="detail"></td>
  58.     </tr>
  59.     <tr align="center">
  60.       <td height="20%">文件内容</td>上传文件名请以英文命名(不然会无法下载)。文件说明可以用中文。
  61.       <td align="left">&nbsp;&nbsp;<input type="file" name="name"></td>
  62.     </tr>
  63.     <tr align="center">
  64.       <td height="26" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  65.           <tr>
  66.             <td width="16%" align="center">&nbsp;</td>
  67.             <td width="84%" align="center"><div align="left">
  68.   <input name="submit" type="submit" value="提交">
  69. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input type="reset" value="重置">
  70.             </div></td>
  71.           </tr>
  72.         </table></td>
  73.     </tr>
  74.   </form>
  75. </table>
  76. </body>
  77. </html>