示例#1
0
>
	</td>
</tr>

<?php 
    if ($saleIsInstalled && Loader::includeModule('sale')) {
        ?>
	<tr>
		<td id="td_reservation_type"><?php 
        echo Loc::getMessage($strUseStoreControl == 'Y' || $strEnableReservation == 'Y' ? 'CAT_PRODUCT_RESERVED' : 'CAT_PRODUCT_QUANTITY_DECREASE');
        ?>
</td>
		<td>
			<?php 
        $currentReserveCondition = Sale\Configuration::getProductReservationCondition();
        $reserveConditions = Sale\Configuration::getReservationConditionList(true);
        if (isset($reserveConditions[$currentReserveCondition])) {
            echo htmlspecialcharsex($reserveConditions[$currentReserveCondition]);
        } else {
            echo Loc::getMessage('BX_CAT_RESERVE_CONDITION_EMPTY');
        }
        unset($reserveConditions, $currentReserveCondition);
        ?>
&nbsp;<a href="<?php 
        echo $saleSettingsUrl;
        ?>
#section_reservation"><?php 
        echo Loc::getMessage('CAT_DISCOUNT_PERCENT_FROM_BASE_SALE');
        ?>
</a>
		</td>
示例#2
0
	</tr>
	<!-- end of ps success and fail paths -->
	<tr class="heading">
		<td colspan="2"><a name="section_reservation"></a><?php 
    echo GetMessage('BX_SALE_SETTINGS_SECTION_RESERVATION');
    ?>
</td>
	</tr>
	<tr>
		<td width="40%"><?php 
    echo GetMessage('BX_SALE_SETTINGS_OPTION_PRODUCT_RESERVE_CONDITION');
    ?>
</td>
		<td width="60%"><select name="product_reserve_condition">
			<?php 
    foreach (Sale\Configuration::getReservationConditionList(true) as $reserveId => $reserveTitle) {
        ?>
<option value="<?php 
        echo $reserveId;
        ?>
"<?php 
        echo $reserveId == $currentSettings['product_reserve_condition'] ? ' selected' : '';
        ?>
><?php 
        echo htmlspecialcharsex($reserveTitle);
        ?>
</option>
				<?php 
    }
    unset($reserveId, $reserveTitle);
    ?>