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

33 lines
980B

  1. <?php
  2. /**
  3. * 自定义模型管理
  4. *
  5. * @version $Id: mychannel_main.php 1 15:26 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('temp_Other');
  13. require_once(DEDEINC . '/datalistcp.class.php');
  14. setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, '/');
  15. make_hash();
  16. $sql = "SELECT myt.aid,myt.tagname,tp.typename,myt.timeset,myt.endtime
  17. FROM `#@__mytag` myt LEFT JOIN `#@__arctype` tp ON tp.id=myt.typeid ORDER BY myt.aid DESC ";
  18. $dlist = new DataListCP();
  19. $dlist->SetTemplet(DEDEADMIN . '/templets/mytag_main.htm');
  20. $dlist->SetSource($sql);
  21. $dlist->display();
  22. function TestType($tname)
  23. {
  24. return $tname == '' ? '所有栏目' : $tname;
  25. }
  26. function TimeSetValue($ts)
  27. {
  28. return $ts == 0 ? '不限时间' : '限时标记';
  29. }