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

103 lines
4.4 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/view_pre.tpl'}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=bill_to_company}</td>
<td width="50%">{$list->bool('setup_invoice_bill_to_company',$record.bill_to_company)}</td>
</tr>
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=invoice_currency}</td>
<td width="50%"><input type="text" name="setup_invoice_invoice_currency" value="{$record.invoice_currency}" size="32"/></td>
</tr>
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=invoice_decimals}</td>
<td width="50%"><input type="text" name="setup_invoice_invoice_decimals" value="{$record.invoice_decimals}" size="32"/></td>
</tr>
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=items_summary_max}</td>
<td width="50%"><input type="text" name="setup_invoice_items_summary_max" value="{$record.items_summary_max}" size="32"/></td>
</tr>
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=news}</td>
<td width="50%"><textarea name="setup_invoice_news" cols="50" rows="4">{$record.news}</textarea></td>
</tr>
<tr class="row0" valign="top">
<td width="50%">{osb f=tf field=page_type}</td>
<td>{osb f=html_menu_files name=setup_invoice_page_type path=invoice_pagetype default=$record.page_type}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="50%">{osb f=tf field=invoice_delivery}</td>
<td width="50%">
<select name="setup_invoice_invoice_delivery">
<option value="0" {if $record.invoice_delivery =="0"}selected{/if}>None</option>
<option value="1" {if $record.invoice_delivery =="1"}selected{/if}>E-mail</option>
<option value="2" {if $record.invoice_delivery =="2"}selected{/if}>Print</option>
</select>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{osb f=tf field=invoice_show_itemized}</td>
<td>{$list->bool('setup_invoice_invoice_show_itemized',$record.invoice_show_itemized)}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{osb f=tf field=invoice_pdf_plugin}</td>
<td>{osb f=html_menu_files name=setup_invoice_invoice_pdf_plugin path=invoice_pdf default=$record.invoice_pdf_plugin}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{osb f=tf field=invoice_show_service_dates}</td>
<td>{$list->bool('setup_invoice_invoice_show_service_dates',$record.invoice_show_service_dates)}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{osb f=tf field=invoice_advance_gen}</td>
<td><input name="setup_invoice_invoice_advance_gen" type="text" value="{$record.invoice_advance_gen}" size="3" maxlength="2"/></td>
</tr>
<tr class="row1" valign="middle" align="left">
<td>{osb f=tf field=advance_notice}</td>
<td><input name="setup_invoice_advance_notice" type="text" value="{$record.advance_notice}" size="3" maxlength="2"/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr class="row1">
{include file='file:../core/view_td_submit.tpl'}
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}