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

28 line
938B

  1. <?php
  2. /**
  3. * 文档回收站
  4. *
  5. * @version $id:recycling.php 15:46 2010年7月20日 tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license GNU GPL v2 (https://www.dedebiz.com/license)
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__).'/config.php');
  12. CheckPurview('a_Recycling');
  13. require_once(DEDEINC.'/datalistcp.class.php');
  14. if (empty($cid)) {
  15. $cid = '0';
  16. $whereSql = '';
  17. }
  18. $cid = intval($cid);
  19. if ($cid != 0) {
  20. require_once(DEDEINC.'/channelunit.func.php');
  21. $whereSql = " AND arc.typeid IN (".GetSonIds($cid).")";
  22. }
  23. $query = "SELECT arc.*,tp.typename FROM `#@__archives` AS arc LEFT JOIN `#@__arctype` AS tp ON arc.typeid = tp.id WHERE arc.arcrank = '-2' $whereSql ORDER BY arc.id DESC";
  24. $dlist = new DataListCP();
  25. $dlist->SetTemplet(DEDEADMIN."/templets/recycling.htm");
  26. $dlist->SetSource($query);
  27. $dlist->display();
  28. ?>