{capture name="title"}{l}Payment for: {$TITLE|escape|trim}{/l}{/capture}
{capture assign="in_page_title"}{l}Link Payment{/l}{/capture}
{capture assign="description"}{l}Submit a new link to the directory{/l}{/capture}

{include file="header.tpl"}

{include file="top_bar2.tpl"}
{strip}


{if empty($ID)}
<div class="err">{l}Invalid link id.{/l}</div>


{else}	
<form method="post" action="">
<div id="bar"><h3>Payment for: {$TITLE|escape|trim}</h3></div>


{if $action eq 'payed'}
<div class="msg">{l}Thank you.{/l} {l}Link submited and awaiting approval.{/l}</div>



{elseif $action eq 'canceled'}
<div class="err">{l}The payment was canceled.{/l}</div>
{/if}


{if $error}
<div class="err">{l}An error occured while saving the link payment data.{/l}</div>
{/if}


<table width="98%" border="0" cellpadding="4" cellspacing="4" align="center">
<tr>
   <td width="20%" class="navbar">{l}Title{/l}:</td>
   <td class="linkshortdesc">{$TITLE|escape|trim}</td>
</tr><tr>
   <td class="navbar">{l}URL{/l}:</td>
   <td class="linkshortdesc">{$URL|escape|trim}</td>
</tr>
<tr>
   <td class="navbar" valign="top">{l}Description{/l}:</td>
   <td class="linkshortdesc" valign="top">{$DESCRIPTION|escape|trim}</td>
</tr>
<tr>
   <td class="navbar">{l}Your Name{/l}:</td>
   <td class="linkshortdesc">{$OWNER_NAME|escape|trim}</td>
</tr>
<tr>
   <td class="navbar">{l}Your Email{/l}:</td>
   <td class="linkshortdesc">{$OWNER_EMAIL|escape|trim}</td>
</tr>

{if $SubscriptionEnabled eq 1}
<tr>
   <td class="navbar" valign="top">{l}Subscribe{/l}</td>
   <td class="linkshortdesc">{html_radios name="subscribe" options=$SubscribeOptions selected=$subscribe separator="<br />"}</td>
</tr>
{/if}


<tr>
   <td class="navbar">{l}Unit price{/l}</td>
   {assign var="um" value="`$smarty.const.PAY_UM`"}
   <td class="linkshortdesc">{$smarty.const.HTML_CURRENCY_CODE} {$price.$LINK_TYPE}/{$payment_um.$um}</td>
</tr>
{if $action eq 'pay'}
<tr>
   <td class="navbar">{l}Quantity{/l}</td>
   <td class="linkshortdesc">
{if $smarty.const.PAY_UM ne 5}
<input type="text" name="quantity" value="{$quantity}" size="10" maxlength="5" class="textpy" />
{else}
{l}n/a{/l}<input type="hidden" name="quantity" value="1" />
{/if}
{validate form="pay_link" id="v_quantity" message=$smarty.capture.field_integer_required}
   </td>
</tr>
<tr>
   <td>&nbsp;</td>
   <td>     <input type="hidden" name="submit" value="1" />
            <input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/x-click-but01.gif" alt="Make payments with PayPal - it's fast, free and secure!"/>
   </td>
</tr>
{/if}
</table>
<br />
</form>
{/if}

{include file="footer.tpl"}
{/strip}