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

101 lines
4.9 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/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">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="5%" class="table_heading">&nbsp;</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_sku{/translate}{literal}','sku'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_item_type{/translate}{literal}','item_type'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_product_attr{/translate}{literal}','product_attr'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_price_base{/translate}{literal}','price_base'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_price_setup{/translate}{literal}','price_setup'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_recurring_schedule{/translate}{literal}','recurring_schedule'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_name{/translate}{literal}','domain_name'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_tld{/translate}{literal}','domain_tld'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_term{/translate}{literal}','domain_term'));</script>
{/literal}
</td>
<td width="9.5%" class="table_heading">
{literal}
<script type="text/javascript" language="javascript">document.write(search_heading('{/literal}{translate module=invoice_item}field_domain_type{/translate}{literal}','domain_type'));</script>
{/literal}
</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$invoice_item item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice_item:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');"/>
{literal}
<script type="text/javascript" language="javascript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
{/literal}
</td>
<td>&nbsp;{$record.sku}</td>
<td>&nbsp;{if $record.item_type == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.product_attr}</td>
<td>&nbsp;{$record.price_base}</td>
<td>&nbsp;{$record.price_setup}</td>
<td>&nbsp;{$record.recurring_schedule}</td>
<td>&nbsp;{$record.domain_name}</td>
<td>&nbsp;{$record.domain_tld}</td>
<td>&nbsp;{$record.domain_term}</td>
<td>&nbsp;{$record.domain_type}</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}