/**
 * @param $intRangeID
 * @param $strPrefix
 * @return string
 */
function __AddCellCurrency($intRangeID, $strPrefix)
{
    $currencySelectbox = CCurrency::SelectBox("{$strPrefix}CURRENCY[{$intRangeID}]", '', "", true, "", "class=\"adm-select\" style=\"width: 169px;\"");
    return <<<CURRENCYCELL
\t<td width="30%">
\t\t<span class="adm-select-wrap">
\t\t\t{$currencySelectbox}
\t\t</span>
\t</td>
CURRENCYCELL;
}
Example #2
0
</td>
		<td>
			<input type="text" name="SUM_MAX" size="10" maxlength="10" value="<?php 
echo DoubleVal($str_SUM_MAX) > 0 ? roundEx($str_SUM_MAX, SALE_VALUE_PRECISION) : "";
?>
">
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SCE_SUM_CURRENCY");
?>
</td>
		<td>
			<?php 
echo CCurrency::SelectBox("SUM_CURRENCY", $str_SUM_CURRENCY, "", false, "", "class='typeselect'");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SCE_DESCRIPTION");
?>
</td>
		<td>
			<input type="text" name="DESCRIPTION" size="40" maxlength="250" value="<?php 
echo $str_DESCRIPTION;
?>
">
		</td>
	</tr>
Example #3
0
				</td>
			</tr>
			<tr>
				<td width="40%" align="right">
					<?php 
        echo GetMessage("SOE_DELIVERY_PRICE");
        ?>
:
				</td>
				<td width="60%">
					<input type="text" name="PRICE_DELIVERY" size="10" maxlength="20" value="<?php 
        echo roundEx($str_PRICE_DELIVERY, SALE_VALUE_PRECISION);
        ?>
">
					<?php 
        echo CCurrency::SelectBox("PRICE_DELIVERY_CURRENCY", $str_CURRENCY, "", false, "", "");
        ?>
					<script language="JavaScript">
					<!--
					OnCurrencyChange();
					//-->
					</script>
				</td>
			</tr>
<?php 
        $obDelivery = ob_get_contents();
        ob_end_clean();
        ob_start();
        ?>
				<td width="40%" align="right">
					<?php 
Example #4
0
        ?>
" title="<?php 
        echo GetMessage("SALE_SITE_ALT");
        ?>
"><?php 
        echo $val["ID"];
        ?>
</a>] <?php 
        echo $val["NAME"];
        ?>
				</td>
				<td valign="top">

					<?php 
        $arCurr = CSaleLang::GetByID($val["ID"]);
        echo CCurrency::SelectBox("CURRENCY_" . $val["ID"], $arCurr["CURRENCY"], GetMessage("SALE_NOT_SET"), True, "");
        ?>

				</td>
				<td valign="top">

					<?php 
        $arCurrentGroups = array();
        $dbSiteGroupsList = CSaleGroupAccessToSite::GetList(array(), array("SITE_ID" => $val["ID"]));
        while ($arSiteGroup = $dbSiteGroupsList->Fetch()) {
            $arCurrentGroups[] = IntVal($arSiteGroup["GROUP_ID"]);
        }
        $b = "c_sort";
        $o = "asc";
        $userGroupList = array();
        $dbGroups = CGroup::GetList($b, $o, array("ANONYMOUS" => "N"));
Example #5
0
?>
>
		</td>
	</tr>
	<tr>
		<td width="40%"><?php 
echo GetMessage("F_PRICE");
?>
:</td>
		<td width="60%">
			<input type="text" name="PRICE" value="<?php 
echo $str_PRICE;
?>
" size="10">
			<?php 
echo CCurrency::SelectBox("CURRENCY", $str_CURRENCY, "", false, "", "");
?>
		</td>
	</tr>
	<tr>
		<td width="40%"><?php 
echo GetMessage("F_SORT");
?>
:</td>
		<td width="60%">
			<input type="text" name="SORT" value="<?php 
echo $str_SORT;
?>
" size="40">
		</td>
	</tr>
		<td width="40%"><?php 
