本文整理汇总了PHP中CTicket::GetSupportTeamRoleID方法的典型用法代码示例。如果您正苦于以下问题:PHP CTicket::GetSupportTeamRoleID方法的具体用法?PHP CTicket::GetSupportTeamRoleID怎么用?PHP CTicket::GetSupportTeamRoleID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTicket
的用法示例。
在下文中一共展示了CTicket::GetSupportTeamRoleID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
</tr>
<?php
$tabControl->BeginNextTab();
?>
<tr>
<td align="right" valign="top"><?php
echo GetMessage("SUP_USER_GROUPS");
?>
:</td>
<td><?php
$rs = CGroup::GetList($v1 = "sort", $v2 = "asc", array());
while ($ar = $rs->Fetch()) {
$arRoles = $APPLICATION->GetUserRoles("support", array(intval($ar["ID"])), "Y", "N");
if (in_array(CTicket::GetSupportClientRoleID(), $arRoles) || in_array(CTicket::GetSupportTeamRoleID(), $arRoles) || in_array(CTicket::GetDemoRoleID(), $arRoles) || in_array(CTicket::GetAdminRoleID(), $arRoles)) {
echo InputType("checkbox", "arGROUPS[]", $ar["ID"], $arGROUPS) . " " . htmlspecialchars($ar["NAME"]) . " [<a title=\"" . GetMessage("MAIN_ADMIN_MENU_EDIT") . "\" href=\"/bitrix/admin/group_edit.php?ID=" . intval($ar["ID"]) . "&lang=" . LANGUAGE_ID . "\">" . intval($ar["ID"]) . "</a>]<br>";
}
}
?>
</td>
</tr>
<?php
$tabControl->BeginNextTab();
?>
<script type="text/javascript">
<!--
示例2: GetSupportTeamAndAdminUsers
function GetSupportTeamAndAdminUsers()
{
$arUser = array();
$stg = CTicket::GetGroupsByRole(CTicket::GetSupportTeamRoleID());
$sag = CTicket::GetGroupsByRole(CTicket::GetAdminRoleID());
$sg = array();
if (is_array($stg)) {
$sg = array_merge($sg, $stg);
}
if (is_array($sag)) {
$sg = array_merge($sg, $sag);
}
if (count($sg) > 0) {
$cU = CUser::GetList($v1 = "id", $v2 = "asc", array("ACTIVE" => "Y", "GROUPS_ID" => $sg));
while ($arU = $cU->Fetch()) {
$arUser[] = intval($arU["ID"]);
}
}
//if(count($arUser) <= 0)
//{
$arUser[] = 1;
//}
return array_unique($arUser);
}
示例3: GetMessage
<?$tabControl->BeginNextTab();?>
<tr>
<td align="right" valign="top" width="40%"><?php
echo GetMessage("SUP_USER_GROUPS");
?>
:</td>
<td width="60%">
<div class="adm-list"><?
$rs = CGroup::GetList($v1="sort", $v2="asc", array());
$idR = 0;
while($ar = $rs->Fetch()):
$arRoles = $APPLICATION->GetUserRoles("support", array(intval($ar["ID"])), "Y", "N");
if (in_array(CTicket::GetSupportClientRoleID(),$arRoles) ||
in_array(CTicket::GetSupportTeamRoleID(),$arRoles) ||
in_array(CTicket::GetDemoRoleID(),$arRoles) ||
in_array(CTicket::GetAdminRoleID(),$arRoles))
{
$idR++;
echo "<div class=\"adm-list-item\">";
echo "<div class=\"adm-list-control\">".InputType("checkbox", "arGROUPS[]", $ar["ID"], $arGROUPS, false, "", "", $idR)."</div>".
"<div class=\"adm-list-label\"><label for=\"$idR\">".htmlspecialcharsbx($ar["NAME"])."</label>".
" [<a title=\"".GetMessage("MAIN_ADMIN_MENU_EDIT")."\" href=\"/bitrix/admin/group_edit.php?ID=".intval($ar["ID"])."&lang=".LANGUAGE_ID."\">".
intval($ar["ID"]).
"</a>]</div></div>";
}
endwhile;
?></div></td>
</tr>