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


PHP CCalendar::GetSocNetDestination方法代码示例

本文整理汇总了PHP中CCalendar::GetSocNetDestination方法的典型用法代码示例。如果您正苦于以下问题:PHP CCalendar::GetSocNetDestination方法的具体用法?PHP CCalendar::GetSocNetDestination怎么用?PHP CCalendar::GetSocNetDestination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCalendar的用法示例。


在下文中一共展示了CCalendar::GetSocNetDestination方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

            }
            $att['AVATAR_SRC'] = CCalendar::GetUserAvatarSrc($att);
            $att['URL'] = CCalendar::GetUserUrl($att["USER_ID"], $arParams["PATH_TO_USER"]);
            $attendees[strtolower($att['STATUS'])]['users'][] = $att;
        }
    }
}
if ($event['IS_MEETING'] && empty($event['ATTENDEES_CODES'])) {
    $event['ATTENDEES_CODES'] = CCalendarEvent::CheckEndUpdateAttendeesCodes($event);
}
$arParams['event'] = $event;
$arParams['UF'] = $UF;
$arTabs = array(array('name' => GetMessage('EC_EDEV_EVENT'), 'title' => GetMessage('EC_EDEV_EVENT_TITLE'), 'id' => $id . "ed-tab-0", 'active' => true), array('name' => GetMessage('EC_T_DESC'), 'title' => GetMessage('EC_T_DESC_TITLE'), 'id' => $id . "ed-tab-1"), array('name' => GetMessage('EC_EDEV_GUESTS'), 'title' => GetMessage('EC_EDEV_GUESTS_TITLE'), 'id' => $id . "ed-tab-2", "show" => !!$arParams['bSocNet']), array('name' => GetMessage('EC_EDEV_ADD_TAB'), 'title' => GetMessage('EC_EDEV_ADD_TAB_TITLE'), 'id' => $id . "ed-tab-3"));
if ($arParams['bSocNet']) {
    CSocNetTools::InitGlobalExtranetArrays();
    $DESTINATION = CCalendar::GetSocNetDestination(false, $arParams['event']['ATTENDEES_CODES']);
}
$addWidthStyle = IsAmPmMode() ? ' ampm-width' : '';
?>
<form enctype="multipart/form-data" method="POST" name="event_edit_form" id="<?php 
echo $id;
?>
_form">
<input type="hidden" value="Y" name="skip_unescape"/>
<input id="event-id<?php 
echo $id;
?>
" type="hidden" value="0" name="id"/>
<input id="event-month<?php 
echo $id;
?>
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:template.php

