{capture name="title"} - {l}Submit Link{/l}{/capture}
{capture assign="in_page_title"}{l}Submit Link{/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}
<div class="topmid">
   <div class="guidelines"><div></div></div></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="background:#A88F49">
  <tr>
    <td width="14px" class="roundleft">&nbsp</td>

	<td>
<br />
{include file="guideline.tpl"}
</td>

     <td width="14px" class="roundright">&nbsp</td>
</tr>
</table>
   <div class="botmid">
<div class="bottom"><div></div></div>
</div>
<br />

<form method="post" action="">

{if count($price) gt 0}
<div class="topmid">
   <div class="pricing"><div></div></div></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="background:#A88F49">
  <tr>
    <td width="14px" class="roundleft">&nbsp</td>

	<td>

		<table border="0" width="98%" cellspacing="0" cellpadding="0" align="center">
	{if $price.featured}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="featured"{if $LINK_TYPE eq 'featured'} checked="true"{/if} />{l}Featured links{/l}</td><td class="navbar">${$price.featured}</td></tr>
	{/if}
	{if $price.normal gt 0}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="normal"{if $LINK_TYPE eq 'normal'} checked="true"{/if} />{l}Regular links{/l}</td><td class="navbar">${$price.normal}</td></tr>
	{elseif $price.normal eq 0}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="normal"{if $LINK_TYPE eq 'normal'} checked="true"{/if} />{l}Regular links{/l}</td><td class="navbar">{l}free{/l}</td></tr>
	{/if}
	{if $price.reciprocal gt 0}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="reciprocal"{if $LINK_TYPE eq 'reciprocal'} checked="true"{/if} />{l}Regular links with reciprocal{/l}</td><td class="navbar">${$price.reciprocal}</td></tr>
	{elseif $price.reciprocal eq 0}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="reciprocal"{if $LINK_TYPE eq 'reciprocal'} checked="true"{/if} />{l}Regular links with reciprocal{/l}</td><td class="navbar">{l}free{/l}</td></tr>
	{/if}
	{if isset($price.free)}
		<tr><td class="navbar"><input type="radio" name="LINK_TYPE" value="free"{if $LINK_TYPE eq 'free'} checked="true"{/if} />{l}Links with nofollow attribute{/l}</td><td class="navbar">free</td></tr>
	{/if}
	</table>
	{validate form="submit_link" id="v_LINK_TYPE" message=$smarty.capture.field_link_type}

</td>

     <td width="14px" class="roundright">&nbsp</td>
</tr>
</table>
   <div class="botmid">
<div class="bottom"><div></div></div>
</div>
<br />


{/if}

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

{if !empty($sqlError)}
<div class="err">
{$sqlError}
</div>
{/if}

{if $posted}
<div class="msg">
{l}Link submitted and awaiting approval.{/l} {l}Submit another link.{/l}
</div>
{/if}



<div class="topmid">
   <div class="submitsite"><div></div></div></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="background:#A88F49">
  <tr>
    <td width="14px" class="roundleft">&nbsp</td>

	<td>

