本文整理汇总了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();
示例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;
//.........这里部分代码省略.........
示例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">—</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;
?>
//.........这里部分代码省略.........