2010-11-29 22:41:08 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2010-11-29 22:41:08 +00:00
|
|
|
{$method->exe($meth.0,'view')}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
2008-11-26 22:50:40 +00:00
|
|
|
{else}
|
2010-11-29 22:41:08 +00:00
|
|
|
{include file='file:../core/view_pre.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2010-11-29 22:41:08 +00:00
|
|
|
{if $record.host == '1'}
|
|
|
|
{t}Both hosting and product plugins cannot be configured for the same product.{/t}
|
|
|
|
{else}
|
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2010-11-29 22:41:08 +00:00
|
|
|
<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="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
|
|
|
<tr>
|
|
|
|
<td style="width: 50%;">{t}Enable Product Plugins?{/t}</td>
|
|
|
|
<td style="width: 50%;">{$list->bool('product_prod_plugin',$record.prod_plugin,'" onchange="submit();')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 50%;">{t}Plugin to Enable{/t}</td>
|
|
|
|
<td style="width: 50%;">{$list->menu_files('','product_prod_plugin_file',$record.prod_plugin_file,'product','','.php','" onchange="submit();')}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{if $record.prod_plugin && $record.prod_plugin_file != ''}
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="row1">
|
|
|
|
{assign var="afile" value=$record.prod_plugin_file}
|
|
|
|
{assign var="ablock" value="product_plugin:plugin_prod_"}
|
|
|
|
{assign var="blockfile" value="$ablock$afile"}
|
|
|
|
{$block->display($blockfile)}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
<tr valign="top">
|
|
|
|
<td class="row1">
|
|
|
|
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
|
|
|
<tr>
|
|
|
|
{include file='file:../core/view_td_submit.tpl'}
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
|
|
<div>
|
|
|
|
<input type="hidden" name="product_price_base" value="{$record.price_base}"/>
|
|
|
|
<input type="hidden" name="product_sku" value="{$record.sku}"/>
|
|
|
|
<input type="hidden" name="product_avail_category_id" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_assoc_req_prod" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_assoc_grant_prod" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_assoc_grant_group" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_price_group" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_host_discount_tld" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_host_provision_plugin_data" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
<input type="hidden" name="product_modify_product_arr" value="IGNORE-ARRAY-VALUE"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|