<%include file="header.html"
          title="Add a Listing"
          meta_keywords=""
          meta_description=""
%>

    </td>
  </tr>
  <tr>
    <td>
    <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar.js"></script>
    <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar-en.js"></script>
    <script language="javascript" type="text/javascript" src="<%$tpl_base%>/calendar-setup.js"></script>
    <script language="javascript" type="text/javascript" src="<%$tpl_base%>/json.js"></script>
    <script language="javascript" type="text/javascript" src="<%$tpl_base%>/ajax.js"></script>

    <!-- main content here -->

    <br />

    <form action="add.php" method="post" enctype="multipart/form-data" name="add_frm">
    <input type="hidden" name="pflag" value="add" />

    <%if $error_msg%>
    <center><p><font color="Red"><b><%$error_msg%></b></font></p></center>
    <%/if%>

    <table cellpadding="4" cellspacing="1" border="0" align="center" width="100%" class="tbl_border">
    <tr>
      <td class="tbl_caption" colspan="2">
        Add a Listing
      </td>
    </tr>
    <tr class="tbl_normal">
      <td>Title</td>
      <td><input class="text3" type="text" name="title" size="40" value="<%$title%>" /></td>
    </tr>
    <tr class="tbl_normal">
      <td>Url</td>
      <td>
        <input class="text3" type="text" name="url" size="40" value="<%$url%>" />
        <input type="button" name="fetch_meta" value="Fetch Meta Tags" onclick="FetchMeta(); return false;" />
      </td>
    </tr>
    <tr class="tbl_normal">
      <td valign="top">Description</td>
      <td><textarea class="text3" name="description" cols="40" rows="10" style="overflow: auto;"><%$description%></textarea></td>
    </tr>
    <tr class="tbl_normal">
      <td>Category</td>
      <td><%$category%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Additional Category 1</td>
      <td><%$add_cat1%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Additional Category 2</td>
      <td><%$add_cat2%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Contact Name</td>
      <td><input  class="text3" type="text" name="contact_name" size="40" value="<%$contact_name%>" /></td>
    </tr>
    <tr class="tbl_normal">
      <td>Keywords</td>
      <td><input class="text3" type="text" name="keywords" size="40" value="<%$keywords%>" /></td>
    </tr>
    <tr class="tbl_normal">
      <td>Email</td>
      <td><input class="text3" type="text" name="email" size="40" value="<%$email%>" /></td>
    </tr>
    <tr class="tbl_normal">
      <td>Reciprocal URL</td>
      <td><input class="text3" type="text" name="reciprocal_url" size="40" value="<%$reciprocal_url%>" /></td>
    </tr>

    <!-- remove <%$custom_field_form%> if you want to generate field manualy -->
    <%$custom_field_form%>

    <tr class="tbl_normal">
      <td>Listing Type</td>
      <td>
        <select name="periodprice">
        <option value="BASIC|0|<%$basic_listing_price%>" selected="selected">
          Basic Listing
          <%if ($basic_listing_price) > 0%>
          (<%$currency_symbol%> <%$basic_listing_price%>, one time inclusion fee)
          <%else%>
          (FREE)
          <%/if%>
        </option>

        <%section name=i loop=$premium_listing_period%>
        <option value="PREMIUM|<%$premium_listing_period[i].period%>|<%$premium_listing_period[i].price%>" <%$premium_listing_period[i].selected%>>
          Premium Listing (<%$premium_listing_period[i].period%> days, <%$currency_symbol%> <%$premium_listing_period[i].price%>)
          <%if ($premium_listing_period[i].disc) > 0%>
          disc. <%$premium_listing_period[i].disc%>%, you save <%$currency_symbol%> <%$premium_listing_period[i].save%>
          <%/if%>
        </option>
        <%/section%>

        <%section name=i loop=$sponsored_listing_period%>
        <option value="SPONSORED|<%$sponsored_listing_period[i].period%>|<%$sponsored_listing_period[i].price%>" <%$sponsored_listing_period[i].selected%>>
          Sponsored Listing (<%$sponsored_listing_period[i].period%> days, <%$currency_symbol%> <%$sponsored_listing_period[i].price%>)
          <%if ($sponsored_listing_period[i].disc) > 0%>
          disc. <%$sponsored_listing_period[i].disc%>%, you save <%$currency_symbol%> <%$sponsored_listing_period[i].save%>
          <%/if%>
        </option>
        <%/section%>

        </select>
      </td>
    </tr>
    <tr class="tbl_normal">
      <td valign="top">Payment Gateway</td>
      <td><%$available_payment_systems%></td>
    </tr>

    <tr class="tbl_normal">
      <td><img src="captcha.php" alt="" /></td>
      <td><input class="text3" type="text" name="captcha_key" size="40" value="" /></td>
    </tr>
    <tr class="tbl_caption">
      <td colspan="2">
        <center>
        <input type="submit" name="submit" value="Submit your website" />
        </center>
      </td>
    </tr>
    </table>

    </form>

    <br />
    <br />

    <!-- end of main content -->

    </td>
  </tr>
  <tr>
    <td>

<%include file="footer.html"%>