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

30 lines
939B

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