国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

135 řádky
6.0KB

  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" border="0" cellpadding="3" cellspacing="1" class="table maintable mt-3">
  31. <tr>
  32. <td height="26" background="../static/web/img/tbg.gif">
  33. <table width="98%" border="0" 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" bgcolor="#ffffff">
  44. <div class="alert alert-info mb-0">图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)</div>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td height="69" align="center" valign="top" bgcolor="#ffffff">
  49. <table width="100%" border="0" 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="30" align="left" bgcolor="#ffffff" class='bline'>媒体类型:</td>
  57. <td width="85%" height="26" align="left" bgcolor="#ffffff" 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="30" align="center" bgcolor="#ffffff" class='bline'>说明标题:</td>
  70. <td height="26" align="left" bgcolor="#ffffff" 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="30" align="center" bgcolor="#ffffff" class='bline'>参数说明:</td>
  76. <td height="30" colspan='2' align="left" bgcolor="#ffffff" class='bline'>
  77. 图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td>
  78. </tr>
  79. <tr>
  80. <td height="30" align="center" bgcolor="#ffffff" class='bline'>附加参数:</td>
  81. <td height="26" align="left" bgcolor="#ffffff" 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="30" align="center" bgcolor="#ffffff" class='bline'>原文件:</td>
  89. <td align="left" bgcolor="#ffffff" class='bline'>
  90. <input name="filename" type="text" id="filename" style='width:350px' 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="30" align="center" bgcolor="#ffffff" class='bline'>预览:</td>
  107. <td align="left" bgcolor="#ffffff" 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" align="center" bgcolor="#ffffff" class='bline'>修改文件:</td>
  114. <td align="left" bgcolor="#ffffff" class='bline'>
  115. <input name="upfile" type="file" id="upfile" style='width:260px' size='30'>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td height="62" colspan="2" bgcolor="#ffffff" class='bline'>
  120. <table width="60%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  121. <tr>
  122. <td align="center" height='48'>
  123. <button type="submit" class="btn btn-success">保存</button>
  124. </td>
  125. </tr>
  126. </table>
  127. </td>
  128. </tr>
  129. </form>
  130. </table>
  131. </td>
  132. </tr>
  133. </table>
  134. </body>
  135. </html>