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

39 lines
1.3KB

  1. <?php
  2. /**
  3. * 我的收藏夹
  4. *
  5. * @version $Id: mystow.php 1 8:38 2010年7月9日Z tianya $
  6. * @package DedeCMS.Member
  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. CheckRank(0, 0);
  14. require_once(DEDEINC . "/datalistcp.class.php");
  15. setcookie("ENV_GOBACK_URL", GetCurUrl(), time() + 3600, "/");
  16. $type = empty($type) ? "sys" : trim($type);
  17. $tpl = '';
  18. $menutype = 'mydede';
  19. $rank = empty($rank) ? "" : $rank;
  20. if ($rank == 'top') {
  21. $sql = "SELECT s.*,COUNT(s.aid) AS num,t.* from `#@__member_stow` AS s LEFT JOIN `#@__member_stowtype` AS t on t.stowname=s.type group by s.aid order by num desc";
  22. $tpl = 'mystowtop';
  23. } else {
  24. $sql = "SELECT s.*,t.* FROM `#@__member_stow` AS s left join `#@__member_stowtype` AS t on t.stowname=s.type where s.mid='" . $cfg_ml->M_ID . "' order by s.id desc";
  25. $tpl = 'mystow';
  26. }
  27. $dsql->Execute('nn', 'SELECT indexname,stowname FROM `#@__member_stowtype`');
  28. while ($row = $dsql->GetArray('nn')) {
  29. $rows[] = $row;
  30. }
  31. $dlist = new DataListCP();
  32. $dlist->pageSize = 20;
  33. $dlist->SetTemplate(DEDEMEMBER . "/templets/mystow.htm");
  34. $dlist->SetSource($sql);
  35. $dlist->Display();