1<?
if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
die();?><?
3if (!is_array($arOrder))
6<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
10<meta
http-equiv=
"Content-Type" content=
"text/html; charset=<?=LANG_CHARSET?>">
13 table.acc td { border: 1pt solid #000000; padding: 0pt 3pt; line-
height: 21pt; }
14 table.it td { border: 1pt solid #000000; padding: 0pt 3pt; }
15 table.sign td { font-weight: bold; vertical-
align: bottom; }
16 table.header td { padding: 0pt; vertical-
align:
top; }
32 if (intval(
$path) > 0)
34 if ($arFile = CFile::GetFileArray(
$path))
35 $path = $arFile[
'SRC'];
39 if (!in_array($backgroundStyle,
array(
'none',
'tile',
'stretch')))
40 $backgroundStyle =
'none';
44 switch ($backgroundStyle)
54 "url('%s') 0 0 repeat-y; background-size: %.02fpt %.02fpt",
73<body
style=
"margin: 0pt; padding: 0pt;"<?
if (
$_REQUEST[
'PRINT'] ==
'Y') { ?> onload=
"setTimeout(window.print, 0);"<? } ?>>
75<div
style=
"margin: 0pt; padding: <?=join('pt ', $margin); ?>pt; width: <?=$width; ?>pt; background: <?=$background; ?>">
80 <td
style=
"padding-right: 5pt; padding-bottom: 5pt; ">
83 <img src=
"<?=$imgParams['SRC']; ?>" width=
"<?=$imgWidth; ?>" />
111 $rsPattern =
'/\s*\d{10,100}\s*/';
120<table
class=
"acc" width=
"100%">
186 <td
style=
"font-size: 2em; font-weight: bold; text-align: center"><nobr><?=sprintf(
246 array(
"DATE_INSERT" =>
"ASC",
"NAME" =>
"ASC"),
249 array(
"ID",
"PRICE",
"CURRENCY",
"QUANTITY",
"NAME",
"VAT_RATE",
"MEASURE_NAME")
254 $arProdProps =
array();
256 array(
"SORT" =>
"ASC",
"ID" =>
"DESC"),
258 "BASKET_ID" => $arBasket[
"ID"],
259 "!CODE" =>
array(
"CATALOG.XML_ID",
"PRODUCT.XML_ID")
263 array(
"ID",
"BASKET_ID",
"NAME",
"VALUE",
"CODE",
"SORT")
265 while ($arBasketProps = $dbBasketProps->GetNext())
267 if (!empty($arBasketProps) && $arBasketProps[
"VALUE"] !=
"")
268 $arProdProps[] = $arBasketProps;
270 $arBasket[
"PROPS"] = $arProdProps;
285 $productName = $arBasket[
"NAME"];
286 if ($productName ==
"OrderDelivery")
287 $productName =
"Доставка";
288 else if ($productName ==
"OrderDiscount")
289 $productName =
"Скидка";
299 $arBasket[
"PRICE"] * $arBasket[
"QUANTITY"],
300 $arBasket[
"CURRENCY"],
305 if(isset($arBasket[
"PROPS"]))
308 foreach ($arBasket[
"PROPS"] as $vv)
312 $sum += doubleval($arBasket[
"PRICE"] * $arBasket[
"QUANTITY"]);
313 $vat = max(
$vat, $arBasket[
"VAT_RATE"]);
317 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"]) > 0)
321 $sDeliveryItem =
"Доставка";
322 if ($arDelivery_tmp[
"NAME"] <>
'')
323 $sDeliveryItem .= sprintf(
" (%s)", $arDelivery_tmp[
"NAME"]);
330 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"],
331 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
336 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"],
337 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
342 $sum += doubleval(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE_DELIVERY"]);
347 if (
$sum <
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"PRICE"])
362 array(
"APPLY_ORDER" =>
"ASC"),
378 (
$arTaxList[
"IS_IN_PRICE"] ==
"Y") ?
"В том числе " :
"",
386 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
405 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"]) > 0)
415 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SUM_PAID"],
416 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
422 if (DoubleVal(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"]) > 0)
432 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"DISCOUNT_VALUE"],
433 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
447 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
448 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
457<table
class=
"it" width=
"100%">
459 <td><nobr>№</nobr></td>
460 <td><nobr>Наименование товара</nobr></td>
461 <td><nobr>Кол-во</nobr></td>
462 <td><nobr>Ед.</nobr></td>
463 <td><nobr>Цена, <?=
$currency; ?></nobr></td>
464 <?
if (
$vat > 0) { ?>
465 <td><nobr>Ставка НДС</nobr></td>
485 style=
"word-break: break-word; word-wrap: break-word; <? if ($accumulated) {?>border-width: 0pt 1pt 0pt 0pt; <? } ?>"
486 <?
if ($accumulated) { ?>colspan=
"<?=($accumulated+1); ?>"<? $accumulated = 0; } ?>>
488 <?
if (isset($arProps[
$n]) && is_array($arProps[
$n])) { ?>
489 <?
foreach ($arProps[
$n] as $property) { ?>
491 <small><?=$property; ?></small>
498 <?
for (
$i = 3;
$i <= 7;
$i++) { ?>
502 <?
if ($accumulated) { ?>
503 style=
"border-width: 0pt 1pt 0pt 0pt"
504 colspan=
"<?=(($i == 6 && $vat <= 0) ? $accumulated : $accumulated+1); ?>"
505 <? $accumulated = 0; } ?>>
523 "Всего наименований %s, на сумму %s",
526 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
527 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
536if (in_array(
$GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
array(
"RUR",
"RUB")))
543 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"SHOULD_PAY"],
544 $GLOBALS[
"SALE_INPUT_PARAMS"][
"ORDER"][
"CURRENCY"],
556<b>Условия и комментарии</b>
560 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
562 ),
'',
array(), 0)); ?>
568 array(
'#</div>\s*<div[^>]*>#i',
'#</?div>#i'),
array(
'<br>',
'<br>'),
570 ),
'',
array(), 0)); ?>
583 'style="position: absolute; left: 40pt; "'
587<div
style=
"position: relative">
592 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; text-align: center; ">
603 <tr><td colspan=
"3">&
nbsp;</td></tr>
608 <td
style=
"width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; text-align: center; ">
static GetParamValue($key, $defaultValue=null)
static ShowImage($strImage, $iMaxW=0, $iMaxH=0, $sParams=null, $strImageUrl="", $bPopup=false, $sPopupTitle=false, $iSizeWHTTP=0, $iSizeHHTTP=0, $strImageUrlTemplate="")
static _GetImgParams($strImage, $iSizeWHTTP=0, $iSizeHHTTP=0)
static GetList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
static GetPropsList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
static GetList($arOrder=array("TAX_NAME"=> "ASC"), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> height
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)
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
<? if( $useEditor3):?>< tr class="heading">< td colspan="2"><? echo GetMessage("FILEMAN_OPTION_SPELL_SET");?></td ></tr ><? if(function_exists( 'pspell_config_create')):$use_pspell_checked=(COption::GetOptionString( $module_id, "use_pspell", "Y")=="Y") ? "checked" :"";?>< tr >< td valign="top">< label for="use_pspell"><?echo GetMessage("FILEMAN_OPTION_USE_PSPELL");?></label >< br >< a title="<?echo GetMessage("FILEMAN_OPTION_ADDISH_DICS_TITLE");?> http
ConvertDateTime($datetime, $to_format=false, $from_site=false, $bSearchInSitesOnly=false)
htmlspecialcharsback($str)
HTMLToTxt($str, $strSiteUrl="", $aDelete=[], $maxlen=70)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
<? endif;?> window document title
for( $i=0, $max=count( $arBasketIDs);$i< $max;$i++) if($arOrder['DELIVERY_VAT_RATE'] > 0) if(is_array( $arBasketOrder) &&!empty( $arBasketOrder)) if(floatval($arOrder["DISCOUNT_VALUE"]) > 0) $arTaxList
if($arParams["BUYER_PHONE"]<> '') echo "<br>Телефон<?=$currency;?></td><td nowrap align="center" style="border:1pt solid #000000;"> Сумма
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
if( $arBasket=$dbBasket->Fetch()) if($vat > 0) $rowsCnt
if(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE", false)) $dbBasket
if(CSalePaySystemAction::GetParamValue('BACKGROUND', false)) $margin
SaleFormatCurrency($fSum, $strCurrency, $OnlyValue=false, $withoutFormat=false)
const SALE_VALUE_PRECISION
Number2Word_Rus($source, $IS_MONEY="Y", $currency="")
if(CSalePaySystemAction::GetParamValue("ORDER_SUBJECT", false)) if(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE", false)) if(CSalePaySystemAction::GetParamValue("BUYER_NAME", false)) $arBasketItems
$GLOBALS['_____370096793']