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

138 lines
6.2KB

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