Example #1
0
				<span class="calendar-event-text"><?php 
    echo GetMessage('ECLFV_INVITE_ATTENDEES_ACC', array('#ATTENDEES_NUM#' => CCalendar::GetAttendeesMessage(count($arResult['EVENT']['ACCEPTED_ATTENDEES']))));
    ?>
</span><?php 
    if ($bDec) {
        echo ', ';
    }
    ?>
				<?php 
}
?>
				<?php 
if ($bDec) {
    ?>
					<span  class="calendar-event-text"><?php 
    echo GetMessage('ECLFV_INVITE_ATTENDEES_DEC', array('#ATTENDEES_NUM#' => CCalendar::GetAttendeesMessage(count($arResult['EVENT']['DECLINED_ATTENDEES']))));
    ?>
</span>
				<?php 
}
?>
			</span>
		</div>

		<div class="calendar-invite-cont" id="feed-event-invite-controls-<?php 
echo $id;
?>
">
			<div class="calendar-event-buttons-block">
				<div class="calendar-event-but-part">
					<a href="#" id="feed-event-accept-<?php 
Example #2
0
 if ($Events && is_array($Events[0]) && $Events[0]['IS_MEETING']) {
     $ajaxParams = $_REQUEST['ajax_params'];
     if ($ajaxParams["MOBILE"] == "Y") {
         $result = array('ACCEPTED_ATTENDEES_COUNT' => 0, 'DECLINED_ATTENDEES_COUNT' => 0);
         foreach ($Events[0]['~ATTENDEES'] as $i => $att) {
             if ($att['STATUS'] == "Y") {
                 $result['ACCEPTED_ATTENDEES_COUNT']++;
             } elseif ($att['STATUS'] == "N") {
                 $result['DECLINED_ATTENDEES_COUNT']++;
             }
         }
         if ($result['ACCEPTED_ATTENDEES_COUNT'] > 0) {
             $result['ACCEPTED_ATTENDEES_MESSAGE'] = CCalendar::GetAttendeesMessage($result['ACCEPTED_ATTENDEES_COUNT']);
         }
         if ($result['DECLINED_ATTENDEES_COUNT'] > 0) {
             $result['DECLINED_ATTENDEES_MESSAGE'] = CCalendar::GetAttendeesMessage($result['DECLINED_ATTENDEES_COUNT']);
         }
     } else {
         $result = array('ACCEPTED_ATTENDEES' => array(), 'DECLINED_ATTENDEES' => array(), 'ACCEPTED_PARAMS' => array("prefix" => "y"), 'DECLIINED_PARAMS' => array("prefix" => "n"));
         foreach ($Events[0]['~ATTENDEES'] as $i => $att) {
             if ($att['STATUS'] != "Q") {
                 $att['AVATAR_SRC'] = CCalendar::GetUserAvatar($att);
                 $att['URL'] = CCalendar::GetUserUrl($att["USER_ID"], $arParams["PATH_TO_USER"]);
             }
             if ($att['STATUS'] == "Y") {
                 $result['ACCEPTED_ATTENDEES'][] = $att;
             } elseif ($att['STATUS'] == "N") {
                 $result['DECLINED_ATTENDEES'][] = $att;
             }
         }
         $moreCountAcc = count($result['ACCEPTED_ATTENDEES']) - $ajaxParams['ATTENDEES_SHOWN_COUNT'];