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

38 lines
1.3KB

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