Пример #1
0
    } elseif ($_REQUEST['show_user'] == 'all') {
        $show_user = '******';
    } else {
        $show_user = '******';
    }
}
$arParams["show_user"] = $show_user;
$outlook_link = 'javascript:' . CIntranetUtils::GetStsSyncURL(array('LINK_URL' => $APPLICATION->GetCurPage()), 'contacts', $arParams["EXTRANET_TYPE"] == "employees" ? true : false);
global $USER;
?>
<div class="employee-search-block">
	<?php 
if (($USER->CanDoOperation('bitrix24_invite') && IsModuleInstalled('bitrix24') || !IsModuleInstalled("bitrix24") && $USER->CanDoOperation('edit_all_users')) && CModule::IncludeModule('intranet') && $arParams['TABLE_VIEW'] != 'group_table') {
    ?>
		<a class="webform-small-button webform-small-button-blue bx24-top-toolbar-add" href="javascript:void(0)" onclick="<?php 
    echo CIntranetInviteDialog::ShowInviteDialogLink();
    ?>
">
			<span class="webform-small-button-icon"></span>
			<span class="webform-small-button-text"><?php 
    echo GetMessage("INTR_COMP_IS_TPL_TOOLBAR_USER_INVITE");
    ?>
</span>
		</a>
	<?php 
}
?>
	<div class="bx24-top-bar-search-wrap employee-search-wrap">
		<?php 
$arFilterValues = $APPLICATION->IncludeComponent("bitrix:intranet.structure.selector", "advanced", $arParams, $component, array('HIDE_ICONS' => 'Y'));
?>
Пример #2
0
if ($arParams['bAdmin']) {
    $this->SetViewTarget("sidebar", 100);
    ?>

	<div class="department-profile-events">
		<div class="department-profile-events-title"><?php 
    echo GetMessage("INTR_IS_TPL_ACTIONS");
    ?>
</div>
		<div class="department-profile-events-cont">
			<?php 
    if ($USER->CanDoOperation('bitrix24_invite') && CModule::IncludeModule('bitrix24') && CModule::IncludeModule('intranet')) {
        $arInviteParams["UF_DEPARTMENT"] = $current_section;
        ?>
			<a class="department-profile-events-item department-profile-add-sub" href="javascript:void(0)" onclick="<?php 
        echo CIntranetInviteDialog::ShowInviteDialogLink($arInviteParams);
        ?>
"><i></i><?php 
        echo GetMessage("INTR_IS_TPL_ACTION_INVITE");
        ?>
</a>
			<?php 
    }
    if (isset($_GET['structure_UF_DEPARTMENT'])) {
        $arStructureParams["IBLOCK_SECTION_ID"] = $current_section;
    }
    //parent department
    $arStructureParams["ACTION"] = "ADD";
    ?>
			<a class="department-profile-events-item department-profile-subsection" href="" onclick="BX.IntranetStructure.ShowForm(<?php 
    echo CUtil::PhpToJSObject($arStructureParams);