当前位置: 首页>>代码示例>>PHP>>正文


PHP CTicket::GetSupportTeamRoleID方法代码示例

本文整理汇总了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">
	<!--
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:ticket_sla_edit.php

示例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);
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:24,代码来源:support.php

示例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>
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:29,代码来源:ticket_sla_edit.php


注:本文中的CTicket::GetSupportTeamRoleID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。