[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]

[{if $readonly}]
    [{assign var="readonly" value="readonly disabled"}]
[{else}]
    [{assign var="readonly" value=""}]
[{/if}]

<form name="transfer" id="transfer" action="[{$oViewConf->getSelfLink()}]" method="post">
    [{$oViewConf->getHiddenSid()}]
    <input type="hidden" name="oxid" value="[{$oxid}]">
    <input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
</form>

<form name="search" id="search" action="[{$oViewConf->getSelfLink()}]" method="post">
    [{$oViewConf->getHiddenSid()}]
    <input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
    <input type="hidden" name="oxid" value="[{$oxid}]">
    <input type="hidden" name="fnc" value="changeCreditAmount">
    <input type="text" name="creditAmount" value="" placeholder="[{oxmultilang ident="YS_GIFTCERT_NEW_CREDIT"}]">
    <input type="submit" value="[{oxmultilang ident="YS_GIFTCERT_UPDATE_CREDIT"}]">
</form>
<div>
    <div>[{oxmultilang ident="YS_GIFTCERT_CREDITS"}]: [{$edit->oxuser__ys_giftcert_pool_amount->value}]</div>
</div>

<table cellspacing="0" cellpadding="0" border="0" width="98%">
<tr>
    <td class="listheader first">[{oxmultilang ident="YS_ADD_GIFTCERT_MODAL_VALUE_LABEL"}]</td>
    <td class="listheader" height="15">&nbsp;&nbsp;&nbsp;[{oxmultilang ident="YS_GIFTCERT_DATE_USED"}]</td>
    <td class="listheader" height="15">&nbsp;&nbsp;&nbsp;[{oxmultilang ident="YS_REDEEM_GIFTCERT_MODAL_GIFTCERTID_LABEL"}]</td>
</tr>
[{assign var="blWhite" value=""}]
[{foreach from=$oView->getGiftcertLogList() item=listitem}]
<tr>
    [{assign var="listclass" value=listitem$blWhite}]
    <td valign="top" class="[{$listclass}]">[{$listitem.YSAMOUNTUSED}]</td>
    <td valign="top" class="[{$listclass}]">[{$listitem.YSDATEUSED}]</td>
    <td valign="top" class="[{$listclass}]">[{$listitem.YSGIFTCERTNR}]</td>
</tr>
[{if $blWhite == "2"}]
[{assign var="blWhite" value=""}]
[{else}]
[{assign var="blWhite" value="2"}]
[{/if}]
[{/foreach}]
</table>


[{include file="bottomnaviitem.tpl"}]

[{include file="bottomitem.tpl"}]
