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

109 lines
4.7KB

  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}</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. </script>
  23. </head>
  24. <body>
  25. <table width="98%" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3 mb-3">
  26. <tr>
  27. <td bgcolor="#f8f8f8">
  28. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  29. <tr>
  30. <td width="30%">修改媒体</td>
  31. <td width="70%" align="right"><a href="media_main.php" class="btn btn-success btn-sm">附件媒体数据管理</a></td>
  32. </tr>
  33. </table>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td><div class="alert alert-info mb-0">图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)</div></td>
  38. </tr>
  39. <tr>
  40. <td align="center">
  41. <table width="100%" cellpadding="0" cellspacing="0">
  42. <form enctype="multipart/form-data" name="form1" action="media_edit.php" method="POST" onSubmit="return CheckSubmit();">
  43. <input type="hidden" name="dopost" value="save">
  44. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  45. <input type="hidden" name="aid" value="<?php echo $aid?>">
  46. <tr>
  47. <td width="15%" align="left" class="biz-td">媒体类型:</td>
  48. <td width="85%" align="left" class="biz-td">
  49. <label><input type="radio" name="mediatype" value="1" <?php if ($myrow['mediatype']==1) echo "checked";?>> 图片</label>
  50. <label><input type="radio" name="mediatype" value="2" <?php if ($myrow['mediatype']==2) echo "checked";?>> FLASH</label>
  51. <label><input type="radio" name="mediatype" value="3" <?php if ($myrow['mediatype']==3) echo "checked";?>> 视频音频</label>
  52. <label><input type="radio" name="mediatype" value="4" <?php if ($myrow['mediatype']==4) echo "checked";?>> 附件其它</label>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="biz-td">说明标题:</td>
  57. <td class="biz-td"><input type="text" name="title" id="title" value="<?php echo $myrow['title']?>" class="biz-input-md"></td>
  58. </tr>
  59. <tr>
  60. <td class="biz-td">参数说明:</td>
  61. <td class="biz-td" colspan="2">图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td>
  62. </tr>
  63. <tr>
  64. <td class="biz-td">附加参数:</td>
  65. <td class="biz-td">
  66. 宽:<input type="text" name="mediawidth" id="mediawidth" value="<?php echo $myrow['width']?>" class="biz-input-sm">(像素)
  67. 高:<input type="text" name="mediaheight" id="mediaheight" value="<?php echo $myrow['height']?>" class="biz-input-sm">(像素)
  68. 播放时间:<input type="text" name="playtime" id="playtime" value="<?php echo $myrow['playtime']?>" class="biz-input-sm">(分钟)
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="biz-td">原文件:</td>
  73. <td class="biz-td">
  74. <input type="text" name="filename" id="filename" value="<?php echo $myrow['url']?>" class="biz-input-md">
  75. <a href="<?php echo $myrow['url']?>" target="_blank">[查看]</a>
  76. </td>
  77. </tr>
  78. <?php
  79. if ($myrow['mediatype']==1)
  80. {
  81. $fullfilename = $cfg_basedir.$myrow['url'];
  82. if (file_exists($fullfilename)){
  83. $info = "";
  84. $sizes = getimagesize($fullfilename,$info);
  85. if (is_array($sizes)){
  86. if ($sizes[0]>200) $w=200;
  87. else $w = $sizes[0];
  88. ?>
  89. <tr>
  90. <td class="biz-td">预览:</td>
  91. <td class="biz-td"><a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a></td>
  92. </tr>
  93. <?php }}}?>
  94. <tr>
  95. <td class="biz-td">修改文件:</td>
  96. <td class="biz-td">
  97. <input name="upfile" type="file" id="upfile" class="biz-input-md">
  98. </td>
  99. </tr>
  100. <tr>
  101. <td colspan="2" align="center" class="py-2"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  102. </tr>
  103. </form>
  104. </table>
  105. </td>
  106. </tr>
  107. </table>
  108. </body>
  109. </html>