国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1000B

  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) 2007 - 2018, DesDev, Inc.
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license/v6
  10. * @link https://www.dedebiz.com
  11. */
  12. require_once(dirname(__FILE__).'/config.php');
  13. CheckPurview('a_List,a_AccList,a_MyList');
  14. require_once(DEDEINC.'/datalistcp.class.php');
  15. if(empty($cid))
  16. {
  17. $cid = '0';
  18. $whereSql = '';
  19. }
  20. if($cid!=0)
  21. {
  22. require_once(DEDEINC.'/channelunit.func.php');
  23. $whereSql = " AND arc.typeid IN (".GetSonIds($cid).")";
  24. }
  25. $query = "SELECT arc.*,tp.typename FROM `#@__archives` AS arc
  26. LEFT JOIN #@__arctype AS tp ON arc.typeid = tp.id
  27. WHERE arc.arcrank = '-2' $whereSql order by arc.id desc";
  28. $dlist = new DataListCP();
  29. $dlist->SetTemplet(DEDEADMIN."/templets/recycling.htm");
  30. $dlist->SetSource($query);
  31. $dlist->display();