Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/create_product_form.tpl
{if $msg_pro==""}{else}
<div style="clear:both; padding:10px;"></div>
<span id="msg_small">{$msg_pro}</span>
<div style="clear:both; padding:10px;"></div>
{/if}
<form method="post" name="add_product_form" enctype="multipart/form-data" >
<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->

<div id="demo" class="yui-navset">

    <ul class="yui-nav" style="font-size:11px;">
        <li class="selected"><a href="#tab1"><em>General Info</em></a></li>
        <li><a href="#tab2"><em>Brand &amp; Categories</em></a></li>
        <li><a href="#tab3"><em>Type</em></a></li>
        <li><a href="#tab4"><em>Product Attributes</em></a></li>
        <li><a href="#tab5"><em>Variants &amp; Stock</em></a></li>
        <li><a href="#tab6"><em>Cross Selling</em></a></li>
        <li><a href="#tab7"><em>Related products</em></a></li>
        <li><a href="#tab8"><em>Images</em></a></li>

    </ul>            
    <div class="yui-content" style="background-color:#F3F3F3">
      <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
 <tr>
    <td colspan="2">
</td>
</tr>
  <tr>
    <td width="151">Product Name</td>
    <td ><input id="product_name" name="product_name" type="text" />
</td>
  </tr>
  <tr>
    <td>Product Code (SKU)</td>
    <td><input id="product_code" name="product_code" type="text"></td>
  </tr>
  <tr>
    <td>Product Status</td>
    <td><input id="product_status" name="product_status" type="radio" value="online" checked="checked"> Online <input id="product_status" name="product_status" type="radio" value="offline"> Offline</td>
  </tr>
  <tr>
    <td>Taxable</td>
    <td><input id="taxable" name="taxable" type="radio" value="yes"> Yes <input id="taxable" name="taxable" type="radio" value="no" checked="checked"> No</td>
  </tr>
  <tr>
    <td height="97">Product Description</td>
    <td><textarea name="product_description" cols="60" rows="5" id="product_description"></textarea></td>
  </tr>
  <tr>
    <td height="90">Product Features</td>
    <td><textarea name="product_overview" cols="60" rows="5" id="product_overview"></textarea></td>
  </tr>
  <tr>
    <td>Product Price $</td>
    <td><div style=" margin-top:5px; margin-bottom:5px; padding:5px; background-color:#D6D6D6; border:1px solid #ccc; width:400px;">$<input id="product_price" name="product_price" type="text" value="0"><br />
Now $<input id="product_deal_price" name="product_deal_price" type="text" value="0">
    (Use this if you want to create special offer e.g. Was <span style="text-decoration:line-through;">$19.99</span> <strong>Now $15.99</strong>)</div></td>
  </tr>
  <tr>
    <td>Featured</td>
    <td><input id="is_featured" name="is_featured" type="radio" value="yes"> 
    Yes 
      <input id="is_featured" name="is_featured" type="radio" value="no" checked="checked"> No</td>
  </tr>
  <tr>
    <td>Clearence</td>
    <td><input id="is_clearence" name="is_clearence" type="radio" value="yes"> 
    Yes 
      <input id="is_clearence" name="is_clearence" type="radio" value="no" checked="checked"> No</td>
  </tr>
  <tr>
    <td>New Arrival</td>
    <td><input id="is_new" name="is_new" type="radio" value="yes"> 
    Yes 
      <input id="is_new" name="is_new" type="radio" value="no" checked="checked"> No</td>
  </tr>
  <tr>
    <td>On Special</td>
    <td><input id="is_special" name="is_special" type="radio" value="yes"> 
    Yes 
      <input id="is_special" name="is_special" type="radio" value="no" checked="checked"> No</td>
  </tr>
  <tr>
    <td>Tags<br />
Please enter product tags or common prases separated by coma (,). This will gives better search results</td>
    <td><textarea id="tags" name="tags" cols="60" rows="5" class="irTextarea"></textarea>
    <div id="available_tags_box">{include file="available_tags.tpl"}</div></td>
  </tr>
  </table>
  </div>
  <div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
   <tr>
    <td colspan="2" class="section_header"><img src="images/icons/images.png" title="Brands" align="absmiddle" /> Select Product Brand</td>
  </tr>
  <tr>
    <td>Brand</td>
    <td><div id="update_brand_box" style="width:80%; float:left; ">{include file="brand_select_box.tpl"}</div></a></td>
  </tr>
  <tr>
    <td colspan="2" class="section_header"><img src="images/icons/bricks.png" title="Categories" align="absmiddle" /> Select Product Categories</td>
  </tr>
  <tr>
    <td colspan="2"><div id="update_cat_box" style="width:100%; float:left; height:300px; overflow:auto; border:1px solid #ccc;">{include file="category_select_box.tpl"}</div></a><div id="inline_add_cat_box" style="display:none;">{include file="inline_add_cat_form.tpl"}</div></td>
  </tr>
  </table></div>
  
  <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <!-- <tr>
    <td colspan="2"><input id="stock_variant_group_id" name="stock_variant_group_id" type="hidden" value="{$stock_variant_group_id}" /><input id="variant_level_stock" name="variant_level_stock" type="checkbox" value="yes" /> Do you want to allow stock management at product variant level? <img src="images/icons/help.png" title="Help" align="absmiddle" /> </td>
  </tr>
  <tr>
    <td colspan="2"><br />The following variant group is available for variant level stock management</td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">{include file="stock_level_variant.tpl"}</td>
  </tr>
  -->
   <tr>
    <td width="151">Product Type</td>
    <td>
    <select id="product_type" name="product_type">
    	<option value="physical">Physical</option>
        <option value="service">Service</option>
        <!-- <option value="downloadable">Digital / Downladable</option> -->
    </select></td>
  </tr>
  </table></div>
  
  
        <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  
  <tr>
    <td colspan="2" class="section_header"><img src="images/icons/color_swatch.png" title="Attributes" align="absmiddle" /> Select Product Attributes</td>
  </tr>
  <tr>
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td width="151" valign="top"><div id="attribute_set_id">
{section name=all_attribute_set loop=$all_attribute_set}
<div style="padding-top:5px; padding-bottom:1px;"><a href="javascript:setAttributeSet({$all_attribute_set[all_attribute_set].set_id});">{$all_attribute_set[all_attribute_set].attribute_set_name} Attributes</a></div>
{/section}
</div></td>
    <td valign="top"><div id="update_list_attribute_value_box">
{include file='list_attribute_set_values.tpl'}
<br /></div>
<div id="inline_add_attribute_box" style="display:none;">{include file="inline_add_attribute_form.tpl"}</div><br /></td>
  </tr>
