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

38 lines
1.0KB

  1. <?php
  2. /**
  3. * 文档关键词选择
  4. *
  5. * @version $Id: article_keywords_select.php$
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license/v6
  10. * @link https://www.dedebiz.com
  11. */
  12. require_once(dirname(__FILE__)."/config.php");
  13. require_once(DEDEINC."/datalistcp.class.php");
  14. setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
  15. $f = RemoveXSS($f);
  16. if(empty($keywords)) $keywords = "";
  17. $sql = "SELECT * FROM #@__keywords ORDER BY rank DESC";
  18. $dlist = new DataListCP();
  19. $dlist->SetTemplate(DEDEADMIN."/templets/article_keywords_select.htm");
  20. $dlist->pageSize = 300;
  21. $dlist->SetParameter("f",$f);
  22. $dlist->SetSource($sql);
  23. $dlist->Display();
  24. function GetSta($sta)
  25. {
  26. if($sta==1) return "正常";
  27. else return "<font color='red'>禁用</font>";
  28. }
  29. function GetMan($sta)
  30. {
  31. if($sta==1) return "<u>禁用</u>";
  32. else return "<u>启用</u>";
  33. }