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/invoice/search_show.tpl

46 lines
2.1 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,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
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="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td>{$record.id}</td>
<td>{$record.last_name}, {$record.first_name}</td>
<td>{$list->date($record.date_orig)}</td>
<td>{$list->date($record.due_date)}</td>
<td style="text-align: right;">{$list->format_currency_num($record.total_amt, $record.billed_currency_id)}</td>
<td style="text-align: center;">
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="Status" title="Status" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" alt="Status" title="Status" style="border: 0px;"/>
{/if}
{if $record.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Status" title="Process" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Status" title="Process" style="border: 0px;"/>
{/if}
<a href="?_page=core:search&amp;module=service&amp;service_invoice_id={$record.id}"><img src="themes/{$THEME_NAME}/images/icons/tools_16.gif" alt="Services" title="Services" style="border: 0px;"/></a>
<a href="?_page=account:view&amp;id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="Account" title="Account" style="border: 0px;"/></a>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
2009-08-03 04:10:16 +00:00
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}