6require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_before.php");
11 die(
"Provided security token is invalid!");
14if (!Loader::includeModule(
'catalog'))
16 die(
'catalog module is not included!');
19Loc::loadMessages(__FILE__);
26 $row[
'ID'] = (int)$row[
'ID'];
27 $row[
'NAME_LANG'] = (string)$row[
'NAME_LANG'];
29 if ($row[
'BASE'] ==
'Y')
34require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_after.php");
37 ? (int)$_SESSION[
'CHANGE_PRICE_PARAMS'][
'INITIAL_PRICE_TYPE']
44 ? (int)$_SESSION[
'CHANGE_PRICE_PARAMS'][
'PRICE_TYPE']
58<form method=
"post" id=
"form_SetValue">
61 <table
style=
"width:100%;padding-bottom: 15px;">
63 <td
style=
"width:25.5%; padding-left:10px">
64 <input
id=
"initialPriceTypeCheckbox" type=
"checkbox">
65 <label
class=
"inactive-element" id=
"initialPriceTypeLabel" for=
"initialPriceTypeSelect">
66 <?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_INITIAL_PRICE_TYPE")?>
70 <span
class=
"adm-select-wrap">
71 <
select id=
"initialPriceTypeSelect" class=
"adm-select inactive-element" style=
"width: 169px;" disabled>
73 echo Loc::getMessage(
'IBLIST_CHPRICE_PRICE_TYPE_EMPTY'); ?></option>
77 ?><option value=
"<?=$id; ?>"<?=(
$sourcePriceType == $id ?
' selected' :
''); ?>><?php
78 echo
$title; ?></option><?php
88 <table
class=
"internal" id=
"generator_price_table" style=
"width:auto;margin-bottom:10px;">
92 <label
for=
"tablePriceTypeIdSelect">
93 <?=Loc::getMessage(
"IBLIST_CHPRICE_HEAD_TABLE_TYPE")?>:
97 <label
for=
"tableActionChangingSelect">
98 <?=Loc::getMessage(
"IBLIST_CHPRICE_HEAD_TABLE_ACTION")?>:
103 <?=Loc::getMessage(
"IBLIST_CHPRICE_HEAD_TABLE_VALUE")?>:
107 <label
for=
"tableUnitsSelect">
108 <?=Loc::getMessage(
"IBLIST_CHPRICE_HEAD_TABLE_UNITS")?><span
style=
"color:red">*</span>:
116 <span
class=
"adm-select-wrap">
117 <
select id=
"tablePriceTypeIdSelect" class=
"adm-select" style=
"width: 169px;">
119 echo Loc::getMessage(
'IBLIST_CHPRICE_PRICE_TYPE_EMPTY'); ?></option>
124 echo
$title; ?></option><?php
132 <span
class=
"adm-select-wrap">
133 <
select id=
"tableActionChangingSelect" class=
"adm-select" style=
"width: 169px; max-width: 300px;" name=
"tableActionChangingSelect">
134 <option
id=
"radio_changing_add" value=
"add"><?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_ACTION_TYPE_ADD")?></option>
135 <option
id=
"radio_changing_sub" value=
"subtract"><?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_ACTION_TYPE_SUB")?></option>
140 <input type=
"text" name=
"tableValueChangingPriceInput" id=
"tableValueChangingPriceInput" class=
"adm-input" placeholder=
"0.00">
143 <span
class=
"adm-select-wrap">
144 <
select id=
"tableUnitsSelect" class=
"adm-select" style=
"width: 169px;">
145 <option
selected value=
"percent">%</option>
146 <option value=
"multiple"><?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_UNIT_MULTYPLE")?></option>
153 if ( isset($_SESSION[
'CHANGE_PRICE_PARAMS'][
'UNITS'])
154 && ($_SESSION[
'CHANGE_PRICE_PARAMS'][
'UNITS'] === $currencyCode) )
170 <table
width=
"100%" id=
"chp_radioTable">
173 <p
style=
"font-weight: bold;color: #3f4b54;padding-left: 25px;">
174 <?=Loc::getMessage(
'IBLIST_CHPRICE_TABLE_ACTION_RESULT_LABEL')?>:
179 if (isset($_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'])
180 && $_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'] ===
"floor")
185 id=
"floorRadio" name=
"formatResultRadio" value=
"floor"/>
186 <label
for=
"floorRadio">
187 <?=Loc::getMessage(
'IBLIST_CHPRICE_TABLE_ACTION_RESULT_FLOOR')?>
193 if ( empty($_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'])
194 || ($_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'] ===
"ceil") )
199 id=
"ceilRadio" name=
"formatResultRadio" value=
"ceil"/>
200 <label
for=
"ceilRadio">
201 <?=Loc::getMessage(
'IBLIST_CHPRICE_TABLE_ACTION_RESULT_CEIL')?>
207 if (isset($_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'])
208 && $_SESSION[
'CHANGE_PRICE_PARAMS'][
'FORMAT_RESULTS'] ===
"round")
213 id=
"roundRadio" name=
"formatResultRadio" value=
"round"/>
214 <label
for=
"roundRadio">
215 <?=Loc::getMessage(
'IBLIST_CHPRICE_TABLE_ACTION_ROUND_RESULT_ROUND')?>
222 <td
style=
"width:50%; padding-left:10px">
223 <input
id=
"resultMaskCheckbox" type=
"checkbox">
224 <label
class=
"inactive-element" id=
"resultMaskLabel" for=
"resultMaskSelect"><?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_RESULT_MASK_LABEL")?></label>
226 <td
style=
"padding-left: 20px">
227 <span
class=
"adm-select-wrap">
228 <
select id=
"resultMaskSelect" class=
"adm-select inactive-element" style=
"width: 70px;" disabled>
229 <option value=
"100">0.01</option>
230 <option value=
"20">0.05</option>
231 <option value=
"10">0.1</option>
232 <option value=
"2">0.5</option>
233 <option value=
"1" selected>1</option>
234 <option value=
"0.2">5</option>
235 <option value=
"0.1">10</option>
236 <option value=
"0.02">50</option>
237 <option value=
"0.01">100</option>
238 <option value=
"0.002">500</option>
239 <option value=
"0.001">1000</option>
245 <td
style=
"width:50%; padding-left:10px">
246 <input
id=
"differenceValueCheckbox" type=
"checkbox">
247 <label
class=
"inactive-element" id=
"differenceValueLabel" for=
"differenceValueCheckbox"><?=Loc::getMessage(
"IBLIST_CHPRICE_TABLE_MINUS_COUNT_LABEL")?></label>
249 <td
style=
"padding-left: 20px">
250 <input type=
"text" id=
"differenceValueInput" style=
"width: 140px;" placeholder=
"0.00" value=
"" disabled>
254 <table
style=
"width:100%;margin-top:15px;">
256 <td
style=
"width:100%">
257 <?=Loc::getMessage(
"IBLIST_CHPRICE_EXAMPLE_LABEL")?>
261 <table
style=
"width: 100%;">
264 $sourceInput =
"<input type='text' style='width:70px;margin:0 5px' id='exampleSourceValueInput' value='11111.11'>";
266 <td
style=
"text-align: center;">
267 <?=Loc::getMessage(
"IBLIST_CHPRICE_EXAMPLE_VALUE",
array(
"#VALUE_BEFORE#"=>
$sourceInput))?>
269 <span
id=
'resultValueSpan' style=
"color:#01B10E;font-weight: bold;">11111.11<span>
277<div
style=
"margin-top: 45px;">
278 <div
style=
"position:relative">
279 <span
style=
"color:red;position:absolute;left:-10px;">*</span>
281 <?=Loc::getMessage(
'IBLIST_CHPRICE_UNITS_NOTE_PERCENT')?>
284 <?=Loc::getMessage(
'IBLIST_CHPRICE_UNITS_NOTE_CURRENCY')?>
293 "alertMessages" =>
array(
294 "onePriceType" => Loc::getMessage(
'IBLIST_CHPRICE_ALERT_ONE_PRICE_TYPE'),
295 "nullValue" => Loc::getMessage(
'IBLIST_CHPRICE_ALERT_NOT_NULL'),
296 "equalPriceTypes" => Loc::getMessage(
'IBLIST_CHPRICE_ERR_EQUAL_PRICE_TYPES'),
297 "basePriceChange" => Loc::getMessage(
'IBLIST_CHPRICE_ERR_BASE_PRICE_SELECTED'),
298 "destinationPriceEmpty" => Loc::getMessage(
'IBLIST_CHPRICE_ERR_DESTINATION_PRICE_EMPTY'),
299 "sourcePriceEmpty" => Loc::getMessage(
'IBLIST_CHPRICE_ERR_SOURCE_PRICE_EMPTY')
304\Bitrix\Main\Page\Asset::getInstance()->addJs(
'/bitrix/js/catalog/iblock_change_price.js');
307 var iblockChangeScript = BX.Catalog.Admin.IblockChangePrice();
311require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/epilog_admin.php");
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Form FILTER_ACTION disabled
foreach( $currenciesList as $currencyCode=> $currencyElement) if(isset($_SESSION['CHANGE_PRICE_PARAMS']['FORMAT_RESULTS']) && $_SESSION['CHANGE_PRICE_PARAMS']['FORMAT_RESULTS']==="floor") if(empty( $_SESSION[ 'CHANGE_PRICE_PARAMS'][ 'FORMAT_RESULTS'])||( $_SESSION[ 'CHANGE_PRICE_PARAMS'][ 'FORMAT_RESULTS']==="ceil")) if(isset($_SESSION['CHANGE_PRICE_PARAMS']['FORMAT_RESULTS']) && $_SESSION['CHANGE_PRICE_PARAMS']['FORMAT_RESULTS']==="round") $sourceInput
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
if(!empty($XML_DATA['PRICE'])) $priceTypeList