{include file="header.tpl"}

<h3>Preview Ad</h3>

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

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

{else} {* type *}

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

{/if}  {* type *}

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

Please select payment processing:
<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"}