本文整理汇总了PHP中CTicket::GetSupportClientRoleID方法的典型用法代码示例。如果您正苦于以下问题:PHP CTicket::GetSupportClientRoleID方法的具体用法?PHP CTicket::GetSupportClientRoleID怎么用?PHP CTicket::GetSupportClientRoleID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTicket
的用法示例。
在下文中一共展示了CTicket::GetSupportClientRoleID方法的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: IsSupportClient
function IsSupportClient($userID = false)
{
return CTicket::HaveRole(CTicket::GetSupportClientRoleID(), $userID);
}
示例3: GetMessage
</tr>
<?$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>