本文整理汇总了PHP中CTicket::GetAdminGroups方法的典型用法代码示例。如果您正苦于以下问题:PHP CTicket::GetAdminGroups方法的具体用法?PHP CTicket::GetAdminGroups怎么用?PHP CTicket::GetAdminGroups使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTicket
的用法示例。
在下文中一共展示了CTicket::GetAdminGroups方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetSupportTeamList
function GetSupportTeamList()
{
$err_mess = CTicket::err_mess() . "<br>Function: GetSupportTeamList<br>Line: ";
global $DB;
$arrGid = CTicket::GetSupportTeamGroups();
$arrAid = CTicket::GetAdminGroups();
if (count($arrGid) > 0) {
$gid = implode(",", $arrGid);
} else {
$gid = 0;
}
if (count($arrAid) > 0) {
$aid = implode(",", $arrAid);
} else {
$aid = 0;
}
$strSql = "\n\t\t\tSELECT DISTINCT\n\t\t\t\tU.ID as REFERENCE_ID,\n\t\t\t\tconcat('[',U.ID,'] ',' (',U.LOGIN,') ',ifnull(U.NAME,''),' ',ifnull(U.LAST_NAME,'')) as REFERENCE,\n\t\t\t\tU.ACTIVE\n\t\t\tFROM\n\t\t\t\tb_user U,\n\t\t\t\tb_user_group G\n\t\t\tWHERE\n\t\t\t\tU.ID = G.USER_ID\n\t\t\tand G.GROUP_ID in ({$gid}, {$aid})\n\t\t\tORDER BY\n\t\t\t\tU.ID\n\t\t\t";
$res = $DB->Query($strSql, false, $err_mess . __LINE__);
return $res;
}
示例2: GetSupportTeamList
public static function GetSupportTeamList()
{
$err_mess = (CTicket::err_mess())."<br>Function: GetSupportTeamList<br>Line: ";
global $DB;
$arrGid = CTicket::GetSupportTeamGroups();
$arrAid = CTicket::GetAdminGroups();
if (count($arrGid)>0)
{
$gid = implode(",",$arrGid);
}
else
{
$gid = 0;
}
if (count($arrAid)>0)
{
$aid = implode(",",$arrAid);
}
else
{
$aid = 0;
}
$strSql = "
SELECT DISTINCT
U.ID as REFERENCE_ID,
concat('[',U.ID,'] ',' (',U.LOGIN,') ',ifnull(U.NAME,''),' ',ifnull(U.LAST_NAME,'')) as REFERENCE,
U.ACTIVE
FROM
b_user U,
b_user_group G
WHERE
U.ID = G.USER_ID
and G.GROUP_ID in ($gid, $aid)
ORDER BY
U.ID
";
$res = $DB->Query($strSql, false, $err_mess.__LINE__);
return $res;
}