本文整理汇总了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'];