echo GetMessage("curr_rates_date1");
?>
:</td>
		<td width="60%"><?php 
echo CalendarDate("DATE_RATE", $str_DATE_RATE, "form1", "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", $str_CURRENCY, "", True, "ChangeCurr()", "");
?>
</td>
	</tr>
	<tr class="adm-detail-required-field">
		<td><?php 
echo GetMessage("curr_rates_rate_cnt");
?>
:</td>
		<td><input type="text" name="RATE_CNT" value="<?php 
echo $str_RATE_CNT;
?>
" size="5"></td>
	</tr>
	<tr class="adm-detail-required-field">
		<td><?php 
Example #7
0
                if (${$key} == "Y") {
                    echo "checked";
                }
                ?>
></td>
				</tr>
			<?php 
            } elseif ($key == "BASE_CURRENCY" && CModule::IncludeModule("currency")) {
                ?>
				<tr>
					<td class="adm-detail-valign-top"><?php 
                echo GetMessage("STAT_OPT_BASE_CURRENCY");
                ?>
</td>
					<td><?php 
                echo CCurrency::SelectBox("BASE_CURRENCY", $BASE_CURRENCY, " ", True, "");
                ?>
<br>
					<input type="checkbox" name="recount_base_currency" id="recount_base_currency" value="Y"><label for="recount_base_currency"><?php 
                echo GetMessage("STAT_OPT_DO_RECOUNT");
                ?>
</label></td>
				</tr>
			<?php 
            }
        } else {
            $val = COption::GetOptionString($module_id, $Option[0]);
            $type = $Option[2];
            ?>
			<tr>
				<td <?php 
Example #8
0
			//-->
			</script>
			<input name="filter_product_id" id="filter_product_id" value="<?php 
echo htmlspecialcharsbx($filter_product_id);
?>
" size="5" type="text">&nbsp;<input type="button" value="..." id="cat_prod_button" onClick="showProductSearchDialog()"><span id="product_name_alt" class="adm-filter-text-search"></span>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SB_CURRENCY");
?>
:</td>
		<td align="left">
			<?php 
echo CCurrency::SelectBox("filter_currency", $filter_currency, GetMessage("SB_ALL"), True, "", "");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SB_USER_GROUP_ID");
?>
:</td>
		<td>
			<?php 
$z = CGroup::GetDropDownList("AND ID!=2");
echo SelectBoxM("filter_group_id[]", $z, $filter_group_id, "", false, 5);
?>
		</td>
	</tr>
	<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 
echo GetMessage("curr_rates_rate_cnt");
?>
:</td>
	<td><input type="text" id="RATE_CNT" name="RATE_CNT" value="<?php 
echo $currencyRate['RATE_CNT'];
?>
" size="5"></td>
</tr>
<tr class="adm-detail-required-field">
	<td><?php 
Example #10
0
echo GetMessage("PAYMENT_PRICE_TO");
?>
		<input type="text" name="filter_sum_to" value="<?php 
echo $filter_sum_to != 0 ? htmlspecialcharsbx($filter_sum_to) : '';
?>
" size="3">
	</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("PAYMENT_CURRENCY");
?>
:</td>
	<td>
		<?php 
echo CCurrency::SelectBox("filter_currency", htmlspecialcharsbx($filter_currency), GetMessage("PAYMENT_CURRENCY_ALL"), false, "", "");
?>
	</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("PAYMENT_VOUCHER_NUM");
?>
:</td>
	<td>
		<input type="text" name="filter_pay_voucher_num" value="<?php 
echo htmlspecialcharsbx($filter_pay_voucher_num);
?>
">
	</td>
</tr>
	<td class="field-name"><?php 
echo GetMessage('SALE_DH_HANDLER_NAME');
?>
</td>
	<td><input type="text" name="HANDLER[NAME]" value="<?php 
echo htmlspecialcharsbx($arDeliveryInfo[$SITE_ID]["NAME"]);
?>
" /></td>
</tr>
<tr>
	<td class="field-name"><?php 
echo GetMessage('SALE_DH_HANDLER_CURRENCY');
?>
</td>
	<td><?php 
