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

35 lines
1.0KB

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