本文整理汇总了PHP中CalendarDate函数的典型用法代码示例。如果您正苦于以下问题:PHP CalendarDate函数的具体用法?PHP CalendarDate怎么用?PHP CalendarDate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CalendarDate函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
echo GetMessage("STAT_SELECT_EVENT");
?>
" value="...">
</td>
<td><input type="text" size="20" name="EVENT3_<?php
echo $i;
?>
" value="<?php
echo htmlspecialcharsbx($event3);
?>
" OnFocus="addNewRow(<?php
echo $i;
?>
)"></td>
<td nowrap><?php
echo CalendarDate("DATE_ENTER_" . $i, htmlspecialcharsbx($date_enter), "form1", "18");
?>
</td>
<td><input type="text" style="width:100%" name="PARAM_<?php
echo $i;
?>
" value="<?php
echo htmlspecialcharsbx($param);
?>
" OnFocus="addNewRow(<?php
echo $i;
?>
)"></td>
<td><input type="text" size="5" name="MONEY_<?php
echo $i;
?>
示例2: Tab1
function Tab1($adminForm)
{
$adminForm->BeginCustomField("NAME", GetMessage("SUP_NAME"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><input type="text" maxlength="255" name="NAME" size="50" value="<?php
echo CSupportPage::$holidaysFields->getFieldForOutput("NAME", CSupportTableFields::ATTRIBUTE);
?>
"></td>
</tr>
<?php
$adminForm->EndCustomField("NAME");
$adminForm->BeginCustomField("OPEN_TIME", GetMessage("SUP_OPEN_TIME"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%">
<select id="OPEN_TIME" size="1" name="OPEN_TIME">
<?php
$arr = CSupportHolidays::GetOpenTimeArray();
foreach ($arr as $v => $n) {
$ss = substr($v, 0, 3);
if ($ss == "GB_") {
echo '<optgroup label="' . GetMessage($n) . '">';
} elseif ($ss == "GE_") {
echo '</optgroup>';
} else {
echo '<option ' . ($v == CSupportPage::$holidaysFields->OPEN_TIME ? 'selected ' : '') . 'value="' . $v . '">' . GetMessage($n) . '</option>';
}
}
?>
</select>
</td>
</tr>
<?php
$adminForm->EndCustomField("OPEN_TIME");
$adminForm->BeginCustomField("DATE_FROM", GetMessage("SUP_DATE_FROM"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><?php
echo CalendarDate("DATE_FROM", GetTime(CSupportPage::$holidaysFields->DATE_FROM, "FULL"), "supTabControl", "20");
?>
</td>
</tr>
<?php
$adminForm->EndCustomField("DATE_FROM");
$adminForm->BeginCustomField("DATE_TILL", GetMessage("SUP_DATE_TILL"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><?php
echo CalendarDate("DATE_TILL", GetTime(CSupportPage::$holidaysFields->DATE_TILL, "FULL"), "supTabControl", "20");
?>
</td>
</tr>
<?php
$adminForm->EndCustomField("DATE_TILL");
$adminForm->BeginCustomField("SLA_ID", GetMessage("SUP_SLA_ID"), false);
?>
<tr valign="top">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%">
<?php
$arrSLA_ID = CSupportPage::$holidaysSlaFields->getColumn("SLA_ID");
$arSort = array();
$ar = CTicketSLA::GetList($arSort, array(), $is_filtered);
$idR = 0;
while ($arR = $ar->Fetch()) {
$idR++;
echo InputType("checkbox", "SLA_ID[]", $arR["ID"], $arrSLA_ID, false, "", "", $idR) . '<label for="' . $idR . '"> ' . htmlspecialcharsbx($arR["NAME"]) . "</label><br>";
}
?>
</td>
</tr>
<?php
$adminForm->EndCustomField("SLA_ID");
$adminForm->BeginCustomField("DESCRIPTION", GetMessage("SUP_DESCRIPTION"), false);
?>
<tr class="heading">
<td colspan="2"><?php
echo $adminForm->GetCustomLabelHTML();
?>
//.........这里部分代码省略.........
示例3:
));
if($stat = $orderStats->fetch())
{
$bannerProfit = $stat['BANNER_SUM'];
}
}
?>
<tr>
<td width="30%" class="adm-detail-required-field"><?=Loc::getMessage('SEO_YANDEX_STATS_PERIOD')?>:</td>
<td width="70%">
<span style="white-space: nowrap; display:inline-block;"><select name="period_sel" onchange="setGraphInterval(this.value)">
<option value="interval"><?=Loc::getMessage('SEO_YANDEX_STATS_GRAPH_INTERVAL')?></option>
<option value="week_ago"><?=Loc::getMessage('SEO_YANDEX_STATS_GRAPH_WEEK')?></option>
<option value="month_ago"><?=Loc::getMessage('SEO_YANDEX_STATS_GRAPH_MONTH')?></option>
</select> <span id="seo_graph_interval"><?=CalendarDate("date_from", $dateStart->toString(), 'form1', "4")?> …<?=CalendarDate("date_to", $dateFinish->toString(), 'form1', "4")?></span></span> <input type="button" value="<?=Loc::getMessage('SEO_YANDEX_STATS_PERIOD_APPLY')?>" onclick="loadGraphData()" id="stats_loading_button" name="template_preview"><span id="stats_wait" class="loading-message-text" style="display: none; margin-top: 5px;"><?=Loc::getMessage('SEO_YANDEX_STATS_WAIT')?></span>
</td>
</tr>
<?
if($bSale):
?>
<tr>
<td><?=Loc::getMessage('SEO_YANDEX_STATS_SUM_ORDER_REPIOD')?>:</td>
<td><span id="banner_profit"><?=\CCurrencyLang::CurrencyFormat(doubleval($bannerProfit), \Bitrix\Currency\CurrencyManager::getBaseCurrency(), true)?></span></td>
</tr>
<?
endif;
?>
<tr>
<td><?=Loc::getMessage('SEO_YANDEX_STATS_GRAPH_TYPE')?>:</td>
<td><select onchange="setGraph(this.value)">
示例4: htmlspecialcharsEx
:</td>
<td>
<input type="text" id="FORM_PAY_VOUCHER_NUM" class="popup_input" name="FORM_PAY_VOUCHER_NUM" value="<?php
echo htmlspecialcharsEx($arOrder["PAY_VOUCHER_NUM"]);
?>
" size="30" maxlength="20" class="typeinput">
</td>
</tr>
<tr>
<td class="head"><?php
echo GetMessage('SOD_POPUP_PAY_DATE_DOC');
?>
:</td>
<td>
<?php
echo CalendarDate("FROM_PAY_VOUCHER_DATE", $arOrder["PAY_VOUCHER_DATE"], "change_pay_form", "10", 'class="typeinput"');
?>
</td>
</tr>
<?
$dbUserAccount = CSaleUserAccount::GetList(
array(),
array(
"USER_ID" => $arOrder["USER_ID"],
"CURRENCY" => $arOrder["CURRENCY"],
"LOCKED" => "N"
)
);
$arUserAccount = $dbUserAccount->GetNext();
?>
<tr id="user_budget" style="display:<?php
示例5: GetMessage
<input type="text" name="PAY_VOUCHER_NUM" value="<?php
echo $str_PAY_VOUCHER_NUM;
?>
" size="20" maxlength="20">
</td>
</tr>
<tr>
<td width="40%">
<?php
echo GetMessage("SOE_VOUCHER_DATE");
?>
:
</td>
<td width="60%">
<?php
echo CalendarDate("PAY_VOUCHER_DATE", $str_PAY_VOUCHER_DATE, "order_edit_info_form", "10", 'class="typeinput"' . (!$bUserCanPayOrder ? " disabled" : ""));
?>
</td>
</tr>
<?
$tabControl->EndCustomField("ORDER_PAYED");
}
// order properties related to the delivery and payment systems
$html = "";
$arRelFilter = array();
$arRelFilter["RELATED"]["DELIVERY_ID"] = $str_DELIVERY_ID;
$arRelFilter["RELATED"]["PAYSYSTEM_ID"] = $str_PAY_SYSTEM_ID;
if (isset($arRelFilter["RELATED"]) && (strlen($arRelFilter["RELATED"]["DELIVERY_ID"]) > 0 || intval($arRelFilter["RELATED"]["PAYSYSTEM_ID"]) > 0))
示例6: GetMessage
<?php
echo GetMessage('sender_chain_edit_field_send_type_TIME');
?>
<span class="sender-mailing-sprite sender-box-list-item-caption-delete" onclick="DeleteSelectedSendType(this);" style="height: 20px; width: 23px; margin-top: -2px;"></span>
</div>
<div class="sender-box-list-item-block">
<div class="sender-box-list-item-block-item">
<table>
<tr>
<td><?php
echo GetMessage('sender_chain_edit_field_AUTO_SEND_TIME');
?>
</td>
<td>
<?php
echo CalendarDate("AUTO_SEND_TIME", $str_AUTO_SEND_TIME, "post_form", "20");
?>
</td>
</table>
</div>
</div>
</div>
<div id="chain_send_type_REITERATE" class="sender-box-list-item" <?php
echo $SEND_TYPE == 'REITERATE' ? '' : 'style="display: none;"';
?>
>
<div class="sender-box-list-item-caption">
<?php
echo GetMessage('sender_chain_edit_field_send_type_REITERATE');
?>
<span class="sender-mailing-sprite sender-box-list-item-caption-delete" onclick="DeleteSelectedSendType(this);" style="height: 20px; width: 23px; margin-top: -2px;"></span>
示例7: GetMessage
<td align="right"><?php
echo GetMessage("STAT_START_DATE") . ":";
?>
</td>
<td><?php
echo CalendarDate("DATE_START", $str_DATE_START, "form1", "19");
?>
</td>
</tr>
<tr valign="top">
<td align="right"><?php
echo GetMessage("STAT_END_DATE") . ":";
?>
</td>
<td><?php
echo CalendarDate("DATE_END", $str_DATE_END, "form1", "19");
?>
</td>
</tr>
<tr valign="top" class="heading">
<td colspan="2"><?php
echo GetMessage("STAT_CONDITIONS");
?>
</td>
</tr>
<tr valign="top">
<td align="right"><?php
echo GetMessage("STAT_SITE");
?>
:</td>
<td><?php
示例8: GetMessage
</td>
</tr>
<?endif;?>
<tr class="adm-detail-required-field">
<td width="40%" class="adm-detail-content-cell-l"><?php
echo GetMessage('CAT_DOC_DATE');
?>
:</td>
<td width="60%" class="adm-detail-content-cell-r">
<?if($bReadOnly):?>
<?php
echo $str_DATE_DOCUMENT;
?>
<?else:?>
<?php
echo CalendarDate("DOC_DATE", isset($str_DATE_DOCUMENT) ? $str_DATE_DOCUMENT : date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL")), time()), "form_catalog_document_form", "15", "class=\"typeinput\"");
?>
<?endif;?>
</td>
</tr>
<tr class="adm-detail-required-field">
<td width="40%" class="adm-detail-content-cell-l"><?php
echo GetMessage("CAT_DOC_SITE_ID");
?>
:</td>
<td width="60%" class="adm-detail-content-cell-r">
<select id="SITE_ID" name="SITE_ID" <?php
echo $isDisable;
?>
/>
<?foreach($arSitesShop as $key => $val)
示例9: GetMessage
<td><?php
echo $a_LAST_EXEC;
?>
</td>
</tr>
<?php
}
?>
<tr class="adm-detail-required-field">
<td width="40%"><?php
echo GetMessage("MAIN_AGENT_START_EXEC");
?>
:</td>
<td width="60%"><?php
echo CalendarDate("NEXT_EXEC", htmlspecialcharsbx($a_NEXT_EXEC), "f_agent", 20);
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage('MAIN_AGENT_ACTIVE');
?>
</td>
<td>
<input type="hidden" name="ACTIVE" value="N">
<input type="checkbox" name="ACTIVE" value="Y"<?php
if ($a_ACTIVE == "Y") {
echo " checked";
}
?>
示例10: GetMessage
<tr>
<td>ID:</td>
<td><?php
echo $ID;
?>
</td>
</tr><?php
}
?>
<tr class="adm-detail-required-field">
<td width="40%"><?php
echo GetMessage("curr_rates_date1");
?>
:</td>
<td width="60%"><?php
echo CalendarDate("DATE_RATE", $currencyRate['DATE_RATE'], "rate_edit", "10", 'class="typeinput"');
?>
</td>
</tr>
<tr class="adm-detail-required-field">
<td><?php
echo GetMessage("curr_rates_curr1");
?>
:</td>
<td><?php
echo CCurrency::SelectBox("CURRENCY", $currencyRate['CURRENCY'], '', true);
?>
</td>
</tr>
<tr class="adm-detail-required-field">
<td><?php
示例11: htmlspecialcharsbx
</a>] (<?php
echo htmlspecialcharsbx($arUsers["LOGIN"]);
?>
) <?php
echo htmlspecialcharsbx($arUsers["NAME"]);
?>
<?php
echo htmlspecialcharsbx($arUsers["LAST_NAME"]);
?>
</label></td>
<td>
<?php
echo CalendarDate("USER_ID_FROM_" . $ind, array_key_exists($arUsers["ID"], $str_USER_ID) ? htmlspecialcharsbx($str_USER_ID[$arUsers["ID"]]["DATE_ACTIVE_FROM"]) : "", "form1", "10", array_key_exists($arUsers["ID"], $str_USER_ID) ? " " : " disabled");
?>
<?php
echo CalendarDate("USER_ID_TO_" . $ind, array_key_exists($arUsers["ID"], $str_USER_ID) ? htmlspecialcharsbx($str_USER_ID[$arUsers["ID"]]["DATE_ACTIVE_TO"]) : "", "form1", "10", array_key_exists($arUsers["ID"], $str_USER_ID) ? " " : " disabled");
?>
</td>
</tr>
<?php
}
?>
</table><input type="hidden" name="USER_ID_NUMBER" value="<?php
echo $ind;
?>
"></td>
</tr>
<?php
}
$tabControl->BeginNextTab();
?>
示例12: GetMessage
<td>
<input type="text" name="PENDING_SUM" size="10" maxlength="15" value="<?php
echo $str_PENDING_SUM;
?>
">
<span id="DIV_PENDING_SUM_CURRENCY"></span>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("SAE_LAST_CALC");
?>
:</td>
<td>
<?php
echo CalendarDate("LAST_CALCULATE", $str_LAST_CALCULATE, "form1", "20", "");
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("SAE_AFF_SITE");
?>
:</td>
<td>
<input type="text" name="AFF_SITE" size="60" maxlength="200" value="<?php
echo $str_AFF_SITE;
?>
">
</td>
</tr>
示例13: Tab1
function Tab1($adminForm)
{
$adminForm->BeginCustomField("NAME", GetMessage("SUP_NAME"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><input type="text" maxlength="255" name="NAME" size="50" value="<?php
echo CSupportPage::$holidaysFields->getFieldForOutput("NAME", CSupportTableFields::ATTRIBUTE);
?>
"></td>
</tr>
<?php
$adminForm->EndCustomField("NAME");
$adminForm->BeginCustomField("OPEN_TIME", GetMessage("SUP_OPEN_TIME"), false);
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%">
<select id="OPEN_TIME" name="OPEN_TIME" onchange="changeOpenTimeFormat()">
<?php
$arr = CSupportHolidays::GetOpenTimeArray();
foreach ($arr as $v => $n) {
$ss = substr($v, 0, 3);
if ($ss == "GB_") {
echo '<optgroup label="' . GetMessage($n) . '">';
} elseif ($ss == "GE_") {
echo '</optgroup>';
} else {
echo '<option ' . ($v == CSupportPage::$holidaysFields->OPEN_TIME ? 'selected ' : '') . 'value="' . $v . '">' . GetMessage($n) . '</option>';
}
}
?>
</select>
</td>
</tr>
<script type="text/javascript">
function changeOpenTimeFormat()
{
var inputFrom = BX.findChild(BX('supTabControl_form'), {attr:{name:'DATE_FROM'}}, true);
var inputTill = BX.findChild(BX('supTabControl_form'), {attr:{name:'DATE_TILL'}}, true);
inputFrom.value = BX.calendar.ValueToString(BX.parseDate(inputFrom.value), BX('OPEN_TIME').value.slice(-2) == '_H');
inputTill.value = BX.calendar.ValueToString(BX.parseDate(inputTill.value), BX('OPEN_TIME').value.slice(-2) == '_H');
}
</script>
<?php
$adminForm->EndCustomField("OPEN_TIME");
$adminForm->BeginCustomField("DATE_FROM", GetMessage("SUP_DATE_FROM"), false);
if (CSupportPage::$holidaysFields->OPEN_TIME == 'HOLIDAY_H' || CSupportPage::$holidaysFields->OPEN_TIME == 'WORKDAY_H') {
$time = GetTime(CSupportPage::$holidaysFields->DATE_FROM, "FULL");
} else {
$time = GetTime(CSupportPage::$holidaysFields->DATE_FROM, "SHORT");
}
$dateControl = str_replace(array('bTime: true', 'bHideTime: false', 'BX.calendar({'), array('bTime: BX(\'OPEN_TIME\').value.slice(-2) == \'_H\'', 'bHideTime: BX(\'OPEN_TIME\').value.slice(-2) != \'_H\'', 'BX.calendar({callback_after: function(param){this.params.field.value = BX.calendar.ValueToString(param, BX(\'OPEN_TIME\').value.slice(-2) == \'_H\')}, '), CalendarDate("DATE_FROM", $time, "supTabControl", "20"));
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><?php
echo $dateControl;
?>
</td>
</tr>
<?php
$adminForm->EndCustomField("DATE_FROM");
$adminForm->BeginCustomField("DATE_TILL", GetMessage("SUP_DATE_TILL"), false);
if (CSupportPage::$holidaysFields->OPEN_TIME == 'HOLIDAY_H' || CSupportPage::$holidaysFields->OPEN_TIME == 'WORKDAY_H') {
$time = GetTime(CSupportPage::$holidaysFields->DATE_TILL, "FULL");
} else {
$time = GetTime(CSupportPage::$holidaysFields->DATE_TILL, "SHORT");
}
$dateControl = str_replace(array('bTime: true', 'bHideTime: false', 'BX.calendar({'), array('bTime: BX(\'OPEN_TIME\').value.slice(-2) == \'_H\'', 'bHideTime: BX(\'OPEN_TIME\').value.slice(-2) != \'_H\'', 'BX.calendar({callback_after: function(param){this.params.field.value = BX.calendar.ValueToString(param, BX(\'OPEN_TIME\').value.slice(-2) == \'_H\')}, '), CalendarDate("DATE_TILL", $time, "supTabControl", "20"));
?>
<tr class="adm-detail-required-field">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
<td width="60%"><?php
echo $dateControl;
?>
</td>
</tr>
<?php
$adminForm->EndCustomField("DATE_TILL");
$adminForm->BeginCustomField("SLA_ID", GetMessage("SUP_SLA_ID"), false);
?>
<tr valign="top">
<td width="40%" align="right"><?php
echo $adminForm->GetCustomLabelHTML();
?>
:</td>
//.........这里部分代码省略.........
示例14: GetMessage
" size="20" maxlength="20">
</td>
</tr>
<tr>
<td width="40%">
<?php
echo GetMessage("SOE_DEL_VOUCHER_DATE");
?>
(<?php
echo CSite::GetDateFormat("SHORT", LANG);
?>
):
</td>
<td width="60%">
<?php
echo CalendarDate("DELIVERY_DOC_DATE", $str_DELIVERY_DOC_DATE, "change_delivery_form", "20", "class=\"typeinput\"");
?>
</td>
</tr>
<tr>
<td colspan="2" height="8"></td>
</tr>
<?php
$bUseDelivery = false;
$bUseDeliveryHandlers = false;
ob_start();
?>
<td width="40%" align="right">
示例15: CalendarDate
echo Loc::getMessage('SEO_YANDEX_STATS_GRAPH_INTERVAL');
?>
</option>
<option value="week_ago"><?php
echo Loc::getMessage('SEO_YANDEX_STATS_GRAPH_WEEK');
?>
</option>
<option value="month_ago"><?php
echo Loc::getMessage('SEO_YANDEX_STATS_GRAPH_MONTH');
?>
</option>
</select> <span id="seo_graph_interval"><?php
echo CalendarDate("date_from", $dateStart->toString(), 'form1', "4");
?>
…<?php
echo CalendarDate("date_to", $dateFinish->toString(), 'form1', "4");
?>
</span></span> <input type="button" value="<?php
echo Loc::getMessage('SEO_YANDEX_STATS_PERIOD_APPLY');
?>
" onclick="loadGraphData()" id="stats_loading_button" name="template_preview"><span id="stats_wait" class="loading-message-text" style="display: none; margin-top: 5px;"><?php
echo Loc::getMessage('SEO_YANDEX_STATS_WAIT');
?>
</span>
</td>
</tr>
<?php
if ($bSale) {
?>
<tr>
<td><?php