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_associations.tpl

118 lines
5.9 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
2009-08-03 04:10:16 +00:00
<form id="association" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +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="3" class="row1">
<tr>
<td colspan="2">{t}Product(s) Required for access to this Product{/t}</td>
</tr>
<tr>
<td style="width: 85%;" valign="top">
<input type="radio" name="product_assoc_req_prod_type" value="0" {if $record.assoc_req_prod_type == "0"}checked="checked"{/if}/>
{$list->menu_staticlist('assoc_prod_type','','product_assoc_req_prod_type',0,'form_menu',false)}<br/>
<input type="radio" name="product_assoc_req_prod_type" value="1" {if $record.assoc_req_prod_type == "1"}checked="checked"{/if}/>
{$list->menu_staticlist('assoc_prod_type','','product_assoc_req_prod_type',1,'form_menu',false)}
</td>
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_req_prod,'product_assoc_req_prod','product','sku','10','10','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
<tr class="row2">
<td style="width: 85%;" valign="top">{t}Purchasing This Product Grants Access to the Following Product(s){/t}</td>
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_grant_prod,'product_assoc_grant_prod','product','sku','10','10','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td colspan="3">{t}Purchasing This Product Grants Access to the Following Group(s){/t}</td>
</tr>
<tr>
<td style="width: 85%;" valign="top">
<input type="radio" name="product_assoc_grant_group_type" value="0" {if $record.assoc_grant_group_type == "0"}checked="checked"{/if}/>
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',0,'form_menu',false)}
<input type="text" name="product_assoc_grant_group_days" value="{$record.assoc_grant_group_days}" size="3"/><br/>
<input type="radio" name="product_assoc_grant_group_type" value="1" {if $record.assoc_grant_group_type == "1"}checked="checked"{/if}/>
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',1,'form_menu',false)}<br/>
<input type="radio" name="product_assoc_grant_group_type" value="2" {if $record.assoc_grant_group_type == "2"}checked="checked"{/if}/>
{$list->menu_staticlist('assoc_grant_type','','product_assoc_grant_group_type',2,'form_menu',false)}
</td>
<td style="width: 15%; text-align=right;" valign="top">{$list->menu_multi($record.assoc_grant_group,'product_assoc_grant_group','group','name','10','10','form_menu')}</td>
</tr>
</table>
</td>
</tr>
{if $record.price_type == '1'}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
<tr>
<td style="width: 85%;" valign="top">{t}Allow Modification of Service?{/t} {$list->bool('product_price_recurr_modify',$record.price_recurr_modify,'" onChange="document.forms.product_view.submit()')}
<!--
{translate module=product}field_modify_waive_setup{/translate}
{$list->bool('product_modify_waive_setup',$record.modify_waive_setup,'form_menu')}
-->
</td>
<td style="width: 15%; text-align=right;" valign="top">
{if $record.host == 1}
{osb f=html_menu_product_host name="product_modify_product_arr" default=$record.modify_product_arr exclude=$record.id size=10}
{else}
{osb f=html_menu_product_subscription name="product_modify_product_arr" default=$record.modify_product_arr exclude=$record.id size=10}
{/if}
</td>
</tr>
</table>
</td>
</tr>
{/if}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
<tr>
<td valign="middle" align="right"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="do[]" value="product:update"/>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="id" value="{$record.id}"/>
<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_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_prod_plugin_data" value="IGNORE-ARRAY-VALUE"/>
<input type="hidden" name="product_group_avail" value="IGNORE-ARRAY-VALUE"/>
</div>
</form>
{/if}