{include file="header.tpl"}


{if $display == 'payform'}

<b>{t}To upgrade your listing please make payment{/t} (${$type_fee}):</b>

{assign var="act" value="upgrade"}
{assign var="memo" value="Listing Upgrade"}
{assign var="amount" value=$type_fee}

{include file="pay_forms.tpl"}

{else}

<h3>Upgrade {$listing.name|escape:html}</h3>

<table class="form nosize">
<thead>
<tr>
 <td>Group</td>
 <th>{t}Activation{/t}</th>
 <th>{t}Reinvestment{/t}</th>
 <th>{t}Total Fee{/t}</th>
 <th>{t}Upgrade{/t}</th>
</tr>
</thead>
{foreach from=$groups item=g}
<tr>
 <th>{$g.name}</th>
 <td>${$g.upgrade.activation|number_format:2}</td>
 <td>${$g.upgrade.reinvest|number_format:2}</td>
 <td><b>${$g.upgrade.activation+$g.upgrade.reinvest|number_format:2}</b></td>
 <td><a href="{"?a=add&display=upgrade&lid=`$listing.id`&action=upgrade&type=`$g.id`"|encurl}">{t}Upgrade{/t}</a></td>
</tr>
{/foreach}
</table>

{/if}

{include file="footer.tpl"}