Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/create_cat_form.tpl
<form action="add_cat.php" enctype="multipart/form-data" method="post">
{if $total_edit_cat>0}
{section name=cat_edit_list loop=$cat_edit_list}
<table width="700" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td width="151">Category Name</td>
    <td><input id="category_name" name="category_name" type="text" class="irInput" value="{$cat_edit_list[cat_edit_list].category_name}" /><input id="category_id" name="category_id" type="hidden" class="irInput" value="{$cat_edit_list[cat_edit_list].category_id}" /></td>
  </tr>
  <tr>
    <td>Category Description</td>
    <td><textarea id="category_description" name="category_description" class="irTextarea">{$cat_edit_list[cat_edit_list].category_description}</textarea><br />
</td>
  </tr>
   <tr>
    <td>Category Thumb Image</td>
    <td><input name="category_thumb_image" type="file" id="category_thumb_image"  class="irInput"/><br />
    
    <img src="../category_images/{$cat_edit_list[cat_edit_list].category_thumb_image}" width="200" />
</td>
  </tr>
    <tr>
    <td>Category Full Image</td>
    <td><input name="category_full_image" type="file" id="category_full_image"  class="irInput"/><br />
     <img src="../category_images/{$cat_edit_list[cat_edit_list].category_full_image}" width="200" />
</td>
  </tr>
  <tr>
    <td></td>
    <td><input name="btn_submit" id="btn_submit" type="submit" value="Save"  class="irBtnSave" />
      <br />
</td>
  </tr>
</table>
{/section}
{else}
<table width="700" border="0" cellspacing="0" cellpadding="0" id="irForm">
<tr>
    <td width="151" height="40">Select Parent Category</td>
    <td height="40"><div id="cat_list_select">{include file="cat_list_select_box.tpl"}</div></td>
  </tr>
  <tr>
    <td width="151">Category Name</td>
    <td><input id="category_name" name="category_name" type="text" class="irInput" /></td>
  </tr>
  <tr>
    <td>Category Description</td>
    <td><textarea id="category_description" name="category_description" class="irTextarea"></textarea><br />
</td>
  </tr>
   <tr>
    <td>Category Thumb Image</td>
    <td><input name="category_thumb_image" type="file" id="category_thumb_image"  class="irInput"/><br />
</td>
  </tr>
    <tr>
    <td>Category Full Image</td>
    <td><input name="category_full_image" type="file" id="category_full_image"  class="irInput"/><br />
</td>
  </tr>
  <tr>
    <td></td>
    <td><input name="btn_submit" id="btn_submit" type="submit" value="Create"  class="irBtnCreate" />
      <br />
</td>
  </tr>
</table>
{/if}
</form>
Return current item: Simple PHP Shopping cart - asaancart