{style} {literal} .ow_gift_templates { height: 250px; overflow-y: auto; position: relative; } .ow_gift_templates .ow_gift_wrapper { margin: 0px 0px 4px 9px; cursor: pointer; } .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; } {/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")); }); {/literal} {/script}
{if empty($authMessage)} {if $showPrice}
{text key='usercredits+credits_balance'}: {$balance} {text key='usercredits+credits'}
{/if} {form name='send-gift-form'}
{if $catSetup} {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'}
{/form} {else}
{$authMessage}
{/if}