{include file="$gentemplates/$header_tpl"}
	<div class="ecards_orders">
			<h2>{$lang.cards.my_orders}</h2>
			
			{*if $paid eq 1}
				<div><font class="error_msg">*&nbsp;{$lang.cards.successfully_sent}</font></div>
			{/if*}
			
			{if $orders}
				{if $links_top}
				<div style="display:table;width:100%;padding: 15px 0;">
					{include file="$gentemplates/pagination_top.tpl"}
				</div>			
				{/if}
				<div class="orders_table">					
					<dl>
						<dt><b>{$lang.cards.admin.order.card_header}</b></dt>
						<dt><b>{$lang.cards.admin.order.card_price}</b></dt>
						<dt><b>{$lang.cards.admin.order.recipient}</b></dt>
						<dt><b>{$lang.cards.admin.order.card_image}</b></dt>
						<dt><b>{$lang.cards.admin.order.order_status}</b></dt>
						<dt><b>{$lang.cards.admin.order.remove_card}</b></dt>
					</dl>
					{foreach item=item from=$orders}
					<dl>
						<dd>{$item.card_header}</dd>
						<dd>{$item.card_price}&nbsp;{$form.cur}</dd>
						<dd><a href="{$item.profile_link}" target="_blank">{$item.user_to_login}</a></dd>
						<dd>
							<a href="#" onclick="launchWindow('{$site_root}/{$seo.ecards}','sel=show_card&par={$item.card_image_big}',550,420); return false;">
								<img src="{$item.card_image_thumb}" height="100" width="100" class="imgcanvas">
							</a>
						</dd>
						<dd>
							{if $item.status eq 'temped'}
								<a href="{$site_root}/{$seo.ecards}?sel=card&id_order={$item.id_order}&id_card={$item.id_card}">
							{/if}
								{$item.status_lang}
							{if $item.status eq 'temped'}</a>{/if}
						</dd>
						<dd class="text" style="margin-top: 9px;">
							{if $item.status eq 'temped'}
								<a href="{$site_root}/{$seo.ecards}?sel=del_order&id_order={$item.id_order}" title="{$lang.cards.alt_remove_card}" class="delete-icon" >&nbsp;</a>
							{else}&nbsp;
							{/if}
						</dd>
					</dl>
					{/foreach}
				</div>
				{include file="$gentemplates/pagination_bottom.tpl"}
			{/if}
	</div>
{include file="$gentemplates/$footer_tpl"}