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

32 lines
1.1KB

  1. <?php
  2. /**
  3. * 自定义模型管理
  4. *
  5. * @version $id:mychannel_main.php 15:26 2010年7月20日 tianya $
  6. * @package DedeBIZ.Administrator
  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. if (DEDEBIZ_SAFE_MODE) {
  13. die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
  14. }
  15. CheckPurview('temp_Other');
  16. require_once(DEDEINC.'/datalistcp.class.php');
  17. setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, '/');
  18. make_hash();
  19. $sql = "SELECT myt.aid,myt.tagname,tp.typename,myt.timeset,myt.endtime FROM `#@__mytag` myt LEFT JOIN `#@__arctype` tp ON tp.id=myt.typeid ORDER BY myt.aid DESC ";
  20. $dlist = new DataListCP();
  21. $dlist->SetTemplet(DEDEADMIN.'/templets/mytag_main.htm');
  22. $dlist->SetSource($sql);
  23. $dlist->display();
  24. function TestType($tname)
  25. {
  26. return $tname == '' ? '所有栏目' : $tname;
  27. }
  28. function TimeSetValue($ts)
  29. {
  30. return $ts == 0 ? '不限时间' : '限时标记';
  31. }
  32. ?>