<table width="550px" border="0" cellpadding="4" cellspacing="4" align="center">
   <tr>
   <td width="10%" align="right" class="navbar"><span class='req'>*</span>{l}Title{/l}:</td>
   <td width="40%">
         <input type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="255" class="text" /><br />
         {validate form="submit_link" id="v_TITLE" message=$smarty.capture.field_char_required}
         {validate form="submit_link" id="v_TITLE_U" message=$smarty.capture.title_not_unique}
      </td>
   </tr>
   <tr>
      <td valign="top" align="right" class="navbar"><span class='req'>*</span>{l}URL{/l}:</td>
      <td>
         <input type="text" name="URL" value="{$URL|escape|trim}" size="40" maxlength="255" class="text"/><br />
         {validate form="submit_link" id="v_URL" message=$smarty.capture.invalid_url}
         {validate form="submit_link" id="v_URL_ONLINE" message=$smarty.capture.url_not_online}
         {validate form="submit_link" id="v_URL_U" message=$smarty.capture.url_not_unique}
      </td>
   </tr>
   <tr>
      <td valign="top" align="right" class="navbar">{l}Description{/l}:</td>
      <td>
         <textarea name="DESCRIPTION" rows="5" cols="45" class="textarea">{$DESCRIPTION|escape|trim}</textarea>
      </td>
   </tr>
   <tr>
      <td valign="top" align="right" class="navbar"><span class='req'>*</span>{l}Your Name{/l}:</td>
      <td>
         <input type="text" name="OWNER_NAME" value="{$OWNER_NAME|escape|trim}" size="40" maxlength="255" class="text" /><br />
         {validate form="submit_link" id="v_OWNER_NAME" message=$smarty.capture.field_char_required}
      </td>
   </tr>
   <tr>
      <td valign="top" align="right" class="navbar"><span class='req'>*</span>{l}Your Email{/l}:</td>
      <td>
         <input type="text" name="OWNER_EMAIL" value="{$OWNER_EMAIL|escape|trim}" size="40" maxlength="255" class="text" /><br />
         {validate form="submit_link" id="v_OWNER_EMAIL" message=$smarty.capture.invalid_email}
      </td>
   </tr>
   <tr>
   <td valign="top" align="right" class="navbar"><span class='req'>*</span>{l}Category{/l}:</td>
      <td>
         {html_options options=$categs selected=$CATEGORY_ID name="CATEGORY_ID"}
         {validate form="submit_link" id="v_CATEGORY_ID" message=$smarty.capture.no_url_in_top}
      </td>
   </tr>
   <tr>
      <td valign="top" align="right" class="navbar">{if $recpr_required}<span class='req'>*</span>{/if}{l}Reciprocal Link URL{/l}:</td>
      <td>
         <input type="text" name="RECPR_URL" value="{$RECPR_URL|escape|trim}" size="40" maxlength="255" class="text" /><br />
         {validate form="submit_link" id="v_RECPR_URL" message=$smarty.capture.invalid_url}
         {validate form="submit_link" id="v_RECPR_ONLINE" message=$smarty.capture.url_not_online}
         {validate form="submit_link" id="v_RECPR_LINK" message=$smarty.capture.recpr_not_found|replace:'#SITE_URL#':$smarty.const.SITE_URL}
         <br />
         <span class="small">{l}To validate the reciprocal link please include the following HTML code in the<br />page at the URL specified above, before submiting this form:{/l}</span>
         <br /><textarea name="RECPR_TEXT" rows="3" readonly="readonly" cols="37" class="textarea" onclick=this.focus();this.select()>&lt;a href="{$smarty.const.SITE_URL}"&gt;{$smarty.const.SITE_NAME}&lt;/a&gt;</textarea>
      </td>
   </tr>

   {if $smarty.const.VISUAL_CONFIRM}
   <tr>
      <td valign="top" align="right" class="navbar"><span class='req'>*</span>{l}Enter the code shown{/l}:</td>
         <td>
            <input type="text" name="CAPTCHA" value="" size="10" maxlength="5" class="textpy" autocomplete="off" /><br />
            {validate form="submit_link" id="v_CAPTCHA" message=$smarty.capture.invalid_code}<br />
            <span class="small">{l}This helps prevent automated registrations.{/l}</span><br />
            <img src="{$smarty.const.DOC_ROOT}/captcha.php" class="box" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
         </td>
   </tr>
   {/if}

   <tr>
	<td>&nbsp;</td>
	<td><input type="submit" name="submit" value="{l}Submit{/l}" class="go" /></td>
   </tr>
</table>

</form>
</td>

     <td width="14px" class="roundright">&nbsp</td>
</tr>
</table>
   <div class="botmid">
<div class="bottom"><div></div></div>
</div>
<br />

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