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

84 lines
3.3 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}
<!-- tinyMCE -->
<script type="text/javascript" src="includes/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="themes/{$THEME_NAME}/tinymce.js"></script>
<!-- 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=static_page_id}</td>
<td style="width: 65%;">{$list->menu('','static_page_translate_static_page_id','static_page','name',$record.static_page_id,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=language_id}</td>
<td style="width: 65%;">{$list->menu_files('','static_page_translate_language_id',$record.language_id,'language','','_core.xml','form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=title}</td>
<td style="width: 65%;"><input type="text" name="static_page_translate_title" value="{$record.title}" size="45"/></td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr>
<td><b>{osb f=tf field=body_intro}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_intro" name="static_page_translate_body_intro" class="mce_editable" cols="80" rows="12">{$record.body_intro|htmlspecialchars}</textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><b>{osb f=tf field=body_full}</b></td>
</tr>
<tr>
<td><textarea id="static_page_translate_body_full" name="static_page_translate_body_full" class="mce_editable" cols="80" rows="18">{$record.body_full|htmlspecialchars}</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="2" cellpadding="5" class="row2">
<tr>
<td><a href="{$URL}?_page=core:search&amp;module=static_page_translate&amp;static_page_translate_static_page_id={$record.static_page_id}">{t}View all translations for this page{/t}</a></td>
<td align="right"><a href="{$URL}?_page=static_page:view&amp;id={$record.static_page_id}">{t}Return to main page view{/t}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}