{include file="$gentemplates/$header_tpl"}
	<div class="ecards_cards_edit">
		<h2>{$card.name}
                    <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>
			<form action="{$site_root}/{$seo.ecards}?sel=save_card" method="POST">
				<input type="hidden" name="id_song" id="id_song" value="{$data.id_song}">
				<input type="hidden" name="id_card" id="id_card" value="{$card.id}">
				{if $data.id_order}<input type="hidden" name="id_order" value="{$data.id_order}">{/if}
				<dl>
					<dd width="100" class="text_head">{$lang.cards.card_image}:&nbsp;</dd>
					<dt>
						<a href="#" onclick="launchWindow('{$site_root}/{$seo.ecards}','sel=show_card&par={$card.image_big}&title= {$cards[c].name}',550,420); return false;"><img src="{$card.image}" width="100" height="100" border="0" alt=""></a>
					</dt>
				</dl>
				<dl>
					<dd class="text_head">{$lang.cards.price}:&nbsp;</dd>
					<dt>{if $card.price ne '0.00'}{$card.price}&nbsp;{$form.cur}{else}&nbsp;{$lang.cards.price_free}{/if}</dt>
				</dl>
				<dl>
					<dd class="text_head">{$lang.cards.card_header}:&nbsp;</dd>
					<dt>
                        <input type="text" name="card_header" id="card_header" onkeyup="BadWords('card_header');" value="{$data.card_header}" style="width: 300px;"/>
					    <div style="width: 500px;" id="bad_div_card_header" class="bad_div_left"></div>                        
                    </dt>
				</dl>
				<dl>
					<dd class="text_head">{$lang.cards.message}:&nbsp;</dd>
					<dt>
						{*$editor*}
						{$redactor}
						<textarea name="message" id="redactor" class="redactor_normal"></textarea>
						<div style="width: 500px;" id="bad_div_redactor" class="bad_div_left"></div>
                    </dt>
				</dl>
				<dl>
					<dd class="text_head">{$lang.cards.card_music}:&nbsp;</dd>
					<dt><span id="song_span">{$data.song_name}</span>&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="launchWindow('{$site_root}/{$seo.ecards}?sel=choose_music','',600,800); return false;">{$lang.button.choose}</a>
                    </dt>
				</dl>
				<dl>
					<dd></dd>
					<dt><input type="submit" value="{$lang.button.save}"></dt>
				</dl>
			</form>
		</div>
	</div>
    
<script type="text/javascript">
{literal}
$(document).ready(function(){
   /*$('iframe').contents().find('iframe').contents().find('body').keyup(function(event){
        alert(event.keyCode);
    
   });*/
   $('body[spellcheck="false"]').keyup(function(event){
        alert(event.keyCode);
    
   });
   $('iframe').contents().find('iframe').contents().find('body').html();
    
})
{/literal}
</script>
{include file="$gentemplates/$footer_tpl"}