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

164 lines
6.7KB

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