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

41 lines
1.3KB

  1. <?php
  2. /**
  3. * 用户管理
  4. *
  5. * @version $Id: sys_admin_user.php 1 16:22 2010年7月20日Z tianya $
  6. * @package DedeCMS.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. CheckPurview('sys_User');
  13. require_once(DEDEINC."/datalistcp.class.php");
  14. setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
  15. if(empty($rank)) $rank = '';
  16. else $rank = " WHERE CONCAT(#@__admin.usertype)='$rank' ";
  17. $dsql->SetQuery("SELECT rank,typename FROM `#@__admintype` ");
  18. $dsql->Execute();
  19. while($row = $dsql->GetObject())
  20. {
  21. $adminRanks[$row->rank] = $row->typename;
  22. }
  23. $query = "SELECT #@__admin.*,#@__arctype.typename FROM #@__admin LEFT JOIN #@__arctype ON #@__admin.typeid = #@__arctype.id $rank ";
  24. $dlist = new DataListCP();
  25. $dlist->SetTemplet(DEDEADMIN."/templets/sys_admin_user.htm");
  26. $dlist->SetSource($query);
  27. $dlist->Display();
  28. function GetUserType($trank)
  29. {
  30. global $adminRanks;
  31. if(isset($adminRanks[$trank])) return $adminRanks[$trank];
  32. else return "错误类型";
  33. }
  34. function GetChannel($c)
  35. {
  36. if($c==""||$c==0) return "所有频道";
  37. else return $c;
  38. }