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

153 lines
5.7KB

  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. .napisdiv {left:10;top:0;width:150px;height:100px;position:absolute;z-index:3}
  9. </style>
  10. <script>
  11. function ChangeImage(surl){ document.getElementById('picview').src = surl; }
  12. //获得选中文件的文件名
  13. function getCheckboxItem(){
  14. var allSel="";
  15. if(document.form1.aids.value) return document.form1.aids.value;
  16. for(i=0;i<document.form1.aids.length;i++)
  17. {
  18. if(document.form1.aids[i].checked){
  19. if(allSel=="")
  20. allSel=document.form1.aids[i].value;
  21. else
  22. allSel=allSel+","+document.form1.aids[i].value;
  23. }
  24. }
  25. return allSel;
  26. }
  27. function AllSel(){
  28. for(i=0;i<document.form1.aids.length;i++){
  29. document.form1.aids[i].checked = true;
  30. }
  31. }
  32. function NoneSel(){
  33. for(i=0;i<document.form1.aids.length;i++){
  34. document.form1.aids[i].checked = false;
  35. }
  36. }
  37. function DelSel(){
  38. var nid = getCheckboxItem();
  39. if(nid==""){
  40. alert("请选择项目!\r\n");
  41. return ;
  42. }
  43. location.href = "media_edit.php?dopost=del&ids="+nid;
  44. }
  45. </script>
  46. </head>
  47. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  48. <div id="floater" class="napisdiv">
  49. <a href="javascript:;" onClick="ChangeImage('./dialog/img/picviewnone.gif');">
  50. <img src='./dialog/img/picviewnone.gif' id='picview' name='picview' border='0' alt='单击关闭预览' style='z-index:10000'>
  51. </a>
  52. </div>
  53. <SCRIPT language=JavaScript src="js/float.js"></SCRIPT>
  54. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf">
  55. <tr>
  56. <td height="28" colspan="7" background="images/tbg.gif">
  57. <table width='96%' cellpadding='0' cellspacing='0' style="padding-left:10px;">
  58. <tr>
  59. <td width='30%'><b>附件数据管理</b></td>
  60. <td align='right'>
  61. [<a href="media_add.php"><u>上传新文件</u></a>]
  62. </td>
  63. </tr>
  64. </table>
  65. </td>
  66. </tr>
  67. <tr bgcolor="#ffffff" height="24">
  68. <td colspan="7">
  69. <table width="600" border="0" cellspacing="0" cellpadding="0">
  70. <form name='forms' method='post' action='media_main.php'>
  71. <tr>
  72. <td width="10">&nbsp;</td>
  73. <td width="70" align="center">关键字:</td>
  74. <td width="100">
  75. <input name="keyword" type="text" id="keyword" style="width:100" value="<?php echo $keyword?>" />
  76. </td>
  77. <td width="100" align="center">
  78. <select name='mediatype' style='width:80'>
  79. <option value='0'>文件类型</option>
  80. <option value='1'<?php if($mediatype==1) echo " selected"?>>图片</option>
  81. <option value='2'<?php if($mediatype==2) echo " selected"?>>FLASH</option>
  82. <option value='3'<?php if($mediatype==3) echo " selected"?>>视频/音频</option>
  83. <option value='4'<?php if($mediatype==4) echo " selected"?>>其它附件</option>
  84. </select> </td>
  85. <td width="100" align="center">
  86. <select name='membertype' style='width:80'>
  87. <option value='0'>用户组</option>
  88. <option value='1'<?php if($membertype==1) echo " selected"?>>管理员</option>
  89. <option value='2'<?php if($membertype==2) echo " selected"?>>外部会员</option>
  90. </select>
  91. </td>
  92. <td>
  93. <input class="np" name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" />
  94. </td>
  95. </tr>
  96. </form>
  97. </table>
  98. </td>
  99. </tr>
  100. <tr bgcolor="#FBFCE2" height="24" align="center">
  101. <td width="8%">选择</td>
  102. <td width="28%">文件标题</td>
  103. <td width="10%">文件大小</td>
  104. <td width="15%">上传会员</td>
  105. <td width="15%">上传时间</td>
  106. <td width="9%">文件类型</td>
  107. <td width="15%">管理</td>
  108. </tr>
  109. <form name='form1'>
  110. {dede:datalist}
  111. <tr align="center" bgcolor="#FFFFFF" height="24"
  112. onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
  113. <td>
  114. <input type='checkbox' name='aids' id='aids{dede:field.aid/}' value='{dede:field.aid/}' class='np'/>
  115. </td>
  116. <td>
  117. <a href='{dede:field.url/}' title='{dede:field.url/}' target='_blank'>
  118. <u>{dede:field.title/}</u>
  119. </a>
  120. </td>
  121. <td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
  122. <td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
  123. <td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td>
  124. <td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
  125. <td>
  126. <a href='media_edit.php?aid={dede:field.aid/}&dopost=edit'>更改</a>
  127. |
  128. <a href='media_edit.php?aid={dede:field.aid/}&dopost=del'>删除</a>
  129. </td>
  130. </tr>
  131. {/dede:datalist}
  132. <tr bgcolor="#ffffff" height="28">
  133. <td colspan="7">
  134. &nbsp; <input type="button" name="b4" value="全选" class="coolbg np" style="width:40px" onClick="AllSel();" />
  135. &nbsp; <input type="button" name="b5" value="取消" class="coolbg np" style="width:40px" onClick="NoneSel();" />
  136. &nbsp; <input type="button" name="b6" value="删除所选" class="coolbg np" style="width:80px" onClick="DelSel();" />
  137. </td>
  138. </tr>
  139. <tr bgcolor="#F9FCEF" height="36">
  140. <td colspan="7" align="center">
  141. {dede:pagelist listsize=5/}
  142. </td>
  143. </tr>
  144. </form>
  145. </table>
  146. </td>
  147. </tr>
  148. </table>
  149. </body>
  150. </html>