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

148 lines
5.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>附件数据管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.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. </style>
  20. <script>
  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. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  57. <tr>
  58. <td height="26" colspan="7" background="../static/web/img/tbg.gif">
  59. <table width='96%' cellpadding='0' cellspacing='0' style="padding-left:10px" class="table-borderless">
  60. <tr>
  61. <td width='30%'>附件数据管理</td>
  62. <td align='right'>
  63. <a href="media_add.php" class="btn btn-success btn-sm">上传新文件</a>
  64. </td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td colspan="7">
  71. <table width="900" cellspacing="0" cellpadding="0" class="table-borderless">
  72. <form name='forms' method='post' action='media_main.php'>
  73. <tr>
  74. <td width="280" align="center">
  75. <input name="keyword" type="text" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" style="width:260px">
  76. </td>
  77. <td width="170">
  78. <select name='mediatype' style='width:160px'>
  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>
  85. </td>
  86. <td width="170">
  87. <select name='membertype' style='width:160px'>
  88. <option value='0'>用户组</option>
  89. <option value='1' <?php if($membertype==1) echo " selected"?>>管理员</option>
  90. <option value='2' <?php if($membertype==2) echo " selected"?>>外部会员</option>
  91. </select>
  92. </td>
  93. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  94. </tr>
  95. </form>
  96. </table>
  97. </td>
  98. </tr>
  99. <tr bgcolor="#F8FCF1" height="26" align="center">
  100. <td width="8%">选择</td>
  101. <td width="28%">文件标题</td>
  102. <td width="10%">文件大小</td>
  103. <td width="15%">上传会员</td>
  104. <td width="15%">上传时间</td>
  105. <td width="9%">文件类型</td>
  106. <td width="15%">管理</td>
  107. </tr>
  108. <form name='form1'>
  109. {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
  110. <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
  111. <td>
  112. <input type='checkbox' name='aids' id='aids{dede:field.aid/}' value='{dede:field.aid/}' class='np'>
  113. </td>
  114. <td>
  115. <a href='{dede:field.url/}' title='{dede:field.url/}' target='_blank'>
  116. {dede:field.title/}
  117. </a>
  118. </td>
  119. <td>{dede:field.filesize function='GetFileSize(@me)'/}</td>
  120. <td>{dede:field.adminname function="UploadAdmin(@me,$fields['membername'])"/}</td>
  121. <td>{dede:field.uptime function="MyDate('Y-m-d H:i',@me)"/}</td>
  122. <td>{dede:field.mediatype function="MediaType(@me,$fields['url'])"/}</td>
  123. <td>
  124. <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>
  125. <a href='media_edit.php?aid={dede:field.aid/}&dopost=del' class="btn btn-success btn-sm"><i class="fa fa-trash"></i> 删除</a>
  126. </td>
  127. </tr>
  128. {/dede:datalist}
  129. <tr>
  130. <td colspan="7">
  131. <button type="button" name="b4" class="btn btn-success btn-sm" onClick="AllSel();">全选</button>
  132. <button type="button" name="b5" class="btn btn-success btn-sm" onClick="NoneSel();">取消</button>
  133. <button type="button" name="b6" class="btn btn-success btn-sm" onClick="DelSel();">删除所选</button>
  134. </td>
  135. </tr>
  136. <tr bgcolor="#f8f8f8" height="36">
  137. <td colspan="7" align="center">{dede:pagelist listsize='6'/}</td>
  138. </tr>
  139. </form>
  140. </table>
  141. </td>
  142. </tr>
  143. </table>
  144. </body>
  145. </html>