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

27 lines
892B

  1. <?php
  2. /**
  3. * 站内新闻管理
  4. *
  5. * @version $Id: mynews_main.php 1 15:28 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. require_once(DEDEINC . "/typelink.class.php");
  13. require_once(DEDEINC . "/datalistcp.class.php");
  14. setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");
  15. $sql = "SELECT
  16. #@__mynews.aid,#@__mynews.title,#@__mynews.writer,
  17. #@__mynews.senddate,#@__mynews.typeid,
  18. #@__arctype.typename
  19. FROM #@__mynews
  20. LEFT JOIN #@__arctype ON #@__arctype.id=#@__mynews.typeid
  21. ORDER BY aid DESC";
  22. $dlist = new DataListCP();
  23. $dlist->SetTemplet(DEDEADMIN . "/templets/mynews_main.htm");
  24. $dlist->SetSource($sql);
  25. $dlist->display();