国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

35 řádky
1.2KB

  1. <?php
  2. /**
  3. * 我的收藏夹
  4. *
  5. * @version $id:mystow.php 8:38 2010年7月9日 tianya $
  6. * @package DedeBIZ.User
  7. * @copyright Copyright (c) 2022 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 = 10;
  32. $dlist->SetTemplate(DEDEMEMBER."/templets/mystow.htm");
  33. $dlist->SetSource($sql);
  34. $dlist->Display();
  35. ?>