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

73 lines
3.6 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}
{include file='file:../core/search_show_pre.tpl'}
{translate amount=$total_amount module=invoice}search_result_amount{/translate}<br/>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="25" class="table_heading">&nbsp;</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_account_id{/translate}','account_id'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=service}field_id{/translate}','id'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}XXX{/translate}Next Invoice Date','date_orig'));</script>
</td>
<td class="table_heading">
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_total_amt{/translate}','total_amt'));</script>
</td>
<td class="table_heading" style="width: 120px; text-align: right;">&nbsp;</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$invoice item=record}
<tr id="row{$record.sid}" onClick="row_sel('{$record.sid}',1);" onDblClick="window.location='?_page=service:view&id={$record.sid},';" onMouseOver="row_mouseover('{$record.sid}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.sid}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="25">
<input type="checkbox" name="record{$record.sid}" value="{$record.sid}" onClick="row_sel('{$record.sid}',1,'{$record._C}');"/>
<script type="text/javascript">row_sel('{$record.sid}',0,'{$record._C}'); record_arr[i] = '{$record.sid}'; i++;</script>
</td>
<td>{$record.last_name}, {$record.first_name}</td>
<td>{$record.sid} ({$record.sku})</td>
<td>{$record.invoice_date}</td>
<td><div align="right">{$list->format_currency_num($record.price,$record.billed_currency_id)}&nbsp;</div></td>
<td>
<center>
{if $record.billing_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" border="0" vspace="2" hspace="2"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" border="0" vspace="2" hspace="2"/>
{/if}
{if $record.process_status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" vspace="2" hspace="2"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" vspace="2" hspace="2"/>
{/if}
<a href="?_page=core:search&module=service&service_invoice_id={$record.sid}"><img title=Services src="themes/{$THEME_NAME}/images/icons/tools_16.gif" border="0" alt="Services" vspace="2" hspace="2"/></a>
<a href="?_page=account:view&id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" border="0" vspace="2" hspace="2"/></a>
</center>
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}