国内流行的内容管理系统(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.

118 lines
5.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>上传新文件</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script src="js/main.js"></script>
  13. <style>.coolbg2{border:1px solid #000000;background:#F2F5E9;height:18px}.pubinputs{height:auto;margin-top:5px}</style>
  14. <script>
  15. function CheckSubmit() {
  16. if (document.form1.title.value == "") {
  17. ShowMsg("请设置标题");
  18. document.form1.title.focus();
  19. return false;
  20. }
  21. }
  22. var startNum = 6;
  23. function MakeUpload() {
  24. var upfield = document.getElementById("uploadfield");
  25. var endNum = Number(document.form1.picnum.value) + startNum;
  26. if (endNum > 40) endNum = 40;
  27. for (startNum; startNum <= endNum; startNum++) {
  28. upfield.innerHTML += "<input type='file' name='upfile" + startNum + "' style='width:260px' size='30' class='pubinputs'><br>";
  29. }
  30. }
  31. function ResetUpload() {
  32. var upfield = document.getElementById("uploadfield");
  33. upfield.innerHTML = "";
  34. startNum = 2;
  35. }
  36. </script>
  37. </head>
  38. <body>
  39. <table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
  40. <tr>
  41. <td bgcolor="#f8f8f8">
  42. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  43. <tr>
  44. <td width="30%">上传新文件</td>
  45. <td width="70%" align="right"><a href="media_main.php" class="btn btn-success btn-sm">附件媒体数据管理</a></td>
  46. </tr>
  47. </table>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td><div class="alert alert-info mb-0">图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)</div></td>
  52. </tr>
  53. <tr>
  54. <td align="center">
  55. <table width="100%" cellpadding="0" cellspacing="0" class="table table-borderless">
  56. <form enctype="multipart/form-data" name="form1" action="media_add.php" method="POST" onSubmit="return CheckSubmit();">
  57. <input type="hidden" name="dopost" value="upload">
  58. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  59. <tr>
  60. <td width="260" class="bline">媒体类型:</td>
  61. <td class="bline">
  62. <label><input type="radio" name="mediatype" value="1" checked="1"> 图片</label>
  63. <label><input type="radio" name="mediatype" value="2"> FLASH</label>
  64. <label><input type="radio" name="mediatype" value="3"> 视频音频</label>
  65. <label><input type="radio" name="mediatype" value="4"> 附件其它</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td class="bline">说明标题:</td>
  70. <td class="bline"><input type="text" name="title" id="title" size="30" style="width:300px"></td>
  71. </tr>
  72. <tr>
  73. <td class="bline">参数说明:</td>
  74. <td class="bline" colspan="2">图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td>
  75. </tr>
  76. <tr>
  77. <td class="bline">附加参数:</td>
  78. <td class="bline">
  79. 宽:<input type="text" name="mediawidth" id="mediawidth" style="width:60px">(像素)
  80. 高:<input type="text" name="mediaheight" id="mediaheight" style="width:60px">(像素)
  81. 播放时间:<input type="text" name="playtime" id="mediawidth3" style="width:60px">(分钟)
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="bline">上传文件:</td>
  86. <td class="bline">
  87. 数量:<input type="text" name="picnum" id="picnum" value="5" style="width:60px">
  88. <button type="button" name="Submit" class="btn btn-success btn-sm" onClick="MakeUpload()">增加</button>
  89. <button type="button" name="Submit" class="btn btn-success btn-sm" onClick="ResetUpload()">恢复</button>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td></td>
  94. <td>
  95. <input name="upfile1" type="file" id="upfile1" class="pubinputs" style="width:260px"><br>
  96. <input name="upfile2" type="file" id="upfile2" class="pubinputs" style="width:260px"><br>
  97. <input name="upfile3" type="file" id="upfile3" class="pubinputs" style="width:260px"><br>
  98. <input name="upfile4" type="file" id="upfile4" class="pubinputs" style="width:260px"><br>
  99. <input name="upfile5" type="file" id="upfile5" class="pubinputs" style="width:260px"><br>
  100. <span id="uploadfield"></span>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td colspan="2">
  105. <table width="100%" cellspacing="0" cellpadding="0">
  106. <tr>
  107. <td align="center" class="py-2"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  108. </tr>
  109. </table>
  110. </td>
  111. </tr>
  112. </form>
  113. </table>
  114. </td>
  115. </tr>
  116. </table>
  117. </body>
  118. </html>