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/user_search_show.tpl

71 lines
2.3 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} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
2009-08-03 04:10:16 +00:00
{$method->exe('invoice','has_unpaid')}
{if $has_unpaid}
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><div style="text-align: center;">{t}You presently have unpaid invoices totaling:{/t} <b>{$has_unpaid}</b>.</div></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
2009-08-03 04:10:16 +00:00
{include file='file:../core/user_search_show_pre.tpl'}
2009-08-03 04:10:16 +00:00
<!-- BEGIN THE RESULTS CONTENT AREA -->
<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.id}</td>
<td>{$list->date_time($record.date_orig)}</td>
<td><div style="text-align: right">{$list->format_currency_num($record.total_amt, $record.actual_billed_currency_id)}</div></td>
<td style="text-align: center">
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" alt="" style="border: 0px;"/>
{/if}
&nbsp;
{if $record.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="" style="border: 0px;"/>
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
2009-08-03 04:10:16 +00:00
</form>
</div>
2009-08-03 04:10:16 +00:00
<div>
<br/>
{if $has_unpaid}<input value="{t}Pay Selected{/t}" type="button" onclick="mass_do('',module+':checkout_multiple',limit,module);"/>{/if}
<input type="submit" name="Submit" value="{t}View{/t}" onclick="mass_do('',module+':user_view',limit,module);"/>
</div>
{/if}