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

132 lines
5.5KB

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