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


PHP CAdminCalendar::CalendarPeriodCustom方法代码示例

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


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

示例1: CAdminCalendar

    $control->BeginCustomField($prefix . 'PERIOD', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_PERIOD'), false);
    ?>
<tr id="tr_COUPON_PERIOD">
		<td width="40%"><?php 
    echo $control->GetCustomLabelHTML();
    ?>
</td>
		<td width="60%"><?php 
    $periodValue = '';
    $activeFrom = $coupon['ACTIVE_FROM'] instanceof Main\Type\DateTime ? $coupon['ACTIVE_FROM']->toString() : '';
    $activeTo = $coupon['ACTIVE_TO'] instanceof Main\Type\DateTime ? $coupon['ACTIVE_TO']->toString() : '';
    if ($activeFrom != '' || $activeTo != '') {
        $periodValue = CAdminCalendar::PERIOD_INTERVAL;
    }
    $calendar = new CAdminCalendar();
    echo $calendar->CalendarPeriodCustom($prefix . 'ACTIVE_FROM', $prefix . 'ACTIVE_TO', $activeFrom, $activeTo, true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_INTERVAL')), $periodValue);
    unset($activeTo, $activeFrom, $periodValue);
    ?>
</td>
	</tr><?php 
    $control->EndCustomField($prefix . 'PERIOD');
    $control->BeginCustomField($prefix . 'USER_ID', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_USER_ID'), false);
    ?>
<tr id="tr_USER_ID">
		<td width="40%"><?php 
    echo $control->GetCustomLabelHTML();
    ?>
</td>
		<td width="60%"><?php 
    echo FindUserID($prefix . 'USER_ID', $coupon['USER_ID'] > 0 ? $coupon['USER_ID'] : '', '', $couponFormID);
    ?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例2: GetMessage

$tabControl->AddCheckBoxField("ACTIVE", GetMessage("DSC_ACTIVE") . ":", false, "Y", $arDiscount['ACTIVE'] == "Y");
$tabControl->AddEditField("NAME", GetMessage("DSC_NAME") . ":", true, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
$tabControl->AddDropDownField("SITE_ID", GetMessage('DSC_SITE') . ':', true, $arSiteList, $arDiscount['SITE_ID']);
$tabControl->BeginCustomField("PERIOD", GetMessage('DSC_PERIOD') . ":", false);
?>
<tr id="tr_PERIOD">
		<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
</td>
		<td width="60%"><?php 
$periodValue = '';
if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO']) {
    $periodValue = CAdminCalendar::PERIOD_INTERVAL;
}
echo CAdminCalendar::CalendarPeriodCustom('ACTIVE_FROM', 'ACTIVE_TO', $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')), $periodValue);
?>
</td>
	</tr><?php 
$tabControl->EndCustomField("PERIOD", '<input type="hidden" name="ACTIVE_FROM" value="' . htmlspecialcharsbx($arDiscount['ACTIVE_FROM']) . '">' . '<input type="hidden" name="ACTIVE_TO" value="' . htmlspecialcharsbx($arDiscount['ACTIVE_FROM']) . '">');
$tabControl->BeginCustomField("VALUE_TYPE", GetMessage('DSC_TYPE') . ":", true);
?>
<tr id="tr_VALUE_TYPE" class="adm-detail-required-field">
		<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
</td>
		<td width="60%">
			<select name="VALUE_TYPE" id="ob_value_type"><?php 
foreach (CCatalogDiscount::GetDiscountTypes(true) as $key => $value) {
    ?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:cat_discount_edit.php

示例3: GetMessage

$tabControl->AddDropDownField("LID", GetMessage('SDEN_SITE') . ':', true, $arSiteList, $arDiscount['LID']);
$tabControl->AddEditField("NAME", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_NAME") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
$tabControl->BeginCustomField("PERIOD", GetMessage('SDEN_PERIOD') . ":", false);
?>
<tr id="tr_PERIOD">
		<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
</td>
		<td width="60%"><?php 
global $ACTIVE_FROM_FILTER_PERIOD;
$ACTIVE_FROM_FILTER_PERIOD = "";
if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO']) {
    $ACTIVE_FROM_FILTER_PERIOD = CAdminCalendar::PERIOD_INTERVAL;
}
echo CAdminCalendar::CalendarPeriodCustom("ACTIVE_FROM", "ACTIVE_TO", $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_SALE_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')));
?>
</td>
	</tr><?php 
$tabControl->EndCustomField("PERIOD", '<input type="hidden" name="ACTIVE_FROM" value="' . htmlspecialcharsbx($arDiscount['ACTIVE_FROM']) . '">' . '<input type="hidden" name="ACTIVE_TO" value="' . htmlspecialcharsbx($arDiscount['ACTIVE_FROM']) . '">');
$tabControl->AddEditField("PRIORITY", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_PRIORITY") . ":", false, array("size" => 20, "maxlength" => 20), intval($arDiscount['PRIORITY']));
$tabControl->AddEditField("SORT", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_SORT"), false, array('size' => 10, 'maxlength' => 20), intval($arDiscount['SORT']));
$tabControl->BeginCustomField("LAST_DISCOUNT", GetMessage('BT_SALE_DISCOUNT_EDIT_FIELDS_LAST_DISCOUNT') . ":", false);
?>
<tr id="tr_LAST_DISCOUNT">
		<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
</td>
		<td width="60%">
			<input type="hidden" value="N" name="LAST_DISCOUNT">
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:discount_edit.php

示例4: CAdminCalendar

    echo Loc::getMessage('SALE_BASKET_DISCOUNT_FILTER_RANGE_FROM');
    ?>
&nbsp;<input type="text" name="order_id_from" id="order_id_from" size="5">&nbsp;<?php 
    echo Loc::getMessage('SALE_BASKET_DISCOUNT_FILTER_RANGE_TO');
    ?>
&nbsp;<input type="text" name="order_id_to" id="order_id_to" size="5">
			</td>
		</tr>
		<tr id="tr_filter_date" style="display: none;">
			<td width="40%"><?php 
    echo Loc::getMessage('SALE_BASKET_DISCOUNT_FILTER_DATE_RANGE');
    ?>
</td>
			<td><?php 
    $calendar = new CAdminCalendar();
    echo $calendar->CalendarPeriodCustom('order_date_from', 'order_date_to', '', '', false, 19, true);
    ?>
</td>
		</tr>
		<?php 
    $tabControl->Buttons();
    ?>
		<input type="button" id="start_button" value="<?php 
    echo Loc::getMessage('SALE_BASKET_DISCOUNT_UPDATE_BTN');
    ?>
"<?php 
    echo $ordersCounter > 0 ? '' : ' disabled';
    ?>
>
		<input type="button" id="stop_button" value="<?php 
    echo Loc::getMessage('SALE_BASKET_DISCOUNT_STOP_BTN');
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:basket_discount_convert.php


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