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

87 lines
3.8 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 valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">{$list->date($record.date_orig)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_last}</td>
<td style="width: 65%;">{$list->date($record.date_last)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sort_order}</td>
<td style="width: 65%;"><input type="text" name="static_page_sort_order" value="{$record.sort_order}" size="5"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_start}</td>
<td style="width: 65%;">{$list->calender_view('static_page_date_start',$record.date_start,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
<td style="width: 65%;">{$list->calender_view('static_page_date_expire',$record.date_expire,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=static_page_category_id}</td>
<td style="width: 65%;">{$list->menu('','static_page_static_page_category_id','static_page_category','name',$record.static_page_category_id,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('static_page_status',$record.status,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="static_page_name" value="{$record.name}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><textarea name="static_page_description" cols="40" rows="5" >{$record.description}</textarea></td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="5" class="row1">
<tr>
<td style="width: 33%; text-align: left;"><a href="?_page=core:search&amp;module=static_page_translate&amp;static_page_translate_static_page_id={$record.id}&amp;_next_page_one=view">{t}View all translations for this page{/t}</a></td>
<td style="width: 33%; text-align: center;"><a href="?_page=static_page_translate:add&amp;id={$record.id}">{t}Add a translations for this page{/t}</a></td>
<td style="width: 33%; text-align: right;"><a href="{$URL}?_page=static_page:page_show&amp;name={$record.name}" onclick="target='_blank';">{t}Preview page{/t}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
2009-08-03 04:10:16 +00:00
{include file='file:../core/view_post.tpl'}
</form>
{/if}