File: /home/temp/yarusvl.ru/adminx/tpls/html/order_pdf.tpl
<!DOCTYPE html>
{$wrapper='' scope=parent}
<html>
<head>
<base href="{$config->root_url}/"/>
<title>{$btr->general_order_number|escape} {$order->id}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
body {
font-family: DejaVu Sans;
font-size: 10px;
}
div#customer table{
margin-bottom: 20px;
}
div#purchases table{
width: 800px;
border-collapse:collapse;
margin: 10px;
}
div#purchases table th
{
font-weight: normal;
text-align: left;
}
div#purchases td, div#purchases th
{
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;
border-top: 1px solid black;
}
div#total td
{
border-top: 1px solid black;
padding-top: 10px;
padding-bottom: 10px;
margin: 0;
text-align: left;
}
div#total .total
{
}
</style>
</head>
<body>
<div id="header">
<h1>{$btr->general_order_number|escape} {$order->id}</h1>
<p>{$btr->order_print_from|escape} {$order->date|date}</p>
</div>
<div id="company">
<h2>{$settings->site_name|escape}</h2>
<p>{$config->root_url}</p>
</div>
{*Информация о клиенте*}
<div id="customer">
<h2>{$btr->order_print_recipient|escape}</h2>
<table width="100%">
<tr>
<td>{$order->name|escape}</td>
</tr>
<tr>
<td>{$order->phone|escape}</td>
</tr>
<tr>
<td>{$order->email|escape}</td>
</tr>
<tr>
<td>{$order->address|escape}</td>
</tr>
<tr>
<td><i>{$order->comment|escape|nl2br}</i></td>
</tr>
{if !empty($user->org)}
<tr>
<td><i>{$user->org|escape}, {$user->inn|escape}</i></td>
</tr>
{/if}
{if !empty($order->org)}
<tr>
<td><i>{$order->org|escape}, {$order->inn|escape}</i></td>
</tr>
{/if}
</table>
{if $order->note}
<table width="100%">
<tr>
<td><h2><i>{$btr->order_note|escape}</i></h2><i>{$order->note|escape|nl2br}</i></td>
</tr>
</table>
{/if}
</div>
<div id="map">
</div>
{*Информация о заказе*}
<div id="purchases">
<table width="100%" border="1">
<tr>
<th class="align_right">#</th>
<th style="max-width: 45%; width:500px; >{$btr->order_print_product|escape}</th>
<th class="align_right">{$btr->general_amt|escape}</th>
<th class="align_right">{$btr->general_price|escape}</th>
<th class="align_right">{$btr->order_print_total|escape}</th>
</tr>
{assign var=product_count value=1}
{foreach $purchases as $purchase}
<tr>
<td class="align_right" style="font-size: 11px;">
<span class="view_purchase">
{$product_count}
</span>
</td>
<td style="max-width: 35%;" style="font-size: 10px;">
<span class=view_purchase>
{$purchase->product_name|escape} {$purchase->variant_name|escape} {if $purchase->sku} ({$btr->general_sku|escape} {$purchase->sku|escape}){/if}
</span>
</td>
<td class="align_right" style="font-size: 11px;">
<span class=view_purchase>
{$purchase->amount} {if $purchase->units}{$purchase->units|escape}{else}{$settings->units|escape}{/if}
</span>
</td>
<td class="align_right" style="font-size: 11px;">
<span class=view_purchase>{$purchase->price}</span> {$currency->sign|escape}
</td>
<td class="align_right" style="font-size: 11px;">
<span class=view_purchase>{$purchase->price*$purchase->amount}</span> {$currency->sign|escape}
</td>
</tr>
{capture assign=product_count}{$product_count+1}{/capture}
{/foreach}
{* Если стоимость доставки входит в сумму заказа *}
{if $order->delivery_price>0}
<tr>
<td colspan=3>{$delivery->name|escape}{if $order->separate_delivery} ({$btr->general_paid_separately|escape}){/if}</td>
<td class="align_right">{$order->delivery_price|convert:$currency->id} {$currency->sign|escape}</td>
</tr>
{/if}
</table>
</div>
<div id="total">
<table width="100%">
{if $order->discount>0}
<tr>
<th>{$btr->general_discount|escape}</th>
<td>{$order->discount} %</td>
</tr>
{/if}
{if $order->coupon_discount>0}
<tr>
<th>{$btr->general_coupon|escape} {if $order->coupon_code} ({$order->coupon_code}){/if}</th>
<td>{$order->coupon_discount} {$currency->sign|escape}</td>
</tr>
{/if}
<tr>
<th>{$btr->general_total|escape}</th>
<td class="total">{$order->total_price|convert:$currency->id} {$currency->sign|escape}</td>
</tr>
{if $payment_method}
<tr>
<td colspan="2">{$btr->order_print_payment|escape} {$payment_method->name}</td>
</tr>
<tr>
<td colspan="2">Способ доставки: {$delivery->name|escape}</td>
</tr>
<tr>
<th>{$btr->order_to_pay|escape}</th>
<td class="total">{$order->total_price|convert:$payment_method->currency_id} {$payment_currency->sign}</td>
</tr>
{/if}
</table>
</div>
</body>
</html>