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

133 lines
5.3KB

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