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

119 line
4.7KB

  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>附件数据管理 - 会员中心 - <?php echo $cfg_webname; ?></title>
  6. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="templets/js/j.js"></script>
  8. <script type="text/javascript" src="templets/js/load.js"></script>
  9. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  10. <script type="text/javascript">
  11. function ChangeImage(surl){ document.getElementById('picview').src = surl; }
  12. //获得选中文件的文件名
  13. function getCheckboxItem(){
  14. var allSel="";
  15. if(document.form1.aids.value) return document.form1.aids.value;
  16. for(i=0;i<document.form1.aids.length;i++)
  17. {
  18. if(document.form1.aids[i].checked){
  19. if(allSel=="")
  20. allSel=document.form1.aids[i].value;
  21. else
  22. allSel=allSel+","+document.form1.aids[i].value;
  23. }
  24. }
  25. return allSel;
  26. }
  27. function AllSel(){
  28. for(i=0;i<document.form1.aids.length;i++){
  29. document.form1.aids[i].checked = true;
  30. }
  31. }
  32. function NoneSel(){
  33. for(i=0;i<document.form1.aids.length;i++){
  34. document.form1.aids[i].checked = false;
  35. }
  36. }
  37. function DelSel(){
  38. var nid = getCheckboxItem();
  39. if(nid==""){
  40. alert("请选择项目!\r\n");
  41. return ;
  42. }
  43. location.href = "archives_do.php?dopost=delUploads&ids="+nid;
  44. }
  45. </script>
  46. </head>
  47. <body>
  48. <div id="main">
  49. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  50. <div id="content" class="w960 clearfix">
  51. <?php include(DEDEMEMBER."/templets/menu.php");?>
  52. <div id="mcpmain">
  53. <div id="appTab">
  54. <ul>
  55. <li class="thisTab"><a href="uploads.php">附件管理</a></li>
  56. </ul>
  57. <div class="tabOther">
  58. <form name='forms' method='post' action='uploads_select.php'>
  59. <input name="keyword" type="text" id="keyword" class="text" value="<?php echo $keyword?>" />
  60. <select name='mediatype'>
  61. <option value='0'>文件类型</option>
  62. <option value='1'<?php if($mediatype==1) echo " selected='1' "; ?>>图片</option>
  63. <option value='2'<?php if($mediatype==2) echo " selected='1' "; ?>>FLASH</option>
  64. <option value='3'<?php if($mediatype==3) echo " selected='1' "; ?>>视频/音频</option>
  65. <option value='4'<?php if($mediatype==4) echo " selected='1' "; ?>>其它附件</option>
  66. </select>
  67. <button class="button2 mL10" type="submit">搜索</button>
  68. </form>
  69. </div>
  70. </div>
  71. <div id="mainCp">
  72. <h3 class="meTitle">附件数据管理</h3>
  73. <form name="form1">
  74. <div class="postForm">
  75. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
  76. <thead>
  77. <tr>
  78. <th width="5%"><input name="checkedClick" type="checkbox" value="" id="checkedClick"/></th>
  79. <th>文件标题</th>
  80. <th width="8%">大小 </th>
  81. <th width="10%">类型 </th>
  82. <th width="18%">上传时间 </th>
  83. <th width="12%">操作</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. {dede:datalist}
  88. <tr>
  89. <td><input type='checkbox' name='aids' id='aids<?php echo $fields['aid']?>' value='<?php echo $fields['aid']; ?>' class='np' style="width: 31px;"/></td>
  90. <td valign="middle"><a href='<?php echo $fields['url']?>' target='_blank'><?php echo GetImageView($fields['url'],$fields['mediatype']); ?>&nbsp; <?php echo $fields['title']; ?> </a></td>
  91. <td align="center"><?php echo GetFileSize($fields['filesize']); ?></td>
  92. <td align="center"><?php echo MediaType($fields['mediatype'],$fields['url']); ?></td>
  93. <td align="center"><?php echo MyDate("Y-m-d H:i",$fields['uptime']); ?></td>
  94. <td align="center"><a href='uploads_edit.php?aid=<?php echo $fields['aid']; ?>'>更改</a> | <a href='archives_do.php?dopost=delUploads&amp;aid=<?php echo $fields['aid']; ?>'>删除</a> </td>
  95. </tr>
  96. {/dede:datalist}
  97. </tbody>
  98. <tfoot>
  99. <tr>
  100. <td colspan="5"><button class="buttonGary2 mt10" onclick="DelSel();">删除</button>
  101. <div class="pageList">{dede:pagelist listsize=10/}</div>
  102. </td>
  103. </tr>
  104. </tfoot>
  105. </table>
  106. </div>
  107. </form>
  108. <!--主操作区域 -->
  109. </div>
  110. </div>
  111. </div>
  112. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  113. </div>
  114. </body>
  115. </html>