{include file="$gentemplates/$header_tpl"}
<h2>{$lang.cards.section}
<!--ins onclick="javascript:location.href='{$form.file_name}?sel=my_orders';" class="sub_icon" style="padding-top: 10px; margin-top: -25px;" title="{$lang.button.view}">
	<a class="basket" href="{$form.file_name}?sel=my_orders" title="{$lang.cards.my_orders}">&nbsp;</a>
	<a href="{$form.file_name}?sel=my_orders" style="font-size: 13px;">{$lang.cards.my_orders}</a>
</ins-->
<a href="{$form.file_name}?sel=my_orders" style="font-size: 13px;margin-top:7px;" class="float_right">{$lang.cards.my_orders}</a>
<div class="float_right">&nbsp;</div>
<a onclick="javascript:location.href='{$form.file_name}?sel=my_orders';" class="basket float_right" title="{$lang.button.view}">&nbsp;</a>

</h2>
	{if $most_ordered}
	<div class="ecards">
		<h3 class="p-b5">{$lang.cards.most_popular}</h3>
		<div>
			{foreach item=item from=$most_ordered name=s}
				<div class="popular_images" {if $smarty.foreach.s.last}style="width: 110px;"{/if}>
					<div style="margin-right:3px;">
						<a href="{$site_root}/{$seo.ecards}?sel=card&id_card={$item.item_id}">
							<img class="imgcanvas" src="{$item.card_image_thumb}" width="100" height="100" border="0">
						</a>
					</div>
					<div class="popular_img_text">{$item.card_name}</div>
				</div>
			{/foreach}
		</div>
	</div>
	{/if}
	<div class="ecards">
            <h3 class="p-b5">{$lang.cards.ecards_categories}</h3>
            <div class="categories">
			{section name=c loop=$categories start=0 max=$form.categories_1_limit}			
				<div class="block">
					<div class="image_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}">
							<img class="imgcanvas" src="{$categories[c].card_image}" width="100px" height="100px" border="0">
						</a>
					</div>
					<div class="text_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}" class="text_head">
							{$categories[c].name}
						</a>
						&nbsp;<font class="text_hidden">({$categories[c].cards_count})</font><br />
						<p>
						{$categories[c].subcategories}
						</p>
					</div>
				</div>
			{/section}
		</div>
		<div class="categories">
			{section name=c loop=$categories start=$form.categories_2_start max=$form.categories_2_limit}			
				<div class="block">
					<div class="image_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}">
							<img class="imgcanvas" src="{$categories[c].card_image}" width="100px" height="100px" border="0">
						</a>
					</div>
					<div class="text_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}" class="text_head">
							{$categories[c].name}
						</a>
						&nbsp;<font class="text_hidden">({$categories[c].cards_count})</font><br />
						<p>
							{$categories[c].subcategories}
						</p>
					</div>
				</div>
			{/section}
		</div>
		<div class="categories">
			{section name=c loop=$categories start=$form.categories_3_start}	
				<div class="block">
					<div class="image_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}">
							<img class="imgcanvas" src="{$categories[c].card_image}" width="100px" height="100px" border="0">
						</a>
					</div>
					<div class="text_categories">
						<a href="{$form.file_name}?sel=category&id_category={$categories[c].id}" class="text_head">
							{$categories[c].name}
						</a>
						&nbsp;<font class="text_hidden">({$categories[c].cards_count})</font><br />
						<p>
						{$categories[c].subcategories}
						</p>
					</div>
				</div>
			{/section}
		</div>
	</div>
{include file="$gentemplates/$footer_tpl"}