{include file="$gentemplates/$header_tpl"}
	<script type="text/javascript" src="{$site_root}{$template_root}/js/location.js"></script>
	<div class="ecards_orders">		
		<h2>{$card.card_header}
                    <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>
		<div>
			<div class="preview">					
				<div class="float_left"><img src="{$card.image}"></div>
				<div class="float_left" style="width:28%;">
					<div style="background-color: #ffffff; z-index: 10; padding: 10px; margin-{$default_left}: 25px; border: 1px solid #cccccc;">
						<div class="wysiwyg_content">{$card.message}</div>
					</div>
					<div style="margin-{$default_left}: 25px; padding-top: 10px;">
						<b>{$lang.cards.price}:&nbsp;{if $card.price ne '0.00'}{$card.price}&nbsp;{$form.cur}{else}&nbsp;{$lang.cards.price_free}{/if}</b>
					</div>
					<div style="margin-{$default_left}: 25px; padding-top: 17px;">
						<a href="#" onclick="launchWindow('{$site_root}/{$seo.ecards}','sel=select_user&id_order={$card.id_order}&price={$card.price}',757,540); return false;">{$lang.cards.select_user}</a>
					</div>
					<div id="result_div" style="padding-top: 15px; margin-{$default_left}: 25px;">
					{if $card.user_to_id >0}
						<div style="padding: 10px; background-color: #cccccc;width: 194px;">
							<img src="{$card.user_to_icon_path}" class="icon" />
							<b>{$card.user_to_login}</b>, {$card.user_to_age} {$lang.home_page.ans}
						</div>
						{if $card.price ne '0.00'}
						<div style="padding-top: 5px;">
							<input type="button" onclick="document.location.href='{$site_root}/{$seo.ecards}?sel=order_form&id_order={$card.id_order}&id_user_to={$card.user_to_id}'" value="{$lang.button.confirm_and_send}">
						</div>
						{else}
						<div style="padding-top: 5px;">
							<input type="button" onclick="document.location.href='{$site_root}/{$seo.ecards}?sel=pay_free&id_order={$card.id_order}&id_user_to={$card.user_to_id}'" value="{$lang.button.confirm_and_send}">
						</div>
						{/if}
						{/if}
					</div>
				</div>
			</div>
			{if $card.song_url}
			<div style="padding-top: 15px;">
				<span id="player1" align="absmiddle">
					<script type="text/javascript">
						var fv = "file={$card.song_url}&autostart="+false+"&title={$card.song_name|escape}&lightcolor=0xD12627&repeat=true";
						{literal}var FO = {{/literal}
							movie:"{$site_root}/include/mp3player/mp3player.swf",width:"300",height:"20",majorversion:"7",build:"0",bgcolor:"#FFFFFF", flashvars:fv
						{literal}};{/literal}
						UFO.create(FO, "player1");
					</script>
				</span>
			</div>
			{/if}
		</div>
	</div>
{include file="$gentemplates/$footer_tpl"}