git add stuff

This commit is contained in:
Alan
2026-02-14 19:50:25 +03:00
parent 5c3329238b
commit 3942076805
1130 changed files with 120023 additions and 6 deletions

View File

@@ -0,0 +1,265 @@
<!DOCTYPE html>
{*
Печать заказа
*}
{$wrapper='' scope=parent}
<html>
<head>
<base href="{$config->root_url}/"/>
<title>Заказ №{$order->id}</title>
{* Метатеги *}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="{$meta_description|escape}" />
<style>
body {
width: 1000px;
height: 1414px;
/* to centre page on screen*/
margin-left: auto;
margin-right: auto;
//border: 1px solid black;
font-family: Trebuchet MS, times, arial, sans-serif;
font-size: 10pt;
color: black;
background-color: white;
}
div#header{
margin-left: 50px;
margin-top: 50px;
height: 150px;
width: 500px;
float: left;
}
div#company{
margin-right: 50px;
margin-top: 50px;
height: 150px;
width: 400px;
float: right;
text-align: right;
}
div#customer{
margin-right: 50px;
height: 200px;
width: 300px;
float: right;
}
div#customer table{
margin-bottom: 20px;
font-size: 20px;
}
div#map{
margin-left: 50px;
height: 400px;
width: 500px;
float: left;
}
div#purchases{
margin-left: 50px;
margin-bottom: 20px;
min-height: 600px;
width: 100%;
float: left;
}
div#purchases table{
width: 900px;
border-collapse:collapse
}
div#purchases table th
{
font-weight: normal;
text-align: left;
font-size: 25px;
}
div#purchases td, div#purchases th
{
font-size: 18px;
padding-top: 10px;
padding-bottom: 10px;
margin: 0;
}
div#purchases td
{
border-top: 1px solid black;
}
div#total{
float: right;
margin-right: 50px;
height: 100px;
width: 500px;
text-align: right;
}
div#total table{
width: 500px;
float: right;
border-collapse:collapse
}
div#total th
{
font-weight: normal;
text-align: left;
font-size: 22px;
border-top: 1px solid black;
}
div#total td
{
text-align: right;
border-top: 1px solid black;
font-size: 18px;
padding-top: 10px;
padding-bottom: 10px;
margin: 0;
}
div#total .total
{
font-size: 30px;
}
h1{
margin: 0;
font-weight: normal;
font-size: 40px;
}
h2{
margin: 0;
font-weight: normal;
font-size: 24px;
}
p
{
margin: 0;
font-size: 20px;
}
div#purchases td.align_right, div#purchases th.align_right
{
text-align: right;
}
</style>
</head>
<body _onload="window.print();">
<div id="header">
<h1>Заказ №{$order->id}</h1>
<p>от {$order->date|date}</p>
</div>
<div id="company">
<h2>{$settings->site_name}</h2>
<p>{$config->root_url}</p>
</div>
<div id="customer">
<h2>Получатель</h2>
<table>
<tr>
<td>{$order->name|escape} {$order->name2|escape}</td>
</tr>
<tr>
<td>{$order->phone|escape}</td>
</tr>
<tr>
<td>{$order->email|escape}</td>
</tr>
<tr>
<td>
{$order->country|escape}, {$order->region|escape}, {$order->city|escape}, {$order->address|escape}, {$order->index|escape}
</td>
</tr>
<tr>
<td><i>{$order->comment|escape|nl2br}</i></td>
</tr>
</table>
{*
{if $order->note}
<table>
<tr>
<td><h2><i>Примечание менеджера</i></h2><i>{$order->note|escape|nl2br}</i></td>
</tr>
</table>
{/if}
*}
</div>
<div id="map">
<iframe width="550" height="370" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?ie=UTF8&iwloc=near&hl=ru&t=m&z=16&mrt=loc&geocode=&q={$order->address|escape|urlencode}&output=embed"></iframe>
</div>
<div id="purchases">
<table>
<tr>
<th>Товар</th>
<th class="align_right">Цена</th>
<th class="align_right">Количество</th>
<th class="align_right">Всего</th>
</tr>
{foreach from=$purchases item=purchase}
<tr>
<td>
<span class=view_purchase>
{$purchase->product_name} {$purchase->variant_name} {if $purchase->sku} (артикул {$purchase->sku}){/if}
</span>
</td>
<td class="align_right">
<span class=view_purchase>{$purchase->price}</span> {$currency->sign}
</td>
<td class="align_right">
<span class=view_purchase>
{$purchase->amount} {$settings->units}
</span>
</td>
<td class="align_right">
<span class=view_purchase>{$purchase->price*$purchase->amount}</span> {$currency->sign}
</td>
</tr>
{/foreach}
{* Если стоимость доставки входит в сумму заказа *}
{if $order->delivery_price>0}
<tr>
<td colspan=3>{$delivery->name|escape}{if $order->separate_delivery} (оплачивается отдельно){/if}</td>
<td class="align_right">{$order->delivery_price|convert}&nbsp;{$currency->sign}</td>
</tr>
{/if}
</table>
</div>
<div id="total">
<table>
{if $order->discount>0}
<tr>
<th>Скидка</th>
<td>{$order->discount} %</td>
</tr>
{/if}
{if $order->coupon_discount>0}
<tr>
<th>Купон{if $order->coupon_code} ({$order->coupon_code}){/if}</th>
<td>{$order->coupon_discount}&nbsp;{$currency->sign}</td>
</tr>
{/if}
<tr>
<th>Итого</th>
<td class="total">{$order->total_price}&nbsp;{$currency->sign}</td>
</tr>
{if $payment_method}
<tr>
<td colspan="2">Способ оплаты: {$payment_method->name}</td>
</tr>
<tr>
<th>К оплате</th>
<td class="total">{$order->total_price|convert:$payment_method->currency_id}&nbsp;{$payment_currency->sign}</td>
</tr>
{/if}
</table>
</div>
</body>
</html>