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


PHP CCalendar::GetAttendeesMessage方法代码示例

本文整理汇总了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 
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.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'];
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:action.php


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