echo CCurrency::SelectBox('HANDLER[BASE_CURRENCY]', htmlspecialcharsbx($arDeliveryInfo[$SITE_ID]["BASE_CURRENCY"]));
?>
</td>
</tr>
<tr>
	<td valign="top" class="field-name"><?php 
echo GetMessage('SALE_DH_HANDLER_DESCRIPTION');
?>
</td>
	<td valign="top">
		<?php 
echo wrapDescrLHE('HANDLER[DESCRIPTION]', isset($arDeliveryInfo[$SITE_ID]["DESCRIPTION"]) ? $arDeliveryInfo[$SITE_ID]["DESCRIPTION"] : '', 'hndl_dscr');
?>
		<script language="JavaScript">setLHEClass('bxlhe_frame_hndl_dscr'); </script>
	</td>
</tr>
" size="8" />&nbsp;
					<?php 
        echo GetMessage('SALE_DH_PROFILE_SUM_RESTRICTIONS_TO');
        ?>
					<input type="text" name="HANDLER[PROFILES][<?php 
        echo htmlspecialcharsbx($profile_id);
        ?>
][RESTRICTIONS_SUM][2]" value="<?php 
        echo number_format(floatval($arProfile['RESTRICTIONS_SUM'][2]), 2, '.', '');
        ?>
" size="8" />
					<?php 
        echo GetMessage('SALE_DH_PROFILE_SUM_RESTRICTIONS_CURRENCY');
        ?>
					<?php 
        echo CCurrency::SelectBox('HANDLER[PROFILES][' . htmlspecialcharsbx($profile_id) . '][RESTRICTIONS_SUM][0]', $arDeliveryInfo[$SITE_ID]["BASE_CURRENCY"]);
        ?>
				</td>
			</tr>
		</table><br />
<?php 
    }
}
?>
</td>
	</tr>
</table>

<?php 
$tabControl->BeginNextTab();
?>
    ?>
							</td>
						</tr>
					<?php 
}
?>
					<?php 
if (isset($requiredFields["CURRENCY"])) {
    ?>
						<tr class="adm-detail-required-field">
							<td width="40%" class="adm-detail-content-cell-l"><?php 
    echo GetMessage("CAT_DOC_CURRENCY");
    ?>
:</td>
							<td width="60%" class="adm-detail-content-cell-r"><?php 
    echo CCurrency::SelectBox("CAT_CURRENCY_STORE", $str_CURRENCY, "", true, "", "onChange=\"recalculateSum(0);\" id='CAT_CURRENCY_STORE'" . $isDisable);
    ?>
</td>
						</tr>
					<?php 
}
?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
<?php 
$aTabs = array();
$tabControl = new CAdminTabControl("storeDocument_" . $docType, $aTabs);
$tabControl->Begin();
    ?>
</a>
				<?php 
}
?>
			</td>
			
		</tr>
					
		<tr class="adm-detail-required-field">
			<td width="40%" class="adm-detail-content-cell-l"><?php 
echo GetMessage("CAT_DOC_CURRENCY");
?>
:</td>
			<td width="60%" class="adm-detail-content-cell-r"><?php 
echo CCurrency::SelectBox("CAT_CURRENCY_STORE", $str_CURRENCY, "", true, "", " id='CAT_CURRENCY_STORE'" . $isDisable);
?>
</td>
		</tr>
		<tr class="adm-detail-required-field">
			<td width="40%" class="adm-detail-content-cell-l"><?php 
echo GetMessage("CAT_DOC_STORE_TO");
?>
:</td>
			<td width="60%" class="adm-detail-content-cell-r"><?php 
echo $store_to_select;
?>
</td>
		</tr>

  <!--  HTML-код строк таблицы -->
    echo "<option " . $selected . " value=" . $val['ID'] . ">" . $val["NAME"] . " (" . $val["ID"] . ")" . "</option>";
}
?>
			</select>
		</td>
	</tr>
	<?php 
