国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

30 行
960B

  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 - 2020, DesDev, Inc.
  8. * @license http://help.dedecms.com/usersguide/license.html
  9. * @link http://www.dedecms.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();