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/discount/add.tpl
2011-05-03 09:49:01 +10:00

178 lines
8.3 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_start}</td>
<td style="width: 65%;">{$list->calender_add('discount_date_start',$VAR.discount_date_start,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
<td style="width: 65%;">{$list->calender_add('discount_date_expire',$VAR.discount_date_expire,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">
{if $VAR.discount_status == ''}
{$list->bool('discount_status',1,'form_menu')}
{else}
{$list->bool('discount_status',$VAR.discount_status,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="discount_name" value="{$VAR.discount_name}" {if $discount_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><textarea name="discount_notes" cols="40" rows="5" {if $discount_notes == true}class="form_field_error"{/if}>{$VAR.discount_notes}</textarea></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="10" class="row2">
<tr>
<td style="text-align: center;"><b>{t}Discount Restrictions & Limitations{/t}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=max_usage_account}</td>
<td style="width: 65%;"><input type="text" name="discount_max_usage_account" value="{$VAR.discount_max_usage_account}" {if $discount_max_usage_account == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=max_usage_global}</td>
<td style="width: 65%;"><input type="text" name="discount_max_usage_global" value="{$VAR.discount_max_usage_global}" {if $discount_max_usage_global == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=avail_account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=discount_avail_account_id default=$VAR.discount_avail_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=avail_product_id}</td>
<td style="width: 65%;">{$list->menu_multi($VAR.discount_avail_product_id,'discount_avail_product_id','product','sku','','10','form_menu')}</td>
</tr>
{if $list->is_installed('host_tld')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=avail_tld_id}</td>
<td style="width: 65%;">{$list->menu_multi($VAR.discount_avail_tld_id,'discount_avail_tld_id','host_tld','name','','10','form_menu')}</td>
</tr>
{/if}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=avail_group_id}</td>
<td style="width: 65%;">{$list->menu_multi($VAR.discount_avail_group_id,'discount_avail_group_id','group','name','','10','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="10" class="row2">
<tr>
<td style="text-align: center;"><b>{t}Settings for new Charges & Orders{/t}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=new_status}</td>
<td style="width: 65%;">{$list->bool('discount_new_status',$VAR.discount_new_status,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=new_type}</td>
<td style="width: 65%;">{$list->menu_staticlist('discounttype','discount_new_type','discount_new_type',$VAR.discount_new_type,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=new_rate}</td>
<td style="width: 65%;"><input type="text" name="discount_new_rate" value="{$VAR.discount_new_rate}" {if $discount_new_rate == true}class="form_field_error"{/if} size="12"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=new_max_discount}</td>
<td style="width: 65%;"><input type="text" name="discount_new_max_discount" value="{$VAR.discount_new_max_discount}" {if $discount_new_max_discount == true}class="form_field_error"{/if} size="12"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=new_min_cost}</td>
<td style="width: 65%;"><input type="text" name="discount_new_min_cost" value="{$VAR.discount_new_min_cost}" {if $discount_new_min_cost == true}class="form_field_error"{/if} size="12"/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="10" class="row2">
<tr>
<td style="text-align: center;"><b>{t}Settings for Recurring Charges{/t}</b></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=recurr_status}</td>
<td style="width: 65%;">{$list->bool('discount_recurr_status',$VAR.discount_recurr_status,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=recurr_type}</td>
<td style="width: 65%;">{$list->menu_staticlist('discounttype','discount_recurr_type','discount_recurr_type',$VAR.discount_recurr_type,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=recurr_rate}</td>
<td style="width: 65%;"><input type="text" name="discount_recurr_rate" value="{$VAR.discount_recurr_rate}" {if $discount_recurr_rate == true}class="form_field_error"{/if} size="12"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=recurr_max_discount}</td>
<td style="width: 65%;"><input type="text" name="discount_recurr_max_discount" value="{$VAR.discount_recurr_max_discount}" {if $discount_recurr_max_discount == true}class="form_field_error"{/if} size="12"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=recurr_min_cost}</td>
<td style="width: 65%;"><input type="text" name="discount_recurr_min_cost" value="{$VAR.discount_recurr_min_cost}" {if $discount_recurr_min_cost == true}class="form_field_error"{/if} size="12"/></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row2">
{include file='file:../core/add_tr_submit.tpl'}
<tr>
<td style="width: 35%;">&nbsp;</td>
<td style="width: 65%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>