</table></td>
</tr>
</table>
        </div>
      <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td class="section_header" colspan="2"><img src="images/icons/database_add.png" title="Quantity" align="absmiddle" /> Variants and Stock Options</td>
  </tr>
  
  <tr>
    <td width="151">Stock Options</td>
    <td>
    <select id="stock_options" name="stock_options" onchange="showStockBoxes(this.value)">
    <option value="no_stock_level">Do not use stock levels</option>
    <option value="product_based_stock_level">Use Product-based stock levels</option>
    <option value="variant_based_stock_level">Use Variant-based stock levels</option>
    </select>
    </td>
  </tr>
  <tr id="availability_box" style="display:;">
    <td width="151">Availability</td>
    <td>
    <select id="availability" name="availability">
    <option value="in_stock" selected="selected">In Stock</option>
    <option value="not_in_stock">Not In Stock</option>
    </select>
    </td>
  </tr>
  <tr id="current_stock_level_box" style="display:none;">
    <td width="151">Current Stock Level</td>
    <td><input id="product_qty" name="product_qty" type="text"  size="10" value="1" /></td>
  </tr>
   <tr>
    <td colspan="2">
</td>
  </tr>
  
  <tr id="variant_list_stock_heading" style="display:none;">
    <td class="section_header" colspan="2"><img src="images/icons/wrench.png" title="Variants" align="absmiddle" /> Select Variant to Stock</td>
  </tr>
  <!-- 
  <tr>
    <td colspan="2"><input id="variant_level_stock" name="variant_level_stock" type="checkbox" value="yes" /> Allow stock management at variant level?
</td>
  </tr>
  
  -->
  
  
  <tr id="variant_list_stock_box" style="display:none;">
    <td width="151">Select variant to stock</td>
    <td>
    {include file="list_variants_for_stock.tpl"}
    </td>
  </tr>
  <tr>
    <td class="section_header" colspan="2"><img src="images/icons/tag_blue.png" title="Variants" align="absmiddle" /> Select Product Variants</td>
  </tr>
  <tr>
    <td colspan="2"><div id="product_variant_box">{include file="add_product_list_variants.tpl"}</div></td>
  </tr>
  </table></div>
        <div>  
   <table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td class="section_header" colspan="2"><img src="images/icons/arrow_switch.png" title="Cross selling" align="absmiddle" /> Select Cross-Selling Products</td>
  </tr>
  <tr>
    <td colspan="2"><div id="cross-selling-products" style="overflow:auto; height:200px;">{include file="promo_list_all_products.tpl"}</div></td>
  </tr>
  </table></div>
        <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td class="section_header" colspan="2"><img src="images/icons/arrow_in.png" title="Related products" align="absmiddle" /> Select Related Products</td>
  </tr>
  <tr>
    <td colspan="2"><div id="related-products" style="overflow:auto; height:200px;">{include file="related_list_all_products.tpl"}</div></td>
  </tr>
   </table></div>
        <div><table width="100%" border="0" cellspacing="0" cellpadding="0" id="irForm">
   
  <tr>
    <td class="section_header" colspan="2"><img src="images/icons/photos.png" title="Images" align="absmiddle" /> Upload Product Images</td>
  </tr>
    <tr>
    <td colspan="2"><div id="update_list_image_upload">
{include file='list_image_upload.tpl'}
</div></td>
  </tr>
  
  
</table></div>

    </div>
</div>
{literal}
<script>
(function() {
    var tabView = new YAHOO.widget.TabView('demo');

    YAHOO.log("The form has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "form");

})();


</script>
{/literal}
<!--END SOURCE CODE FOR EXAMPLE =============================== -->
<input name="btn_create" id="btn_create" type="submit" value="Create" class="irBtnCreate" />

</form>
Return current item: Simple PHP Shopping cart - asaancart