2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
|
|
{include file='file:../core/view_pre.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display the field validation -->
|
|
|
|
{if $form_validation}
|
|
|
|
{$block->display('core:alert_fields')}
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Display each record -->
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
2008-11-26 22:50:40 +00:00
|
|
|
|
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="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_orig}</td>
|
|
|
|
<td style="width: 65%;">{$list->date_time($record.date_orig)}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=date_start}</td>
|
|
|
|
<td style="width: 65%;">{$list->calender_view('discount_date_start',$record.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_view('discount_date_expire',$record.date_expire,'form_field')}</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
|
|
<td style="width: 35%;">{osb f=tf field=status}</td>
|
|
|
|
<td style="width: 65%;">{$list->bool('discount_status',$record.status,'" onchange="submit()')}</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="{$record.name}" size="32"/></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" >{$record.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="{$record.max_usage_account}" size="32"/></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="{$record.max_usage_global}" size="32"/></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=$record.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($record.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($record.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($record.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',$record.new_status)}</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',$record.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="{$record.new_rate}" 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="{$record.new_max_discount}" 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="{$record.new_min_cost}" 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',$record.recurr_status)}</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.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="{$record.recurr_rate}" 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="{$record.recurr_max_discount}" 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="{$record.recurr_min_cost}" size="12"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
|
|
</form>
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|