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

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