|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>我的文档-会员中心-<?php echo $cfg_webname;?></title>
- <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
- <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="/static/web/css/style.css">
- </head>
- <body class="body-bg">
- <?php obtaintheme('top.htm');?>
- <main class="container py-3">
- <div class="row">
- <?php
- $_menu_conex = true;
- ?>
- <?php include(DEDEMEMBER."/templets/menu.htm");?>
- <div class="col-md-9">
- <div class="pannel-main-container shadow-sm rounded">
- <ul class="nav mb-3">
- <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_sg_list.php?channelid=<?php echo $channelid;?>" class="nav-link <?php echo ($arcrank=='') ? 'active':'';?>">全部</a></li>
- <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_sg_list.php?channelid=<?php echo $channelid;?>&arcrank=1" class="nav-link <?php echo ($arcrank=='1') ? 'active':'';?>">已审核</a></li>
- <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/content_sg_list.php?channelid=<?php echo $channelid;?>&arcrank=-1" class="nav-link <?php echo ($arcrank=='-1') ? 'active':'';?>">未审核</a></li>
- <li class="nav-item"><a href="<?php echo $cfg_memberurl;?>/archives_do.php?dopost=addArc&channelid=<?php echo $channelid;?>" class="nav-link">发布</a></li>
- </ul>
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th width="8%">#</th>
- <th width="26%">文档标题</th>
- <th width="16%">栏目</th>
- <th width="16%">状态</th>
- <th width="16%">时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- {dede:datalist}
- <tr>
- <td><?php echo $fields['aid'];?></td>
- <td><a href="<?php echo $cfg_phpurl;?>/view.php?aid=<?php echo $fields['aid'];?>"><?php echo $fields['title'];?></a></td>
- <td><?php echo $fields['typename'];?></td>
- <td>
- <?php
- if ($fields['arcrank'] >= 0) echo '已审核';
- else if ($fields['arcrank'] == -2) echo '失败';
- else echo '未审核';
- ?>
- </td>
- <td><?php echo GetDateMk($fields['senddate']);?></td>
- <td>
- <a href="javascript:viewArc(<?php echo $fields['aid'];?>);" class="btn btn-success btn-sm">预览</a>
- <a href="javascript:editArc(<?php echo $fields['aid']?>,<?php echo $fields['channel']?>);" class="btn btn-success btn-sm">修改</a>
- <a href="javascript:delArc(<?php echo $fields['aid']?>);" class="btn btn-danger btn-sm">删除</a>
- </td>
- </tr>
- {/dede:datalist}
- </tbody>
- </table>
- </div>
- {dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}
- </div>
- </div>
- </div>
- </main>
- <?php obtaintheme('foot.htm');?>
- <script>
- function viewArc(aid) {
- window.open("{dede:global.cfg_phpurl/}/view.php?aid=" + aid);
- }
- function editArc(aid, channelid) {
- location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid;
- }
- function delArc(aid) {
- DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
- location = "archives_do.php?aid=" + aid + "&dopost=delArc";
- }).catch((e)=>{
- console.log(e)
- });
- }
- </script>
- </body>
- </html>
|