国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

136 linhas
6.1KB

  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 mt-3">
  32. <tr>
  33. <td height="26" 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="26" bgcolor="#ffffff">
  45. <div class="alert alert-info mb-0">图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)</div>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td height="69" align="center" valign="top" bgcolor="#ffffff">
  50. <table width="100%" border="0" 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="30" align="left" bgcolor="#ffffff" class='bline'>媒体类型:</td>
  58. <td width="85%" height="26" align="left" bgcolor="#ffffff" 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="30" align="center" bgcolor="#ffffff" class='bline'>说明标题:</td>
  71. <td height="26" align="left" bgcolor="#ffffff" 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="30" align="center" bgcolor="#ffffff" class='bline'>参数说明:</td>
  77. <td height="30" colspan='2' align="left" bgcolor="#ffffff" class='bline'>
  78. 图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义</td>
  79. </tr>
  80. <tr>
  81. <td height="30" align="center" bgcolor="#ffffff" class='bline'>附加参数:</td>
  82. <td height="26" align="left" bgcolor="#ffffff" class='bline'>
  83. 宽:<input name="mediawidth" type="text" id="mediawidth" size="5" value="<?php echo $myrow['width']?>">(像素)
  84. 高:<input name="mediaheight" type="text" id="mediaheight" size="5" value="<?php echo $myrow['height']?>">(像素)
  85. 播放时间:<input name="playtime" type="text" id="playtime" size="5" value="<?php echo $myrow['playtime']?>">(分钟)
  86. </td>
  87. </tr>
  88. <tr>
  89. <td height="30" align="center" bgcolor="#ffffff" class='bline'>原文件:</td>
  90. <td align="left" bgcolor="#ffffff" class='bline'>
  91. <input name="filename" type="text" id="filename" style='width:350px' value="<?php echo $myrow['url']?>">
  92. <a href='<?php echo $myrow['url']?>' target='_blank'>[查看]</a>
  93. </td>
  94. </tr>
  95. <?php
  96. if($myrow['mediatype']==1)
  97. {
  98. $fullfilename = $cfg_basedir.$myrow['url'];
  99. if(file_exists($fullfilename)){
  100. $info = "";
  101. $sizes = getimagesize($fullfilename,$info);
  102. if(is_array($sizes)){
  103. if($sizes[0]>200) $w=200;
  104. else $w = $sizes[0];
  105. ?>
  106. <tr>
  107. <td height="30" align="center" bgcolor="#ffffff" class='bline'>预览:</td>
  108. <td align="left" bgcolor="#ffffff" class='bline'>
  109. <a href="<?php echo $myrow['url']?>" target="_blank"><img src="<?php echo $myrow['url'].'?q='.time()?>" width="<?php echo $w?>" id="picview"></a>
  110. </td>
  111. </tr>
  112. <?php } } } ?>
  113. <tr>
  114. <td height="26" align="center" bgcolor="#ffffff" class='bline'>修改文件:</td>
  115. <td align="left" bgcolor="#ffffff" class='bline'>
  116. <input name="upfile" type="file" id="upfile" style='width:260px' size='30'>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td height="62" colspan="2" bgcolor="#ffffff" class='bline'>
  121. <table width="60%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  122. <tr>
  123. <td align="center" height='48'>
  124. <button type="submit" class="btn btn-success">保存</button>
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. </form>
  131. </table>
  132. </td>
  133. </tr>
  134. </table>
  135. </body>
  136. </html>