} $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; ?>
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 echo $DESTINATION["EXTRANET_USER"] == 'Y' ? '{}' : "{'UA':true}"; ?> }, itemsSelected : <?php echo empty($DESTINATION['SELECTED']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['SELECTED']); ?> , destSort : <?php echo empty($DESTINATION['DEST_SORT']) ? '{}' : CUtil::PhpToJSObject($DESTINATION['DEST_SORT']); ?> }); </script> </div> </div> <!-- Meeting host --> <div class="event-grid-host-cont"> <span class="event-grid-host-cont-label"><?php echo GetMessage('EC_EDEV_HOST'); ?> :</span> <a title="<?php echo htmlspecialcharsbx($Params['host']['DISPLAY_NAME']); ?> " href="<?php echo $Params['host']['URL']; ?> " target="_blank" class="bxcal-user"><span class="bxcal-user-avatar-outer"><span class="bxcal-user-avatar"><img src="<?php echo $Params['host']['AVATAR_SRC']; ?> " width="<?php echo $Params['AVATAR_SIZE']; ?> " height="<?php echo $Params['AVATAR_SIZE']; ?> " /></span></span><span class="bxcal-user-name"><?php echo htmlspecialcharsbx($Params['host']['DISPLAY_NAME']); ?> </span></a> </div> <!-- Attendees cont --> <div class="event-grid-attendees-cont"> <div id="event-edit-att-y" class="event-grid-attendees-cont-y"></div> <div id="event-edit-att-n" class="event-grid-attendees-cont-n"></div> <div id="event-edit-att-q" class="event-grid-attendees-cont-q"></div> </div> </div> <div id="event-grid-meeting-params<?php echo $id; ?> " class="event-grid-params"> <div class="bxec-add-meet-text"><a id="<?php echo $id; ?> _add_meet_text" href="javascript:void(0);"><?php echo GetMessage('EC_ADD_METTING_TEXT'); ?> </a></div> <div class="bxec-meet-text" id="<?php echo $id; ?> _meet_text_cont"> <div class="bxec-mt-d"><?php echo GetMessage('EC_METTING_TEXT'); ?> (<a id="<?php echo $id; ?> _hide_meet_text" href="javascript:void(0);" title="<?php echo GetMessage('EC_HIDE_METTING_TEXT_TITLE'); ?> "><?php echo GetMessage('EC_HIDE'); ?> </a>): </div><br /> <textarea name="meeting_text" class="bxec-mt-t" cols="63" id="<?php echo $id; ?> _meeting_text" rows="3"></textarea> </div> <div class="bxec-popup-row bxec-popup-row-checkbox"> <input type="checkbox" id="<?php echo $id; ?> _ed_open_meeting" value="Y" name="open_meeting"/> <label style="display: inline-block;" for="<?php echo $id; ?> _ed_open_meeting"><?php echo GetMessage('EC_OPEN_MEETING'); ?> </label> </div> <div class="bxec-popup-row bxec-popup-row-checkbox"> <input type="checkbox" id="<?php echo $id; ?> _ed_notify_status" value="Y" name="meeting_notify"/> <label for="<?php echo $id; ?> _ed_notify_status"><?php echo GetMessage('EC_NOTIFY_STATUS'); ?> </label> </div> <div class="bxec-popup-row bxec-popup-row-checkbox" id="<?php echo $id; ?> _ed_reivite_cont"> <input type="checkbox" id="<?php echo $id; ?> _ed_reivite" value="Y" name="meeting_reinvite"/> <label for="<?php echo $id; ?> _ed_reivite"><?php echo GetMessage('EC_REINVITE'); ?> </label> </div> </div> <?php }
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 }