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/static_relation/view.tpl

67 lines
2.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} -->
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
2009-08-03 04:10:16 +00:00
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields') }
{/if}
2009-08-03 04:10:16 +00:00
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<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 style="width: 35%;">{osb f=tf field=static_var_id}</td>
<td style="width: 65%;">{$list->menu('no','static_relation_static_var_id','static_var','name',$record.static_var_id,'form_menu')}</td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=module_id}</td>
<td style="width: 65%;">{$list->menu('','static_relation_module_id','module','name',$record.module_id,'form_menu')}</td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=default_value}</td>
<td style="width: 65%;"><textarea name="static_relation_default_value" cols="45" rows="2" >{$record.default_value}</textarea></td>
</tr>
<tr class="row3" valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><textarea name="static_relation_description" cols="45" rows="2" >{$record.description}</textarea></td>
</tr>
<tr class="row4" valign="top">
<td style="width: 35%;">{osb f=tf field=required}</td>
<td style="width: 65%;">{$list->bool('static_relation_required',$record.required)}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 35%;">{osb f=tf field=sort_order}</td>
<td style="width: 65%;"><input type="text" name="static_relation_sort_order" value="{$record.sort_order}" size="3"/></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
2009-08-03 04:10:16 +00:00
{include file='file:../core/view_post.tpl'}
<div>
<input type="hidden" name="_escape" value="1"/>
</div>
</form>
{/if}