{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}

		
{if $smarty.const.REQUIRE_REGISTERED_USER == 1 and empty($regular_user_details.ID)}
<div class="navbar">
{l}You must be logged in to submit a new link.{/l} {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Register now!{/l}</a>
</div>
{else}

<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 width="100%" align="center">
   {if $price.featured}
      <tr><td><input type="radio" name="LINK_TYPE" value="featured" {if $LINK_TYPE eq 'featured'}checked="true"{/if}>{l}Featured links{/l}</td><td>{$smarty.const.HTML_CURRENCY_CODE}{$price.featured}</td></tr>
   {/if}
   {if $price.normal gt 0}
      <tr><td><input type="radio" name="LINK_TYPE" value="normal" {if $LINK_TYPE eq 'normal'}checked="true"{/if}>{l}Regular links{/l}</td><td>{$smarty.const.HTML_CURRENCY_CODE}{$price.normal}</td></tr>
   {elseif $price.normal eq 0}
      <tr><td><input type="radio" name="LINK_TYPE" value="normal" {if $LINK_TYPE eq 'normal'}checked="true"{/if}>{l}Regular links{/l}</td><td>{l}free{/l}</td></tr>
   {/if}
   {if $price.reciprocal gt 0}
      <tr><td><input type="radio" name="LINK_TYPE" value="reciprocal" {if $LINK_TYPE eq 'reciprocal'}checked="true"{/if}>{l}Regular links with reciprocal{/l}</td><td>{$smarty.const.HTML_CURRENCY_CODE}{$price.reciprocal}</td></tr>
   {elseif $price.reciprocal eq 0}
      <tr><td><input type="radio" name="LINK_TYPE" value="reciprocal" {if $LINK_TYPE eq 'reciprocal'}checked="true"{/if}>{l}Regular links with reciprocal{/l}</td><td>{l}free{/l}</td></tr>
   {/if}
   {if isset($price.free)}
      <tr><td><input type="radio" name="LINK_TYPE" value="free" {if $LINK_TYPE eq 'free'}checked="true"{/if}>{l}Links with nofollow attribute{/l}</td><td>free</td></tr>
   {/if}
   </table></div>
   {validate form="submit_link" id="v_LINK_TYPE" message=$smarty.capture.field_link_type}
   {if isset($AllowedFeat) and $AllowedFeat ne 1}
      <br /><span class="errForm">{l}No more featured links allowed for this category.{/l}</span>
   {/if}
</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 $double_review && !$posted}
<div class="err">{$double_review}</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%" class="navbar"><span class='req'>*</span>{l}Title{/l}:</td>
   <td width="40%">
      <input type="text" name="TITLE" value="{$TITLE|escape|trim}" size="50" maxlength="{$smarty.const.TITLE_MAX_LENGTH}" class="text" /><br />
      {validate form="submit_link" id="v_TITLE" message=$smarty.capture.field_char_required}
      {if $review_link == 0 || $remove_link == 0}
         {validate form="submit_link" id="v_TITLE_U" message=$smarty.capture.title_not_unique}
      {/if}
      {validate form="submit_link" id="v_TITLE_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.TITLE_MIN_LENGTH|replace:'#MAX#':$smarty.const.TITLE_MAX_LENGTH}
   </td>
  </tr>
  <tr>
   <td class="navbar"><span class='req'>*</span>{l}URL{/l}:</td>
   <td class="field">
      <input type="text" name="URL" value="{$URL|escape|trim}" size="50" 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}
      {if $smarty.const.ALLOW_MULTIPLE eq 1}
         {validate form="submit_link" id="v_URL_U" message=$smarty.capture.domain_not_unique_categ}
      {else}
         {validate form="submit_link" id="v_URL_U" message=$smarty.capture.domain_not_unique}
      {/if}
   </td>
  </tr>
  <tr>
   <td valign="top" class="navbar">{l}Description{/l}:</td>
   <td class="field">
      <textarea name="DESCRIPTION" rows="4" cols="39" class="textarea" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea><br />
      {validate form="submit_link" id="v_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.DESCRIPTION_MAX_LENGTH}
      <br />
      {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" />
   </td>
  </tr>

   {if $smarty.const.ENABLE_META_TAGS eq 1 and $smarty.const.ENABLE_USER_META_TAGS eq 1}
   <tr>
      <td valign="top" class="navbar">{l}META Keywords{/l}:</td>
      <td class="field">
        <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="50" maxlength="1024" class="text" /><br />
        <p class="small">{l}Separate keywords by comma.{/l}</p>
      </td>
   </tr>
   <tr>
      <td valign="top" class="navbar">{l}META Description{/l}:</td>
      <td class="field">
         <textarea name="META_DESCRIPTION" rows="4" cols="39" class="textarea" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea><br />
         {validate form="submit_link" id="v_META_DESCRIPTION_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.DESCRIPTION_MIN_LENGTH|replace:'#MAX#':$smarty.const.DESCRIPTION_MAX_LENGTH}
         <br />
         {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" />
      </td>
   </tr>
   {/if}

   {if $smarty.const.REQUIRE_REGISTERED_USER == 0 || empty($regular_user_details.ID)}
   <tr>
      <td class="navbar"><span class='req'>*</span>{l}Your Name{/l}:</td>
      <td class="field">
         <input type="text" name="OWNER_NAME" value="{$OWNER_NAME|escape|trim}" size="50" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" /><br />
         {validate form="submit_link" id="v_OWNER_NAME" message=$smarty.capture.field_char_required}
         {validate form="submit_link" id="v_OWNER_NAME_LENGTH" message=$smarty.capture.invalid_length|replace:'#MIN#':$smarty.const.USER_NAME_MIN_LENGTH|replace:'#MAX#':$smarty.const.USER_NAME_MAX_LENGTH}
      </td>
   </tr>
   <tr>
      <td class="navbar"><span class='req'>*</span>{l}Your Email{/l}:</td>
      <td class="field">
         <input type="text" name="OWNER_EMAIL" value="{$OWNER_EMAIL|escape|trim}" size="50" maxlength="255" class="text" /><br />
		 {validate form="submit_link" id="v_OWNER_EMAIL_BANNED" message=$smarty.capture.email_banned}
         {validate form="submit_link" id="v_OWNER_EMAIL" message=$smarty.capture.invalid_email}
      </td>
   </tr>
   {/if}

   <tr>
   <td class="navbar" valign="top"><span class='req'>*</span>{l}Category{/l}:</td>
   <td class="field">
      {* Load category selection *}
      {include file="category_select.tpl"}
   </td>
   </tr>

   {if $ShowReciprField == 1}
   <tr>
   <td valign="top" class="navbar">{if $recpr_required}<span class='req'>*</span>{/if}{l}Reciprocal Link URL{/l}:</td>
   <td class="field">
   
      <input type="text" name="RECPR_URL" value="{$RECPR_URL|escape|trim}" size="50" 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.DEFAULT_RECPR_URL}
      <br />
      <p>{l}To validate the reciprocal link please include the following<br />HTML code in the page at the URL specified above, before<br />submiting this form:{/l}</p>
	  <textarea name="RECPR_TEXT" rows="2" readonly="readonly" cols="50" class="textarea" onclick=this.focus();this.select()>&lt;a href="{$smarty.const.DEFAULT_RECPR_URL}"&gt;{$smarty.const.DEFAULT_RECPR_TITLE}&lt;/a&gt;</textarea>
 
   </td>
   </tr>
   {/if}

   {if $remove_link}
   <tr>
   <td class="navbar">{l}Mark for removal{/l}:</td>
   <td class="field">
      <input type="checkbox" id="MARK_REMOVE" name="MARK_REMOVE" /><span class="small">{l}Use with caution{/l}</span>
   </td>
   </tr>
   {/if}

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

   </td>
   </tr>
   {/if}

   <tr>
      <td>&nbsp;</td>
      <td align="left">
         {if !$review_link and !$remove_link}
            <input type="submit" name="submit" value="{l}Submit{/l}" />
         {else}
            <input type="submit" name="edit" value="{l}Submit{/l}" />
         {/if}
      </td>
  </tr>
<tr>
   <td>&nbsp;</td>
   <td align="left"><img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/PayPal.logo.gif" alt="Sponsored link Payment via PayPal - it's fast, free and secure!"></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 />

{/if}


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