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


PHP CCalendar::GetTimezoneList方法代码示例

本文整理汇总了PHP中CCalendar::GetTimezoneList方法的典型用法代码示例。如果您正苦于以下问题:PHP CCalendar::GetTimezoneList方法的具体用法?PHP CCalendar::GetTimezoneList怎么用?PHP CCalendar::GetTimezoneList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCalendar的用法示例。


在下文中一共展示了CCalendar::GetTimezoneList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$arResult['TIMEZONE_LIST'] = CCalendar::GetTimezoneList();
$this->IncludeComponentTemplate();
开发者ID:webgksupport,项目名称:alpina,代码行数:7,代码来源:component.php

示例2: DialogSettings

    public static function DialogSettings($Params)
    {
        $id = $Params['id'];
        $arTabs = array(array('name' => GetMessage('EC_SET_TAB_PERSONAL'), 'title' => GetMessage('EC_SET_TAB_PERSONAL_TITLE'), 'id' => $id . "set-tab-0"), array('name' => GetMessage('EC_SET_TAB_BASE'), 'title' => GetMessage('EC_SET_TAB_BASE_TITLE'), 'id' => $id . "set-tab-1", 'show' => CCalendarType::CanDo('calendar_type_access', $Params['type'])), array('name' => GetMessage('EC_SECT_ACCESS_TAB'), 'title' => GetMessage('EC_SECT_ACCESS_TAB'), 'id' => $id . "set-tab-2", 'show' => CCalendarType::CanDo('calendar_type_access', $Params['type'])));
        $arDays = self::GetWeekDays();
        $arWorTimeList = array();
        for ($i = 0; $i < 24; $i++) {
            $arWorTimeList[strval($i)] = CCalendar::FormatTime($i, 0);
            $arWorTimeList[strval($i) . '.30'] = CCalendar::FormatTime($i, 30);
        }
        $timezoneList = CCalendar::GetTimezoneList();
        $bInPersonal = $Params['inPersonalCalendar'];
        ?>
<div id="bxec_uset_<?php 
        echo $id;
        ?>
" class="bxec-popup">
	<div style="width: 500px; height: 1px;"></div>
	<div class="bxec-d-tabs" id="<?php 
        echo $id;
        ?>
_set_tabs">
		<?php 
        foreach ($arTabs as $tab) {
            ?>
			<div class="bxec-d-tab <?php 
            if ($tab['active']) {
                echo 'bxec-d-tab-act';
            }
            ?>
" title="<?php 
            echo isset($tab['title']) ? $tab['title'] : $tab['name'];
            ?>
" id="<?php 
            echo $tab['id'];
            ?>
" <?php 
            if ($tab['show'] === false) {
                echo 'style="display:none;"';
            }
            ?>
>
				<b></b><div><span><?php 
            echo $tab['name'];
            ?>
</span></div><i></i>
			</div>
		<?php 
        }
        ?>
	</div>
	<div class="bxec-d-cont"  id="<?php 
        echo $id;
        ?>
_set_tabcont">
<?php 
        /* ####### TAB 0 : PERSONAL ####### */
        ?>
<div id="<?php 
        echo $id;
        ?>
set-tab-0-cont" class="bxec-d-cont-div" style="display: block;">

	<!-- default meeting calendar -->
	<?php 
        if ($bInPersonal) {
            ?>
	<div class="bxec-popup-row">
		<span class="bxec-field-label-3"><label for="<?php 
            echo $id;
            ?>
_set_tz_sel"><?php 
            echo GetMessage('EC_TIMEZONE');
            ?>
:</label></span>
		<span  class="bxec-field-val-2">
			<select id="<?php 
            echo $id;
            ?>
_set_tz_sel" style="max-width: 235px;">
				<option value=""> - </option>
				<?php 
            foreach ($timezoneList as $tz) {
                ?>
					<option value="<?php 
                echo $tz['timezone_id'];
                ?>
"><?php 
                echo htmlspecialcharsEx($tz['title']);
                ?>
</option>
				<?php 
            }
            ?>
			</select>
		</span>
	</div>
	<div class="bxec-popup-row">
		<span class="bxec-field-label-3"><label for="<?php 
            echo $id;
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:calendar_sceleton.php

示例3: BuildDialog

    public static function BuildDialog($Params)
    {
        global $APPLICATION;
        $id = $Params['id'];
        $timezoneList = CCalendar::GetTimezoneList();
        $addWidthStyle = IsAmPmMode() ? ' ampm-width' : '';
        ?>
<div id="bx-planner-popup<?php 
        echo $id;
        ?>
" class="bxc-planner bxec-popup">
	<div id="<?php 
        echo $id;
        ?>
_plan_cont" class="bxec-plan-cont bxecpl-empty">
		<div id="<?php 
        echo $id;
        ?>
_plan_top_cont"  class="bxec-plan-top-cont">
			<div style="width: 700px; height: 1px;"></div>

			<div class="bxec-plan-from-to">
				<span style="display: inline-block;">
					<span class="bxec-date">
						<label class="bxec-date-label" for="<?php 
        echo $id;
        ?>
planner-from"><?php 
        echo GetMessage('EC_EDEV_FROM_DATE_TIME');
        ?>
</label>
						<input id="<?php 
        echo $id;
        ?>
planner-from" type="text" class="calendar-inp calendar-inp-cal"/>
					</span>
					<span class="bxec-time<?php 
        echo $addWidthStyle;
        ?>
"><?php 
        CClock::Show(array('inputId' => $id . 'planner_from_time', 'inputTitle' => GetMessage('EC_EDEV_TIME_FROM'), 'showIcon' => false));
        ?>
</span>
					<span class="bxec-mdash">&mdash;</span>
					<span class="bxec-date">
						<label class="bxec-date-label" for="<?php 
        echo $id;
        ?>
planner-to"><?php 
        echo GetMessage('EC_EDEV_TO_DATE_TIME');
        ?>
</label>
						<input id="<?php 
        echo $id;
        ?>
planner-to" type="text" class="calendar-inp calendar-inp-cal"/>
					</span>
					<span class="bxec-time<?php 
        echo $addWidthStyle;
        ?>
"><?php 
        CClock::Show(array('inputId' => $id . 'planner_to_time', 'inputTitle' => GetMessage('EC_EDEV_TIME_TO'), 'showIcon' => false));
        ?>
</span>

					<div style="display:none;"><?php 
        $APPLICATION->IncludeComponent("bitrix:main.calendar", "", array("FORM_NAME" => "", "INPUT_NAME" => "", "INPUT_VALUE" => "", "SHOW_TIME" => "N", "HIDE_TIMEBAR" => "Y", "SHOW_INPUT" => "N"), false, array("HIDE_ICONS" => "Y"));
        ?>
</div>


					<div id="planner-tz-cont-outer<?php 
        echo $id;
        ?>
" class="bxec-timezone-outer-wrap bxec-tz-wrap">
						<span class="bxec-timezone-link bxec-tz-wrap" id="planner-tz-switch<?php 
        echo $id;
        ?>
">
							<span class="bxec-tz-open"><?php 
        echo GetMessage('EC_EVENT_TZ_BUT_OPEN');
        ?>
</span>
							<span class="bxec-tz-close"><?php 
        echo GetMessage('EC_EVENT_TZ_BUT_CLOSE');
        ?>
</span>
						</span>
						<div id="planner-tz-cont<?php 
        echo $id;
        ?>
" class="bxec-timezone-hidden-wrap bxec-tz-wrap">
							<div id="planner-tz-inner-cont<?php 
        echo $id;
        ?>
" class="bxec-timezone-hidden">
								<div class="bxec-timezone-hidden-item">
									<select id="planner-tz-from<?php 
        echo $id;
        ?>
//.........这里部分代码省略.........
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:calendar_planer.php


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