示例2: __ShowAttendeesDestinationHtml

    public static function __ShowAttendeesDestinationHtml($Params = array())
    {
        CSocNetTools::InitGlobalExtranetArrays();
        $id = $Params['id'];
        $DESTINATION = CCalendar::GetSocNetDestination(false, $Params['event']['ATTENDEES_CODES']);
        ?>
		<div id="event-grid-att<?php 
        echo $id;
        ?>
" class="event-grid-dest-block">
			<div class="event-grid-dest-wrap-outer">
				<div class="event-grid-dest-label"><?php 
        echo GetMessage("EC_EDEV_GUESTS");
        ?>
:</div>
				<div class="event-grid-dest-wrap" id="event-grid-dest-cont">
					<span id="event-grid-dest-item"></span>
					<span class="feed-add-destination-input-box" id="event-grid-dest-input-box">
						<input type="text" value="" class="feed-add-destination-inp" id="event-grid-dest-input">
					</span>
					<a href="#" class="feed-add-destination-link" id="event-grid-dest-add-link"></a>
					<script>
						<?php 
        if (is_array($GLOBALS["arExtranetGroupID"])) {
            ?>
							if (typeof window['arExtranetGroupID'] == 'undefined')
							{
								window['arExtranetGroupID'] = <?php 
            echo CUtil::PhpToJSObject($GLOBALS["arExtranetGroupID"]);
            ?>
;
							}
							<?php 
        }
        ?>
						BX.message({
							'BX_FPD_LINK_1':'<?php 
        echo GetMessageJS("EC_DESTINATION_1");
        ?>
',
							'BX_FPD_LINK_2':'<?php 
        echo GetMessageJS("EC_DESTINATION_2");
        ?>
'
						});
						window.editEventDestinationFormName = top.editEventDestinationFormName = 'edit_event_<?php 
        echo randString(6);
        ?>
';
						//
						BX.SocNetLogDestination.init({
							name : editEventDestinationFormName,
							searchInput : BX('event-grid-dest-input'),
							extranetUser :  false,
							userSearchArea: 'I',
							bindMainPopup : { 'node' : BX('event-grid-dest-cont'), 'offsetTop' : '5px', 'offsetLeft': '15px'},
							bindSearchPopup : { 'node' : BX('event-grid-dest-cont'), 'offsetTop' : '5px', 'offsetLeft': '15px'},
							callback : {
								select : BxEditEventGridSelectCallback,
								unSelect : BxEditEventGridUnSelectCallback,
								openDialog : BxEditEventGridOpenDialogCallback,
								closeDialog : BxEditEventGridCloseDialogCallback,
								openSearch : BxEditEventGridOpenDialogCallback,
								closeSearch : BxEditEventGridCloseSearchCallback
							},
							items : {
								users : <?php 
        echo empty($DESTINATION['USERS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['USERS']);
        ?>
,
								groups : <?php 
        echo $DESTINATION["EXTRANET_USER"] == 'Y' || array_key_exists("DENY_TOALL", $DESTINATION) && $DESTINATION["DENY_TOALL"] ? '{}' : "{'UA' : {'id':'UA','name': '" . (!empty($DESTINATION['DEPARTMENT']) ? GetMessageJS("MPF_DESTINATION_3") : GetMessageJS("MPF_DESTINATION_4")) . "'}}";
        ?>
,
								sonetgroups : <?php 
        echo empty($DESTINATION['SONETGROUPS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['SONETGROUPS']);
        ?>
,
								department : <?php 
        echo empty($DESTINATION['DEPARTMENT']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['DEPARTMENT']);
        ?>
,
								departmentRelation : <?php 
        echo empty($DESTINATION['DEPARTMENT_RELATION']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['DEPARTMENT_RELATION']);
        ?>
							},
							itemsLast : {
								users : <?php 
        echo empty($DESTINATION['LAST']['USERS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['USERS']);
        ?>
,
								sonetgroups : <?php 
        echo empty($DESTINATION['LAST']['SONETGROUPS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['SONETGROUPS']);
        ?>
,
								department : <?php 
        echo empty($DESTINATION['LAST']['DEPARTMENT']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['DEPARTMENT']);
        ?>
,
								groups : <?php 
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:calendar_sceleton.php

示例3: __ShowAttendeesDestinationHtml

    public static function __ShowAttendeesDestinationHtml($Params = array())
    {
        $id = $Params['id'];
        $DESTINATION = CCalendar::GetSocNetDestination(false, $Params['event']['ATTENDEES_CODES']);
        ?>
		<div id="<?php 
        echo $id;
        ?>
_plan_dest_cont" class="event-grid-dest-block">
			<div class="event-grid-dest-wrap-outer">
				<div class="event-grid-dest-label"><?php 
        echo GetMessage("EC_EDEV_GUESTS");
        ?>
:</div>
				<div class="event-grid-dest-wrap" id="event-planner-dest-cont">
					<span id="event-planner-dest-item"></span>
					<span class="feed-add-destination-input-box" id="event-planner-dest-input-box">
						<input type="text" value="" class="feed-add-destination-inp" id="event-planner-dest-input">
					</span>
					<a href="#" class="feed-add-destination-link" id="event-planner-dest-add-link"></a>
					<script>
						BX.message({
							'BX_FPD_LINK_1':'<?php 
        echo GetMessageJS("EC_DESTINATION_1");
        ?>
',
							'BX_FPD_LINK_2':'<?php 
        echo GetMessageJS("EC_DESTINATION_2");
        ?>
'
						});
						window.plannerDestFormName = top.plannerDestFormName = 'bx_planner_<?php 
        echo randString(6);
        ?>
';
						//
						BX.SocNetLogDestination.init({
							name : plannerDestFormName,
							searchInput : BX('event-planner-dest-input'),
							extranetUser :  false,
							bindMainPopup : { 'node' : BX('event-planner-dest-cont'), 'offsetTop' : '5px', 'offsetLeft': '15px'},
							bindSearchPopup : { 'node' : BX('event-planner-dest-cont'), 'offsetTop' : '5px', 'offsetLeft': '15px'},
							callback : {
								select : BxPlannerSelectCallback,
								unSelect : BxPlannerUnSelectCallback,
								openDialog : BxPlannerOpenDialogCallback,
								closeDialog : BxPlannerCloseDialogCallback,
								openSearch : BxPlannerOpenDialogCallback,
								closeSearch : BxPlannerCloseSearchCallback
							},
							items : {
								users : <?php 
        echo empty($DESTINATION['USERS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['USERS']);
        ?>
,
								groups : <?php 
        echo $DESTINATION["EXTRANET_USER"] == 'Y' || array_key_exists("DENY_TOALL", $DESTINATION) && $DESTINATION["DENY_TOALL"] ? '{}' : "{'UA' : {'id':'UA','name': '" . (!empty($DESTINATION['DEPARTMENT']) ? GetMessageJS("MPF_DESTINATION_3") : GetMessageJS("MPF_DESTINATION_4")) . "'}}";
        ?>
,
								sonetgroups : <?php 
        echo empty($DESTINATION['SONETGROUPS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['SONETGROUPS']);
        ?>
,
								department : <?php 
        echo empty($DESTINATION['DEPARTMENT']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['DEPARTMENT']);
        ?>
,
								departmentRelation : <?php 
        echo empty($DESTINATION['DEPARTMENT_RELATION']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['DEPARTMENT_RELATION']);
        ?>
							},
							itemsLast : {
								users : <?php 
        echo empty($DESTINATION['LAST']['USERS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['USERS']);
        ?>
,
								sonetgroups : <?php 
        echo empty($DESTINATION['LAST']['SONETGROUPS']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['SONETGROUPS']);
        ?>
,
								department : <?php 
        echo empty($DESTINATION['LAST']['DEPARTMENT']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['LAST']['DEPARTMENT']);
        ?>
,
								groups : <?php 
        echo $DESTINATION["EXTRANET_USER"] == 'Y' ? '{}' : "{'UA':true}";
        ?>
							},
							itemsSelected : <?php 
        echo empty($DESTINATION['SELECTED']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['SELECTED']);
        ?>
						});
					</script>
				</div>
			</div>
		</div>
	<?php 
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:98,代码来源:calendar_planer.php


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