if (is_set($requiredFields, "CURRENCY")) {
    ?>
		<tr class="adm-detail-required-field">
			<td><?php 
    echo GetMessage("CAT_DOC_CURRENCY");
    ?>
:</td>
			<td><?php 
    echo CCurrency::SelectBox("CAT_CURRENCY_STORE", $str_CURRENCY, "", true, "", "onChange=\"fRecalProduct(1, '', 'N', 'N');\" id='CAT_CURRENCY_STORE'" . $isDisabled);
    ?>
</td>
		</tr>
	<?php 
}
?>
	<?php 
if (is_set($requiredFields, "CONTRACTOR")) {
    ?>
		<tr class="adm-detail-required-field">
			<td><?php 
    echo GetMessage("CAT_DOC_CONTRACTOR");
    ?>
:</td>
			<td>
									}
									?>
									</select>
								<?else:?>
									<a href="/bitrix/admin/cat_contractor_edit.php?lang=<? echo urlencode(LANGUAGE_ID); ?>"><?echo GetMessage("CAT_DOC_CONTRACTOR_ADD")?></a>
								<?endif;?>
							</td>
						</tr>
					<?endif;?>
					<?if(isset($requiredFields["CURRENCY"])):?>
						<tr class="adm-detail-required-field">
							<td width="40%" class="adm-detail-content-cell-l"><?php 
echo GetMessage("CAT_DOC_CURRENCY");
?>
:</td>
							<td width="60%" class="adm-detail-content-cell-r"><? echo CCurrency::SelectBox("CAT_CURRENCY_STORE", $str_CURRENCY, "", true, "", "onChange=\"recalculateSum(0);\" id='CAT_CURRENCY_STORE'".$isDisable);?></td>
						</tr>
					<?endif;?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
<?

$aTabs = array();

$tabControl = new CAdminTabControl("storeDocument_".$docType, $aTabs);
$tabControl->Begin();

$lAdmin->DisplayList();
Example #17
0
:</td>
		<td>
			<?php 
$z = CGroup::GetDropDownList("AND ID!=2");
echo SelectBoxM("filter_group[]", $z, $filter_group, "", false, 5);
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("BUYER_F_CURRENCY");
?>
:</td>
		<td>
			<?php 
echo CCurrency::SelectBox("filter_currency", $filter_currency, false, True, "", "");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("BUYER_ORDERS_LID");
?>
:</td>
		<td>
			<select name="filter_lid">
				<?php 
$dbSitesList = CSite::GetList($by = "sort", $order = "asc", array("ACTIVE" => "Y"));
while ($arSitesList = $dbSitesList->Fetch()) {
    ?>
<option value="<?php 
		</tr>
	<?php 
}
?>

	<?php 
if (array_key_exists("CURRENCY", $showFieldsList)) {
    ?>
		<tr>
			<td width="40%"><?php 
    echo Loc::getMessage("SALE_DSE_FORM_CURRENCY");
    ?>
:</td>
			<td width="60%">
				<?php 
    echo CCurrency::SelectBox("CURRENCY", $fields["CURRENCY"], "", true, "");
    ?>
			</td>
		</tr>
	<?php 
}
?>

	<?php 
if (array_key_exists("STORES", $showFieldsList)) {
    ?>
		<?php 
    $stores = ExtraServices\Manager::getStoresFields($ID);
    ?>
		<?php 
    $storeClassName = ExtraServices\Manager::STORE_PICKUP_CLASS;
Example #19
0
_<?php 
                echo $ind;
                ?>
" name="CAT_PRICE_<?php 
                echo $arCatalogGroup["ID"];
                ?>
_<?php 
                echo $ind;
                ?>
" value="" size="10" OnChange="ptPriceChangeEx(this)">

						</td>
						<td valign="top" align="center">

							<?php 
                echo CCurrency::SelectBox("CAT_CURRENCY_" . $arCatalogGroup["ID"] . "_" . $ind, "", GetMessage("VAL_BASE"), true, "ChangeCurrencyEx(this)", ($bReadOnly ? "disabled readonly" : "") . ' id="' . "CAT_CURRENCY_" . $arCatalogGroup["ID"] . "_" . $ind . '" ');
                ?>

						</td>
					</tr>
						<?php 
                $arCatPricesExist[$ind][$arCatalogGroup['ID']] = 'N';
            }
            ?>
				</tbody>
			</table>
			<input type="hidden" name="CAT_ROW_COUNTER_<?php 
            echo $arCatalogGroup["ID"];
            ?>
