This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/product/iframe_plugins.tpl
2011-05-03 09:49:04 +10:00

76 lines
3.0 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{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">
<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}
{/if}