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

40 lines
1.3 KiB
Smarty

{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/user_search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/user_search_show_tr_record.tpl'}
<td>{$record.name}</td>
<td>{$list->bool('',$record.status,'')}</td>
<td>
{$list->bool('',$record.new_status,'')}
{if $record.new_status == '1'}
({if $record.new_type == 0}{math equation="x * y" x=$record.new_rate y=100}%{else}{$list->format_currency($record.new_rate,'')}{/if})
{/if}
</td>
<td>
{$list->bool('',$record.recurr_status,'')}
{if $record.recurr_status == '1'}
({if $record.recurr_type == 0}{math equation="x * y" x=$record.recurr_rate y=100}%{else}{$list->format_currency($record.recurr_rate,'')}{/if})
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</form>
</div>
{/if}