<form action="cat_edit.php" method="post">
<input type="hidden" name="pflag" value="edit">
<input type="hidden" name="id" value="<%$id%>">
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="tbl_caption" colspan="2">
          Edit Category
        </td>
      </tr>
      <tr class="tbl_light">
        <td width="50%">Name</td>
        <td width="50%"><input type="text" size="40" name="name" value="<%$name%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td>Parent Category</td>
        <td valign="top"><%$parent%></td>
      </tr>
      <tr>
        <td class="tbl_caption" colspan="2">
          Optional
        </td>
      </tr>
      <tr class="tbl_light">
        <td>Related Category
          <div class="explanation">This new category will also appear under this
            selected category with @ sign in the end its category name
          </div>
        </td>
        <td valign="top"><%$related%></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Description</td>
        <td><textarea name="description" cols="40" rows="7"><%$description%></textarea></td>
      </tr>
      <tr class="tbl_light">
        <td>
          Image File
          <div class="explanation">The file name of the image that will appear in front
          of category list. The file location is relatif to user's theme image folder
          (e.g. /themes/default/images/)
          </div>
        </td>
        <td valign="top"><input type="text" size="40" name="image" value="<%$image%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">
          Content
          <div class="explanation">You may use HTML code</div>
        </td>
        <td><textarea name="content" cols="40" rows="7"><%$content%></textarea></td>
      </tr>
      <tr class="tbl_light">
        <td>
          Visible
          <div class="explanation">Do you want this category visible and search-able?
          This option will affect it's sub categories.
          </div>
        </td>
        <td valign="top"><%$visible%></td>
      </tr>
      <tr class="tbl_light2">
        <td>
          Permission
          <div class="explanation">Allow your visitor to submit new or modify an url inside this category
          </div>
        </td>
        <td valign="top"><%$permission%></td>
      </tr>
      <tr class="tbl_light">
        <td>
          Registered users only
          <div class="explanation">Only registered users can view this category.
          This option will affect it's sub categories.
          </div>
        </td>
        <td valign="top"><%$registered_only%></td>
      </tr>
      <tr class="tbl_light2">
        <td>
          Order number
          <div class="explanation">Set order number of this category from 1 to 1000.
          The lower number will be shown first.
          </div>
        </td>
        <td valign="top"><input type="text" size="40" name="order_num" value="<%$order_num%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">
          Meta Keyword
        </td>
        <td><textarea name="meta_keyword" cols="40" rows="7"><%$meta_keyword%></textarea></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">
          Meta Description
        </td>
        <td><textarea name="meta_description" cols="40" rows="7"><%$meta_description%></textarea></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">
          Header
          <div class="explanation">Header in HTML codes that will be used to replace the
          default header.html. By entering HTML codes here, you can
          customize each category pages.
          </div>
        </td>
        <td><textarea name="header" cols="40" rows="7"><%$header%></textarea></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">
          Footer
          <div class="explanation">Footer in HTML codes that will be used to replace the
          default footer.html. By entering HTML codes here, you can
          customize each category pages.
          </div>
        </td>
        <td><textarea name="footer" cols="40" rows="7"><%$footer%></textarea></td>
      </tr>
      <tr class="tbl_light">
        <td>Page Title
        <div class="explanation">This text will appear in window title bar.
        It may help you improve your page rank in search engine. If you leave it blank
        the page title will be the category name.
        </div>
        </td>
        <td valign="top">
          <input type="text" size="40" name="page_title" value="<%$page_title%>" class="textbg">
        </td>
      </tr>
      <tr>
        <td class="tbl_caption" colspan="2">
          Pricing
        </td>
      </tr>
      <tr class="tbl_light">
        <td>Basic Listing
        <div class="explanation">The price for Basic listing under this category.
        No need to include currency symbol.
        </div>
        </td>
        <td valign="top">
          <input type="text" size="6" name="price_basic" value="<%$price_basic%>" class="textbg">
        </td>
      </tr>
      <tr class="tbl_light2">
        <td>Premium Listing
        <div class="explanation">The price for Premium listing under this category.
        No need to include currency symbol.
        </div>
        </td>
        <td valign="top">
          <input type="text" size="6" name="price_premium" value="<%$price_premium%>" class="textbg">
        </td>
      </tr>
      <tr class="tbl_light">
        <td>Sponsored Listing
        <div class="explanation">The price for Sponsored listing under this category.
        No need to include currency symbol.
        </div>
        </td>
        <td valign="top">
          <input type="text" size="6" name="price_sponsored" value="<%$price_sponsored%>" class="textbg">
        </td>
      </tr>
      <tr>
        <td class="tbl_light2" colspan="2" align="center">
          <input type="submit" value="Edit Category" class="button">
          <input type="reset" value="Reset" class="button">
        </td>
      </tr>
    </table>
  </td>
</tr>
</table>
</form>