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

157 lines
6.3KB

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