105 lines
5.4 KiB
Smarty
105 lines
5.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 valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=supplier_id}</td>
|
|
<td style="width: 65%;">{$record.supplier_id}.{$record.id}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=product_id}</td>
|
|
<td style="width: 65%;"><input type="text" name="adsl_product_id" value="{$record.product_id}" {if $adsl_product_id == true}class="form_field_error"{/if} size=16 /></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=product_desc}</td>
|
|
<td style="width: 65%;"><input type="text" name="adsl_product_desc" value="{$record.product_desc}" {if $adsl_product_desc == true}class="form_field_error"{/if} size=60 /></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=status}</td>
|
|
<td style="width: 65%;">{$list->bool('adsl_status',$record.status)}</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
<tr>
|
|
<td>{osb f=tf field=base_cost}</td>
|
|
<td><input type="text" name="adsl_base_cost" value="{$record.base_cost}" {if $adsl_base_cost == true}class="form_field_error"{/if}/></td>
|
|
<td>{osb f=tf field=contract_term}</td>
|
|
<td><input type="text" name="adsl_contract_term" value="{$record.contract_term}" {if $adsl_contract_term == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=base_down_peak}</td>
|
|
<td><input type="text" name="adsl_base_down_peak" value="{$record.base_down_peak}" {if $adsl_base_down_peak == true}class="form_field_error"{/if}/></td>
|
|
<td>{osb f=tf field=base_up_peak}</td>
|
|
<td><input type="text" name="adsl_base_up_peak" value="{$record.base_up_peak}" {if $adsl_base_up_peak == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=base_down_offpeak}</td>
|
|
<td><input type="text" name="adsl_base_down_offpeak" value="{$record.base_down_offpeak}" {if $adsl_base_down_offpeak == true}class="form_field_error"{/if}/></td>
|
|
<td>{osb f=tf field=base_up_offpeak}</td>
|
|
<td><input type="text" name="adsl_base_up_offpeak" value="{$record.base_up_offpeak}" {if $adsl_base_up_offpeak == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=extra_charged}</td>
|
|
<td>{$list->bool('adsl_extra_charged',$record.extra_charged)}</td>
|
|
<td>{osb f=tf field=extra_shaped}</td>
|
|
<td><input type="text" name="adsl_extra_shaped" value="{$record.extra_shaped}" {if $adsl_extra_shaped == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=offpeak_start}</td>
|
|
<td><input type="text" name="adsl_offpeak_start" value="{$record.offpeak_start|date_format:"%H:%M"}" {if $adsl_offpeak_start == true}class="form_field_error"{/if} size=5/></td>
|
|
<td>{osb f=tf field=offpeak_end}</td>
|
|
<td><input type="text" name="adsl_offpeak_end" value="{$record.offpeak_end|date_format:"%H:%M"}" {if $adsl_offpeak_end == true}class="form_field_error"{/if} size=5/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=extra_down_peak}</td>
|
|
<td><input type="text" name="adsl_extra_down_peak" value="{$record.extra_down_peak}" {if $adsl_extra_down_peak == true}class="form_field_error"{/if}/></td>
|
|
<td>{osb f=tf field=extra_up_peak}</td>
|
|
<td><input type="text" name="adsl_extra_up_peak" value="{$record.extra_up_peak}" {if $adsl_extra_up_peak == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{osb f=tf field=extra_down_offpeak}</td>
|
|
<td><input type="text" name="adsl_extra_down_offpeak" value="{$record.extra_down_offpeak}" {if $adsl_extra_down_offpeak == true}class="form_field_error"{/if}/></td>
|
|
<td>{osb f=tf field=extra_up_offpeak}</td>
|
|
<td><input type="text" name="adsl_extra_up_offpeak" value="{$record.extra_up_offpeak}" {if $adsl_extra_up_offpeak == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
</form>
|
|
{/if}
|