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_hosting.tpl
2011-05-03 09:49:04 +10:00

118 lines
4.7 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.prod_plugin == '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>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host}</td>
<td style="width: 65%;">{$list->bool('product_host',$record.host,'" onchange="submit();')}</td>
</tr>
<tr>
<td style="width: 35%;">{osb f=tf field=host_server_id}</td>
<td style="width: 65%;">{$list->menu('no','product_host_server_id','host_server','name',$record.host_server_id,'" onchange="document.product_view.submit();')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host_allow_domain}</td>
<td style="width: 65%;">
{if $record.host_allow_domain == ''}
{$list->bool('product_host_allow_domain','1','form_menu')}
{else}
{$list->bool('product_host_allow_domain',$record.host_allow_domain,'form_menu')}
{/if}
</td>
</tr>
<tr>
<td style="width: 35%;">{osb f=tf field=host_allow_host_only}</td>
<td style="width: 65%;">
{if $record.host_allow_host_only != ''}
{$list->bool('product_host_allow_host_only',$record.host_allow_host_only,'form_menu')}
{else}
{$list->bool('product_host_allow_host_only','0','form_menu')}
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td style="width: 35%;">{osb f=tf field=host_discount_tld}</td>
<td style="width: 65%;">{osb f=tf field=host_discount_tld_amount}</td>
</tr>
<tr>
<td style="width: 35%;"><b>{$list->menu_multi($record.host_discount_tld,'product_host_discount_tld','host_tld','name','5','5','form_menu')}</b></td>
<td style="width: 65%; vertical-align: top;"><input type="text" name="product_host_discount_tld_amt" value="{$record.host_discount_tld_amt}" size="4"/> (example: 0.10 = 10%)</td>
</tr>
</table>
</td>
</tr>
{if ($list->smarty_array('host_server','provision_plugin','','plugin'))}
{foreach from=$plugin item=arr}
{if $record.host_server_id == $arr.id}
<tr valign="top">
<td>
{assign var="afile" value=$arr.provision_plugin}
{assign var="ablock" value="host_provision_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{$block->display($blockfile)}
</td>
</tr>
{/if}
{/foreach}
{/if}
<tr valign="top">
<td>
<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_prod_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}