{include file="header.tpl"}

<h3>{t}Preview Ad{/t}</h3>

<table class="form">
<tr>
 <th>{t}Ad:{/t}</th>
 <td>{$ad.type_name}</td>
</tr>
<tr>
 <th>{t}Price:{/t}</th>
 <td><b>${$ad.price}</b>/{t}week{/t}</td>
</tr>
<tr>
 <th>{t}Period:{/t}</th>
 <td>{$ad.period} {t}weeks{/t}</td>
</tr>
{if $ad.discount}
<tr>
 <th>{t}Discount:{/t}</th>
 <td>{$ad.discount}%</td>
</tr>
{/if}

{if $ad.type == 'listings'}
<tr>
 <th>{t}Program:{/t}</th>
 <td>{$ad.listing.name|escape:html}</td>
</tr>

{else} {* type *}

<tr>
 <th>{t}Destination URL:{/t}</th>
 <td><a href="{$ad.url|escape:html}" target=_blank>{$ad.url|escape:html}</a></td>
</tr>
<tr>
 <th>{t}Banner URL:{/t}</th>
 <td><a href="{$ad.banner_url|escape:html}" target=_blank>{$ad.banner_url|escape:html}</a></td>
</tr>
<tr>
 <th>{t}Titile:{/t}</th>
 <td>{$ad.title|escape:html}</td>
</tr>
<tr>
 <th>{t}Text:{/t}</th>
 <td>{$ad.text|escape:html}</td>
</tr>

{/if}  {* type *}

<tr>
 <th>{t}Contact E-mail:{/t}</th>
 <td>{$ad.email|escape:html}</td>
</tr>
<tr>
 <th>{t}Total Price:{/t}</th>
 <td><b>${$ad.amount|number_format:2}</b></td>
</tr>
</table>

{t}Please select payment processing:{/t}
<br>
{assign var="act" value="buy_ads"}
{assign var="memo" value=$ad.memo}
{assign var="amount" value=$ad.amount}
{include file="pay_forms.tpl"}


{include file="footer.tpl"}