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

169 lines
6.6KB

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