OSB enhancements to date
This commit is contained in:
72
themes/default/blocks/account_fee/add.tpl
Normal file
72
themes/default/blocks/account_fee/add.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{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%;"><b>{osb f=tf field=name}</b></td>
|
||||
<td style="width: 65%;"><input type="text" name="account_fee_name" value="{$VAR.account_fee_name}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><div style="font-weight: bold; text-align: center;">{t}Group Pricing Structure{/t}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
{assign var=groups_fee_array value=$VAR.account_fee_groups_fee}
|
||||
{foreach from=$list->menu_staticlist('recur_schedule',true,'',0,'') key=key item=schedule}
|
||||
<tr>
|
||||
<td style="width: 20%;">{$list->menu_staticlist('recur_schedule','','',$key,'')}</td>
|
||||
<td>Active {$list->bool("account_fee_groups_fee[$key][show]",$groups_fee_array[$key].show,'form_menu')}</td>
|
||||
<td>
|
||||
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var='idx' value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td style="width: 35%">{$arr.name}</td>
|
||||
<td style="width: 65%">{t}Fee{/t} <input type="text" name="account_fee_groups_fee[{$key}][group][{$arr.id}][fee]" value="{$groups_fee_array[$key].group[$idx].fee}" size="5"/> {$list->currency_iso('')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
{include file='file:../core/add_tr_submit.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
</form>
|
12
themes/default/blocks/account_fee/search_show.tpl
Normal file
12
themes/default/blocks/account_fee/search_show.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
72
themes/default/blocks/account_fee/view.tpl
Normal file
72
themes/default/blocks/account_fee/view.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/view_pre.tpl'}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- 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="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%;"><b>{osb f=tf field=name}</b></td>
|
||||
<td style="width: 65%;"><input type="text" name="account_fee_name" value="{$record.name}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><div style="font-weight: bold; text-align: center;">{t}Group Pricing Structure{/t}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row2">
|
||||
{$list->unserial($record.groups_fee,'groups_fee_array')}
|
||||
{foreach from=$list->menu_staticlist('recur_schedule',true,'',0,'') key=key item=schedule}
|
||||
<tr>
|
||||
<td style="width: 20%;">{$list->menu_staticlist('recur_schedule','','',$key,'')}</td>
|
||||
<td>Active {$list->bool("account_fee_groups_fee[$key][show]",$groups_fee_array[$key].show,'form_menu')}</td>
|
||||
<td>
|
||||
{if ($list->smarty_array('group','name'," AND pricing='1' ",'group_array'))}
|
||||
{foreach from=$group_array item=arr}
|
||||
{assign var='idx' value=$arr.id}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td style="width: 35%">{$arr.name}</td>
|
||||
<td style="width: 65%">{t}Fee{/t} <input type="text" name="account_fee_groups_fee[{$key}][group][{$arr.id}][fee]" value="{$groups_fee_array[$key].group[$idx].fee}" size="5"/> {$list->currency_iso('')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{include file='file:../core/view_tr_submit_delete.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{include file='file:../core/view_post.tpl'}
|
||||
</form>
|
||||
{/if}
|
Reference in New Issue
Block a user