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

156 lines
7.6KB

  1. <?php
  2. if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array();
  3. $fields = array();
  4. ?><!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="<?php echo $cfg_soft_lang; ?>">
  8. <title>文档管理</title>
  9. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  11. <link rel="stylesheet" href="css/base.css">
  12. <script src="../static/js/jquery.js"></script>
  13. <script src="../static/js/bootstrap.bundle.js"></script>
  14. <script src="../static/js/dedeajax2.js"></script>
  15. <script src="js/ieemu.js"></script>
  16. <script src="js/context_menu.js"></script>
  17. <script src="js/main.js"></script>
  18. <script src="js/list.js"></script>
  19. <style>
  20. .btn+.btn{margin-left:10px}
  21. </style>
  22. </head>
  23. <body leftmargin="8" topmargin="8" background="images/allbg.gif" onLoad="ContextMenu.intializeContextMenu()">
  24. <table width="98%" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3">
  25. <tr>
  26. <td>
  27. <button type="button" class="btn btn-success btn-sm" onClick="location='catalog_do.php?channelid=<?php echo $GLOBALS['channelid']; ?>&cid=<?php echo $GLOBALS['cid']; ?>&dopost=addArchives';">添加文档</button>
  28. <?php if($adminid==$mid){ ?>
  29. <button type="button" class="btn btn-success btn-sm" onClick="location='content_list.php?cid=<?php echo $GLOBALS['cid']; ?>&mid=0';">全部文档</button>
  30. <?php
  31. }
  32. else{
  33. ?>
  34. <button type="button" class="btn btn-success btn-sm" onClick="location='content_list.php?cid=<?php echo $GLOBALS['cid']; ?>&mid=<?php echo $cuserLogin->getUserID(); ?>';">我的文档</button>
  35. <?php } echo $GLOBALS['CheckUserSend']; ?>
  36. <button type="button" class="btn btn-success btn-sm" onClick="location='catalog_main.php';">栏目管理</button>
  37. <button type="button" class="btn btn-success btn-sm" name="bb1" onClick="location='makehtml_list.php?cid=<?php echo $GLOBALS['cid']; ?>';">更新列表</button>
  38. <button type="button" class="btn btn-success btn-sm" name="bb2" onClick="location='makehtml_archives.php?cid=<?php echo $GLOBALS['cid']; ?>';">更新文档</button>
  39. <button type="button" class="btn btn-success btn-sm" name="bb1" onClick="location='recycling.php?cid=<?php echo $GLOBALS['cid']; ?>';">文档回收站</button>
  40. </td>
  41. </tr>
  42. </table>
  43. <form name="form3" action="content_list.php" method="get">
  44. <input type="hidden" name="dopost" value="listArchives">
  45. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6">
  46. <tr>
  47. <td style="background:#f8f8f8">
  48. <table cellpadding="0" cellspacing="0" height="36">
  49. <tr>
  50. <td>
  51. <select name="cid" style="margin:0 10px;width:160px">
  52. <option value="0">选择栏目</option>
  53. <?php echo $GLOBALS['optionarr']; ?>
  54. </select>
  55. </td>
  56. <td>关键字:</td>
  57. <td><input name="keyword" type="text" value="<?php echo $GLOBALS['keyword']; ?>" style="margin-right:10px;width:260px"></td>
  58. <td>
  59. <select name="orderby" style="margin-right:10px;width:160px">
  60. <option value="id">选择排序</option>
  61. <option value="pubdate">更新时间</option>
  62. <option value="sortrank">置顶权值</option>
  63. <option value="click">点击量</option>
  64. <option value="scores">评论积分</option>
  65. <option value="lastpost">最后评论</option>
  66. </select>
  67. </td>
  68. <td>
  69. <select name="flag" style="margin-right:10px;width:160px">
  70. <option value="">选择属性</option>
  71. <?php echo $GLOBALS['flagsArr']; ?>
  72. </select>
  73. </td>
  74. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  75. </tr>
  76. </table>
  77. </td>
  78. </tr>
  79. </table>
  80. </form>
  81. <form name="form2">
  82. <table width="98%" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" class="table table-bordered maintable" style="margin-top:10px">
  83. <tr>
  84. <td height="30" colspan="10" style="margin-left:10px;background:#f8f8f8"><?php echo $GLOBALS['positionname']; ?>文档列表(使用鼠标右键弹出菜单)</td>
  85. </tr>
  86. <tr align="center" bgcolor="#FBFCE2" height="26">
  87. <td width="6%">ID</td>
  88. <td width="6%">选择</td>
  89. <td width="30%">文章标题</td>
  90. <td width="10%">更新时间</td>
  91. <td width="14%">类目</td>
  92. <td width="6%">点击</td>
  93. <td width="6%">HTML</td>
  94. <td width="6%">权限</td>
  95. <td width="6%">发布人</td>
  96. <td width="10%">操作</td>
  97. </tr>
  98. <?php
  99. $atts = array();
  100. $atts['tagname'] = 'datalist';
  101. $blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields);
  102. if(is_array($blockValue)){
  103. foreach( $blockValue as $key=>$fields )
  104. {
  105. ?>
  106. <tr align="center" bgcolor="#ffffff" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#ffffff';">
  107. <td><?php echo $fields['id']; ?></td>
  108. <td><input name="arcID" type="checkbox" id="arcID" value="<?php echo $fields['id']; ?>" class="np"></td>
  109. <td align="left">
  110. <span id="arc<?php echo $fields['id']; ?>">
  111. <a href="archives_do.php?aid=<?php echo $fields['id']; ?>&dopost=editArchives" oncontextmenu="ShowMenu(event,this,<?php echo $fields['id']; ?>,'<?php echo str_replace('\'','',$fields['title']); ?>')"><?php echo $fields['title']; ?></a>
  112. </span>
  113. <?php echo IsCommendArchives($fields['flag']); ?>
  114. </td>
  115. <td><?php echo GetDateMk($fields['senddate']); ?></td>
  116. <td><a href="content_list.php?cid=<?php echo $fields['typeid']; ?>"><?php echo GetTypename($fields['typeid']); ?></a></td>
  117. <td><?php echo $fields['click']; ?></td>
  118. <td><?php echo IsHtmlArchives($fields['ismake']); ?></td>
  119. <td><?php echo GetRankName($fields['arcrank']); ?></td>
  120. <td><?php echo GetMemberName($fields['mid']); ?></td>
  121. <td>
  122. <a href="javascript:;" title="属性" class="btn btn-success btn-sm" onClick="QuickEdit('<?php echo $fields['id']; ?>',event,this);"><i class="fa fa-cogs" aria-hidden="true"></i></a>
  123. <a href="javascript:;" title="编辑" class="btn btn-success btn-sm" onClick="editArc(<?php echo $fields['id']; ?>);"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
  124. <a href="javascript:;" title="预览" class="btn btn-success btn-sm" onClick="viewArc(<?php echo $fields['id']; ?>);"><i class="fa fa-globe" aria-hidden="true"></i></a>
  125. </td>
  126. </tr>
  127. <?php
  128. }
  129. }?>
  130. <tr>
  131. <td height="36" colspan="10" style="margin-left:10px;background:#ffffff">
  132. <a class="btn btn-success btn-sm" href="javascript:selAll()">全选</a>
  133. <a class="btn btn-success btn-sm" href="javascript:noSelAll()">取消</a>
  134. <a class="btn btn-success btn-sm" href="javascript:updateArc(0)">更新</a>
  135. <a class="btn btn-success btn-sm" href="javascript:checkArc(0)">审核</a>
  136. <a class="btn btn-success btn-sm" href="javascript:adArc(0)">推荐</a>
  137. <a class="btn btn-success btn-sm" href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid)?0:$channelid); ?>)">移动</a>
  138. <a class="btn btn-danger btn-sm" href="javascript:delArc(0)">删除</a>
  139. <?php if($channelid==1) echo "<a class='btn btn-success btn-sm' href='javascript:kwArc(0)'>自动关键字</a>"; ?>
  140. <a class="btn btn-success btn-sm" href="javascript:;" onClick="cAtts('attsAdd',event,this)">增加属性</a>
  141. <a class="btn btn-danger btn-sm" href="javascript:;" onClick="cAtts('attsDel',event,this)">删除属性</a>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td height="36" colspan="10" align="center" style="background:#f8f8f8"><?php
  146. $atts = array();
  147. $atts['tagname'] = 'pagelist';
  148. $atts['listsize'] = '6';
  149. echo $this->refObj->GetPageList($atts,$this->refObj,$fields);
  150. ?>
  151. </td>
  152. </tr>
  153. </table>
  154. </form>
  155. </body>
  156. </html>