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

28 line
984B

  1. <?php
  2. /**
  3. * 管理一个模板
  4. *
  5. * @version $id:templets_one.php 23:07 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. CheckPurview('temp_One');
  13. require_once(DEDEINC."/datalistcp.class.php");
  14. setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");
  15. $addquery = '';
  16. $keyword = (!isset($keyword) ? '' : $keyword);
  17. $likeid = (!isset($likeid) ? '' : $likeid);
  18. $addq = $likeid != '' ? " AND likeid LIKE '$likeid' " : '';
  19. $sql = "SELECT aid,title,ismake,uptime,filename,likeid FROM `#@__sgpage` WHERE title LIKE '%$keyword%' $addq ORDER BY aid DESC";
  20. $dlist = new DataListCP();
  21. $dlist->SetTemplet(DEDEADMIN."/templets/templets_one.htm");
  22. $dlist->SetSource($sql);
  23. $dlist->display();
  24. function GetIsMake($im)
  25. {
  26. return $im == 1 ? '需编译' : '不编译';
  27. }
  28. ?>