{style} {literal} .ow_gift_templates { position: relative; } .ow_gift_templates .ow_gift_wrapper { margin: 0px 0px 4px 4px; cursor: pointer; padding-left: 5px; } .ow_gift_templates .ow_gift_checked { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; background-image: url({/literal}{$themeImagesUrl}{literal}ic_ok.png); background-repeat: no-repeat; } .ow_gift_wrapper { height: 110px; } {/literal} {/style} {script} {literal} var $tpl_list = $(".ow_gift_templates .ow_gift_wrapper"); var $hidden_input = $("input[name=tplId]"); $tpl_list.hover( function(){ $(this).addClass("ow_alt1"); }, function(){ $(this).removeClass("ow_alt1"); } ); $tpl_list.click(function(){ $tpl_list.removeClass('ow_alt2'); $tpl_list.find(".ow_gift_checked").remove(); $(this).append('
'); $(this).addClass('ow_alt2'); $hidden_input.val($(this).find(".ow_gift_helper").attr("rel")); }); var $tabs = $('a[href^=js-call]', '#ow_gift_category_menu'); $tabs.click(function(){ var $this = $(this); $tabs.parent().removeClass('active'); $this.parent().addClass('active'); $('.ow_gift_category').hide(); $('#gift_cat_' + $this.data('tab_content')).show(); }).each(function(){ var command = this.href.split(':'); $(this).data('tab_content', command[1]); $(this).attr('href', 'javascript://'); }); {/literal} {/script}
{if empty($authMessage)} {if $showPrice}
{text key='usercredits+credits_balance'}: {$balance} {text key='usercredits+credits'}
{/if}
{if $catSetup && $menu}{$menu}{/if}
{form name='send-gift-form'}
{if $catSetup} {foreach from=$tpls item='cat' key='id' name='c'} {/foreach} {else} {foreach from=$tpls item='tpl'}
{if $showPrice && $tpl.price}
{$tpl.price} {text key='usercredits+credits'}
{/if}
{/foreach} {/if}
{error name='tplId'}
{text key='virtualgifts+message'} {input name='message' class='ow_gift_message_area'}
{input name='isPrivate'} {label name='isPrivate'}
{submit name='send' class='ow_ic_mail ow_positive'}
{/form} {else}
{$authMessage}
{/if}