国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
6.1KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>上传新文件</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css" />
  7. <style>
  8. .coolbg2
  9. {
  10. border: 1px solid #000000;
  11. background-color: #F2F5E9;
  12. height:18px;
  13. }
  14. .pubinputs
  15. {
  16. height:22px;
  17. margin-top: 5px;
  18. }
  19. </style>
  20. <script language='javascript'>
  21. function CheckSubmit()
  22. {
  23. if(document.form1.title.value==""){
  24. alert("请设定媒体标题!");
  25. document.form1.title.focus();
  26. return false;
  27. }
  28. }
  29. var startNum = 6;
  30. function MakeUpload()
  31. {
  32. var upfield = document.getElementById("uploadfield");
  33. var endNum = Number(document.form1.picnum.value)+startNum;
  34. if(endNum>40) endNum = 40;
  35. for(startNum;startNum<=endNum;startNum++){
  36. upfield.innerHTML += "<input type='file' name='upfile"+startNum+"' style='width:300px' size='30' class='pubinputs' /><br/>";
  37. }
  38. }
  39. function ResetUpload()
  40. {
  41. var upfield = document.getElementById("uploadfield");
  42. upfield.innerHTML = "";
  43. startNum = 2;
  44. }
  45. </script>
  46. </head>
  47. <body background="images/allbg.gif" leftmargin='8' topmargin='8'>
  48. <table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  49. <tr>
  50. <td height="28" background='images/tbg.gif'>
  51. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  52. <tr>
  53. <td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15" /></td>
  54. <td width="44%"><strong>上传新文件:</strong></td>
  55. <td width="54%" align="right">[<a href='media_main.php'><u>附件/媒体数据管理</u></a>]</td>
  56. </tr>
  57. </table>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td height="19" bgcolor="#ffffff">
  62. <img src="images/help.gif" border="0" />
  63. 提示:图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)。
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="69" align="center" valign="top" bgcolor="#FFFFFF">
  68. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  69. <form enctype="multipart/form-data" name='form1' action="media_add.php" method="POST" onSubmit="return CheckSubmit();">
  70. <input type="hidden" name="dopost" value="upload" />
  71. <input type="hidden" name="token" value="<?php echo make_hash();?>" />
  72. <tr>
  73. <td width="15%" height="30" align="center" bgcolor="#FFFFFF" class='bline'>媒体类型:</td>
  74. <td width="85%" height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;">
  75. <input name="mediatype" type="radio" class="np" value="1" checked='1' />
  76. 图片
  77. <input type="radio" name="mediatype" class="np" value="2" />
  78. FLASH
  79. <input type="radio" name="mediatype" class="np" value="3" />
  80. 视频/音频
  81. <input type="radio" name="mediatype" class="np" value="4" />
  82. 附件/其它
  83. </td>
  84. </tr>
  85. <tr>
  86. <td height="30" align="center" bgcolor="#FFFFFF" class='bline'>说明标题:</td>
  87. <td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;">
  88. <input name="title" type="text" id="title" size="30" style="width:300px" />
  89. </td>
  90. </tr>
  91. <tr>
  92. <td height="30" align="center" bgcolor="#FFFFFF" class='bline'>参数说明:</td>
  93. <td height="30" bgcolor="#FFFFFF" class='bline' colspan='2' style="text-align:left;">
  94. 图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义
  95. </td>
  96. </tr>
  97. <tr>
  98. <td height="30" align="center" bgcolor="#FFFFFF" class='bline'>附加参数:</td>
  99. <td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;">宽:
  100. <input name="mediawidth" type="text" id="mediawidth" size="5" />
  101. (像素) 高:
  102. <input name="mediaheight" type="text" id="mediaheight" size="5" />
  103. (像素) 播放时间:
  104. <input name="playtime" type="text" id="mediawidth3" size="5" />
  105. (分钟)</td>
  106. </tr>
  107. <tr>
  108. <td height="30" align="center" bgcolor="#FFFFFF" class='bline'>上传文件:</td>
  109. <td bgcolor="#FFFFFF" class='bline' style="text-align:left;">数量:
  110. <input name="picnum" type="text" id="picnum" value="5" size="6" />
  111. <input type="button" name="Submit" value="增加" onClick="MakeUpload()" />
  112. &nbsp;
  113. <input type="button" name="Submit" value="恢复" onClick="ResetUpload()" />
  114. </td>
  115. </tr>
  116. <tr>
  117. <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
  118. <td bgcolor="#FFFFFF" style="text-align:left;">
  119. <input name="upfile1" type="file" id="upfile1" style='width:300px' size='30' class='pubinputs' /><br/>
  120. <input name="upfile2" type="file" id="upfile2" style='width:300px' size='30' class='pubinputs' /><br/>
  121. <input name="upfile3" type="file" id="upfile3" style='width:300px' size='30' class='pubinputs' /><br/>
  122. <input name="upfile4" type="file" id="upfile4" style='width:300px' size='30' class='pubinputs' /><br/>
  123. <input name="upfile5" type="file" id="upfile5" style='width:300px' size='30' class='pubinputs' /><br/>
  124. <span id='uploadfield'></span>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td height="50" colspan="2" bgcolor="#FFFFFF">
  129. <table width="60%" border="0" cellspacing="0" cellpadding="0">
  130. <tr>
  131. <td align="center">
  132. <input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0" />
  133. </td>
  134. </tr>
  135. </table>
  136. </td>
  137. </tr>
  138. </form>
  139. </table>
  140. </td>
  141. </tr>
  142. </table>
  143. </body>
  144. </html>