本文整理匯總了PHP中CCalendar::GetAttendeesMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCalendar::GetAttendeesMessage方法的具體用法?PHP CCalendar::GetAttendeesMessage怎麽用?PHP CCalendar::GetAttendeesMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCalendar
的用法示例。
在下文中一共展示了CCalendar::GetAttendeesMessage方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetMessage
<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
示例2: array
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'];