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

  1. <?php
  2. /**
  3. * 回收站
  4. *
  5. * @version $Id: recycling.php 1 15:46 2010年7月20日Z tianya $
  6. * @package DedeBIZ.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. $cid = '0';
  16. $whereSql = '';
  17. }
  18. if ($cid != 0) {
  19. require_once(DEDEINC . '/channelunit.func.php');
  20. $whereSql = " AND arc.typeid IN (" . GetSonIds($cid) . ")";
  21. }
  22. $query = "SELECT arc.*,tp.typename FROM `#@__archives` AS arc
  23. LEFT JOIN `#@__arctype` AS tp ON arc.typeid = tp.id
  24. WHERE arc.arcrank = '-2' $whereSql order by arc.id desc";
  25. $dlist = new DataListCP();
  26. $dlist->SetTemplet(DEDEADMIN . "/templets/recycling.htm");
  27. $dlist->SetSource($query);
  28. $dlist->display();