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

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

    <!-- main content here -->

    <br />

    <form action="upgrade.php" method="post">
    <input type="hidden" name="pflag" value="upgrade" />
    <input type="hidden" name="link_id" value="<%$link_id%>" />

    <%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">Upgrade a Listing</td>
    </tr>
    <tr class="tbl_normal">
      <td>Resource ID</td>
      <td><%$link_id%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Title</td>
      <td><%$title%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Url</td>
      <td><a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a></td>
    </tr>
    <tr class="tbl_normal">
      <td valign="top">Description</td>
      <td><%$description%></td>
    </tr>
    <tr class="tbl_normal">
      <td valign="top">Category</td>
      <td><%$category_path_with_link%></td>
    </tr>
    <tr class="tbl_normal">
      <td>Contact Name</td>
      <td><%$contact_name%></td>
    </tr>
    <tr class="tbl_normal">
      <td valign="top">Current Listing Type</td>
      <td>
        <%if $premium%>
          Premium Listing
        <%/if%>
        <%if $sponsored%>
          Sponsored Listing
        <%/if%>
        <%if not $premium && not $sponsored%>
          Basic Listing
        <%/if%>
        <%if $premium || $sponsored%>
          (Lasting date: <%$expire|date_format%>)
        <%/if%>
      </td>
    </tr>
    <tr class="tbl_normal">
      <td>Upgrade Listing Type</td>
      <td>
        <select name="periodprice">
        
        <%if !$sponsored%>
          <%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%>
        <%/if%>

        <%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_caption">
      <td colspan="2">
        <center>
        <input type="submit" name="submit" value="Submit" />
        </center>
      </td>
    </tr>
    </table>

    </form>
    
    <br />
    <br />




    <!-- end of main content -->

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

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