112 lines
4.7 KiB
Smarty
112 lines
4.7 KiB
Smarty
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
<!-- Display the form validation -->
|
|
{if $form_validation}
|
|
{$block->display('core:alert_fields')}
|
|
{/if}
|
|
|
|
<!-- tinyMCE -->
|
|
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
|
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
|
|
|
|
<!-- Display the form to collect the input values -->
|
|
<form id="add" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
<tr>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
<tr valign="top">
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td class="row1">
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
<tr valign="top">
|
|
<td style="width: 50%;"><b>{osb f=tf field=sku}</b></td>
|
|
<td style="width: 50%;"><b>{osb f=tf field=name}</b></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 50%;"><input type="text" name="product_sku" value="{$VAR.product_sku}" {if $product_sku == true}class="form_field_error"{/if}/></td>
|
|
<td style="width: 50%;"><input type="text" name="translate_name" value="{$VAR.translate_name}"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 50%;"><b>{osb f=tf field=price_type}</b></td>
|
|
<td style="width: 50%;"><b>{osb f=tf field=avail_category_id}</b></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 50%;">
|
|
<input type="radio" name="product_price_type" value="0" {if $VAR.product_price_type == "0" || $VAR.product_price_type == "" }checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',0,'form_menu')}<br/>
|
|
<input type="radio" name="product_price_type" value="1" {if $VAR.product_price_type == "1"}checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',1,'form_menu')}<br/>
|
|
<input type="radio" name="product_price_type" value="2" {if $VAR.product_price_type == "2"}checked="checked"{/if}/> {$list->menu_staticlist('pricetype','','',2,'form_menu')}
|
|
</td>
|
|
<td style="width: 50%;">{$list->menu_multi($VAR.product_avail_category_id,'product_avail_category_id','product_cat','name','5','5','form_menu')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 50%;">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
|
<tr>
|
|
<td style="width: 50%;"><b>{osb f=tf field=price_base}</b></td>
|
|
<td style="width: 50%;"><b>{osb f=tf field=price_setup}</b></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td style="width: 50%;"><b>{osb f=tf field=taxable}</b></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 50%;">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
|
<tr>
|
|
<td style="width: 50%;"><input type="text" name="product_price_base" value="{$VAR.product_price_base}" {if $product_price_base == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
|
|
<td style="width: 50%;"><input type="text" name="product_price_setup" value="{$VAR.product_price_setup}" {if $product_price_setup == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td style="width: 50%;">
|
|
{if $VAR.product_taxable != ''}
|
|
{$list->bool('product_taxable',$VAR.product_taxable,'form_menu')}
|
|
{else}
|
|
{$list->bool('product_taxable','1','form_menu')}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
|
<tr>
|
|
<td><b>{osb f=tf field=description_short}</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><textarea name="translate_description_short" cols="80" rows="10" class="mce_editable">{$VAR.translate_description_short}</textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>{osb f=tf field=description_full}</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><textarea name="translate_description_full" cols="80" rows="13" class="mce_editable">{$VAR.translate_description_full}</textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
{include file='file:../core/add_tr_submit.tpl'}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div>
|
|
<input type="hidden" name="product_active" value="1"/>
|
|
<input type="hidden" name="product_discount" value="0"/>
|
|
</div>
|
|
</form>
|