" id="CAT_ROW_COUNTER_<?php 
            echo $arCatalogGroup["ID"];
Example #20
0
					?><option value="<?php 
echo htmlspecialcharsbx($arSitesList["LID"]);
?>
"<?if ($arSitesList["LID"] == $filter_lang) echo " selected";?>>[<?php 
echo htmlspecialcharsex($arSitesList["LID"]);
?>
]&nbsp;<?php 
echo htmlspecialcharsex($arSitesList["NAME"]);
?>
</option><?
				}
				?>
			</select>
			/
			<?echo CCurrency::SelectBox("filter_currency", $filter_currency, GetMessage("SALE_F_ALL"), false, "", ""); ?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SOA_F_PRICE");
?>
:</td>
		<td>
			<?echo GetMessage("SOA_F_PRICE_FROM");?>
			<input type="text" name="filter_price_from" value="<?php 
echo floatval($filter_price_from) > 0 ? floatval($filter_price_from) : "";
?>
" size="3">

			<?echo GetMessage("SOA_F_PRICE_TO");?>
Example #21
0
?>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_date1");
?>
:</td>
		<td>
			<?php 
echo CalendarPeriod("filter_period_from", $filter_period_from, "filter_period_to", $filter_period_to, "find_form", "Y");
?>
		</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("curr_rates_curr1");
?>
:</td>
		<td>
			<?php 
echo CCurrency::SelectBox("filter_currency", $filter_currency, GetMessage("curr_rates_all"), True, "", "");
?>
		</td>
	</tr>
<?php 
$filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$filter->End();
?>
</form>
<?php 
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
Example #22
0
     $val = $f_PRICE_FROM;
 }
 $fieldEdit .= "<input type=\"text\" name=\"FIELDS[" . $f_ID . "][PRICE_FROM]\" value=\"" . htmlspecialcharsbx($val) . "\" size=\"7\"> ";
 $fieldEdit .= GetMessage("SALE_TO") . " ";
 if ($row->VarsFromForm() && $_REQUEST["FIELDS"]) {
     $val = $_REQUEST["FIELDS"][$f_ID]["PRICE_TO"];
 } else {
     $val = $f_PRICE_TO;
 }
 $fieldEdit .= "<input type=\"text\" name=\"FIELDS[" . $f_ID . "][PRICE_TO]\" value=\"" . htmlspecialcharsbx($val) . "\" size=\"7\"> ";
 if ($row->VarsFromForm() && $_REQUEST["FIELDS"]) {
     $val = $_REQUEST["FIELDS"][$f_ID]["CURRENCY"];
 } else {
     $val = $f_CURRENCY;
 }
 $fieldEdit .= CCurrency::SelectBox("FIELDS[" . $f_ID . "][CURRENCY]", $val, "", false, "", "");
 //	$row->AddField("PRICE", $fieldValue, $fieldEdit);
 $row->AddViewField("PRICE", $fieldValue);
 $fieldValue = $f_DISCOUNT_VALUE . ($f_DISCOUNT_TYPE == "P" ? "%" : " " . $val);
 $fieldEdit = "";
 if ($row->VarsFromForm() && $_REQUEST["FIELDS"]) {
     $val = $_REQUEST["FIELDS"][$f_ID]["DISCOUNT_VALUE"];
 } else {
     $val = $f_DISCOUNT_VALUE;
 }
 $fieldEdit .= "<input type=\"text\" name=\"FIELDS[" . $f_ID . "][DISCOUNT_VALUE]\" value=\"" . htmlspecialcharsbx($val) . "\" size=\"4\"> ";
 if ($row->VarsFromForm() && $_REQUEST["FIELDS"]) {
     $val = $_REQUEST["FIELDS"][$f_ID]["DISCOUNT_TYPE"];
 } else {
     $val = $f_DISCOUNT_TYPE;
 }