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

120 lines
5.3KB

  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script>
  7. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css">
  8. <link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css">
  11. <title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title>
  12. <script type="text/javascript">
  13. function viewArc(aid) {
  14. window.open("{dede:global.cfg_phpurl /}/view.php?aid=" + aid);
  15. }
  16. function editArc(aid, channelid) {
  17. location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid;
  18. }
  19. function delArc(aid) {
  20. if (window.confirm('你确定要删除这篇文档吗?')) location = "archives_do.php?aid=" + aid + "&dopost=delArc";
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <?php include(DEDEMEMBER."/templets/top_login.htm"); ?>
  26. <main class="member">
  27. <div class="container-fluid pannel">
  28. <div class="container">
  29. <div class="row">
  30. <?php
  31. $_menu_conex = true; // 展开编辑信息
  32. ?>
  33. <?php include(DEDEMEMBER."/templets/menu.htm"); ?>
  34. <div class="pannel-main col-md-9 mt-3 mb-3">
  35. <div class="pannel-main-container">
  36. <nav class="navbar navbar-expand-lg">
  37. <ul class="navbar-nav mr-auto mt-2">
  38. <li class="nav-item">
  39. <a class="nav-link<?php echo ($arcrank=='')? ' active' : '';?>"
  40. href="content_list.php?channelid=<?php echo $channelid;?>">全部</a>
  41. </li>
  42. <li class="nav-item">
  43. <a class="nav-link<?php echo ($arcrank=='1')? ' active' : '';?>"
  44. href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=1">已审核</a>
  45. </li>
  46. <li class="nav-item">
  47. <a class="nav-link<?php echo ($arcrank=='-1')? ' active' : '';?>"
  48. href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-1">未审核</a>
  49. </li>
  50. <li class="nav-item">
  51. <a class="nav-link<?php echo ($arcrank=='-2')? ' active' : '';?>"
  52. href="content_list.php?channelid=<?php echo $channelid;?>&arcrank=-2">被退回</a>
  53. </li>
  54. </ul>
  55. <span class="navbar-text">
  56. <a href="archives_do.php?dopost=addArc&channelid=<?php echo $channelid;?>"
  57. class="btn btn-success btn-sm">添加内容</a>
  58. </span>
  59. </nav>
  60. <div class="table-responsive">
  61. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
  62. <thead>
  63. <tr>
  64. <th style="width: 20%;">文章标题</th>
  65. <th>类目 </th>
  66. <th>状态 </th>
  67. <th>点击 </th>
  68. <th>发布时间 </th>
  69. <th>操作</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. {dede:datalist}
  74. <tr>
  75. <td class="tabTitle"><a
  76. href='<?php echo $cfg_phpurl; ?>/view.php?aid=<?php echo $fields['id']; ?>'
  77. target='_blank'><?php echo $fields['title']; ?><?php echo IsPicArchives($fields['litpic']); ?></a>
  78. </td>
  79. <td align="center"><?php echo $fields['typename']; ?></td>
  80. <td align="center"><?php
  81. if($fields['arcrank']>=0) echo "已审核";
  82. else if($fields['arcrank']==-2) echo "<font color='blue'>被退回</font>";
  83. else echo "<font color='red'>未审核</font>";
  84. ?></td>
  85. <td align="center"><?php echo $fields['click']; ?></td>
  86. <td><?php echo GetDateMk($fields['senddate']); ?></td>
  87. <td align="center" class="doPost"><?php
  88. if($fields['arcrank']<0 || $dtime - $fields['senddate'] < $maxtime)
  89. {
  90. ?>
  91. <a href="javascript:editArc(<?php echo $fields['id']?>,<?php echo $fields['channel']?>);">修改</a>
  92. | <a href="javascript:delArc(<?php echo $fields['id']?>);">删除</a> |
  93. <?php
  94. }
  95. else
  96. {
  97. echo "<span class='gray'>改 | 删 | </span>";
  98. }
  99. ?> <a href="javascript:viewArc(<?php echo $fields['id']; ?>);">预览</a></td>
  100. </tr>
  101. {/dede:datalist}
  102. </tbody>
  103. </table>
  104. </div>
  105. <nav>
  106. {dede:pagelist listsize=5 /}
  107. </nav>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </main>
  114. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  115. </body>
  116. </html>