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

media_add.htm 5.1KB

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