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

88 lines
3.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  7. <title>我的文档-会员中心-<?php echo $cfg_webname;?></title>
  8. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="/static/web/css/style.css">
  11. </head>
  12. <body class="body-bg">
  13. <?php obtaintheme('top.htm');?>
  14. <main class="container py-3">
  15. <div class="row">
  16. <?php
  17. $_menu_conex = true;
  18. ?>
  19. <?php include(DEDEMEMBER."/templets/menu.htm");?>
  20. <div class="col-md-9">
  21. <div class="pannel-main-container shadow-sm rounded">
  22. <ul class="nav mb-3">
  23. <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>" class="nav-link <?php echo ($arcrank=='') ? 'active' : '';?>">全部</a></li>
  24. <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>&arcrank=1" class="nav-link <?php echo ($arcrank=='1') ? 'active' : '';?>">已审核</a></li>
  25. <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=<?php echo $channelid;?>&arcrank=-1" class="nav-link <?php echo ($arcrank=='-1') ? 'active' : '';?>">待审核</a></li>
  26. <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/archives_do.php?dopost=addArc&channelid=<?php echo $channelid;?>" class="nav-link">发布</a></li>
  27. </ul>
  28. <div class="table-responsive">
  29. <table class="table">
  30. <thead>
  31. <tr>
  32. <th width="8%">#</th>
  33. <th width="26%">文档标题</th>
  34. <th width="16%">栏目</th>
  35. <th width="16%">状态</th>
  36. <th width="16%">更新时间</th>
  37. <th>操作</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {dede:datalist}
  42. <tr>
  43. <td><?php echo $fields['id'];?></td>
  44. <td><a href="<?php echo $cfg_phpurl;?>/view.php?aid=<?php echo $fields['id'];?>"><?php echo $fields['title'];?><?php echo IsPicArchives($fields['flag']);?></a></td>
  45. <td><?php echo $fields['typename'];?></td>
  46. <td>
  47. <?php
  48. if ($fields['arcrank']>=0) echo '已审核';
  49. else if ($fields['arcrank']==-2) echo '失败';
  50. else echo '待审核';
  51. ?>
  52. </td>
  53. <td><?php echo GetDateMk($fields['senddate']);?></td>
  54. <td>
  55. <a href="javascript:viewArc(<?php echo $fields['id'];?>);" class="btn btn-success btn-sm">预览</a>
  56. <?php if ($fields['arcrank']<0 || $dtime - $fields['senddate'] < $maxtime) {?>
  57. <a href="javascript:editArc(<?php echo $fields['id']?>,<?php echo $fields['channel']?>);" class="btn btn-success btn-sm">修改</a>
  58. <a href="javascript:delArc(<?php echo $fields['id']?>);" class="btn btn-danger btn-sm">删除</a>
  59. <?php }?>
  60. </td>
  61. </tr>
  62. {/dede:datalist}
  63. </tbody>
  64. </table>
  65. </div>
  66. {dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}
  67. </div>
  68. </div>
  69. </div>
  70. </main>
  71. <?php obtaintheme('foot.htm');?>
  72. <script>
  73. function viewArc(aid) {
  74. window.open("{dede:global.cfg_phpurl/}/view.php?aid=" + aid);
  75. }
  76. function editArc(aid, channelid) {
  77. location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid;
  78. }
  79. function delArc(aid) {
  80. DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
  81. location = "archives_do.php?aid=" + aid + "&dopost=delArc";
  82. }).catch((e)=>{
  83. console.log(e)
  84. });
  85. }
  86. </script>
  87. </body>
  88. </html>