国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

147 Zeilen
5.8KB

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