2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$block->display('core:top_clean')}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
|
|
{include file='file:../core/view_pre.tpl'}
|
|
|
|
|
|
|
|
<!-- Display the field validation -->
|
|
|
|
{if $form_validation}
|
|
|
|
{$block->display('core:alert_fields')}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" 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 width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=name}</td>
|
|
|
|
<td width="50%"><input type="text" name="product_attr_name" value="{$record.name}" {if $product_attr_name == true}class="form_field_error"{/if} size="45"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=description}</td>
|
|
|
|
<td width="50%"><input type="text" name="product_attr_description" size="45" value="{$record.description}"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top" class="row2">
|
|
|
|
<td width="50%">{osb f=tf field=collect_type}</td>
|
|
|
|
<td width="50%">{osb f=tf field=collect_default}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">
|
|
|
|
<input type="radio" name="product_attr_collect_type" value="0" {if $record.collect_type == "0" || recordproduct_attr.collect_type == "" }checked{/if} />
|
|
|
|
{translate module=product_attr}type_checkbox{/translate}<br/>
|
|
|
|
<input type="radio" name="product_attr_collect_type" value="1" {if $record.collect_type == "1"}checked{/if} />
|
|
|
|
{translate module=product_attr}type_text{/translate}<br/>
|
|
|
|
<input type="radio" name="product_attr_collect_type" value="2" {if $record.collect_type == "2"}checked{/if} />
|
|
|
|
{translate module=product_attr}type_menu{/translate}<br/>
|
|
|
|
<input type="radio" name="product_attr_collect_type" value="3" {if $record.collect_type == "3"}checked{/if} />
|
|
|
|
{translate module=product_attr}type_textarea{/translate}
|
|
|
|
</td>
|
|
|
|
<td width="50%"><textarea name="product_attr_collect_default" cols="40" rows="2">{$record.collect_default}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
{if $record.collect_type != '0' && $record.collect_type != ''}
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{translate module=product_attr}input_req{/translate}</td>
|
|
|
|
<td width="50%">{$list->bool('product_attr_required',$record.required)}</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="50%">{osb f=tf field=price_base}
|
|
|
|
<input type="text" name="product_attr_price_base" value="{$record.price_base}" {if $product_attr_price_base == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="50%">
|
|
|
|
{osb f=tf field=price_setup}
|
|
|
|
<input type="text" name="product_attr_price_setup" value="{$record.price_setup}" {if $product_attr_price_setup == true}class="form_field_error"{/if} size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
|
|
|
<tr>
|
|
|
|
<td><div style="text-align: center;">{osb f=tf field=price_group}</div></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row2">
|
|
|
|
{$list->unserial($record.price_group,'attr_group_array')}
|
|
|
|
{$attr_group_array[$arr.id].price_base}
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}
|
|
|
|
{foreach from=$group_array item=arr}
|
|
|
|
{assign var='idx' value=$arr.id}
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
|
|
|
|
<tr>
|
|
|
|
<td width="150">{$arr.name}</td>
|
|
|
|
<td width="187">
|
|
|
|
{osb f=tf field=price_base}
|
|
|
|
<input type="text" name="product_attr_price_group[{$arr.id}][price_base]" value="{$attr_group_array[$idx].price_base}" size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
<td width="153">
|
|
|
|
{osb f=tf field=price_setup}
|
|
|
|
<input type="text" name="product_attr_price_group[{$arr.id}][price_setup]" value="{$attr_group_array[$idx].price_setup}" size="5"/>
|
|
|
|
{$list->currency_iso('')}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="65%" class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
|
|
<tr valign="middle">
|
|
|
|
<td width="40%" align="left">
|
|
|
|
<a href="?_page=product_attr:add&product_attr_product_id={$record.product_id}&_escape=1&_escape_next=1">{translate module=product_attr}title_add{/translate}</a>
|
|
|
|
</td>
|
|
|
|
<td width="26%">
|
|
|
|
<a href="?_page=core:search_iframe&module=product_attr&product_attr_product_id={$record.product_id}&_next_page_none=add&name_id1=product_attr_product_id&val_id1={$record.product_id}&_escape=1&_escape_next=1&do%5B%5D=product_attr:delete&id={$record.id}">{translate module=product_attr}title_delete{/translate}</a>
|
|
|
|
</td>
|
|
|
|
<td width="34%" align="right"><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
|
|
</form>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|