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

98 lines
3.8 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=date_orig}</td>
<td style="width: 65%;">{$list->date_time($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_time($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="faq_sort_order" value="{$record.sort_order}" class="form_field" 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('faq_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('faq_date_expire',$record.date_expire,'form_field')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=faq_category_id}</td>
<td style="width: 65%;">{$list->menu('','faq_faq_category_id','faq_category','name',$record.faq_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('faq_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="faq_name" value="{$record.name}" class="form_field" size="32"/></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="text-align: left;"><a href="javascript:showFaqTranslations('{$record.id}')">{t}View all translations for this FAQ{/t}</a></td>
<td style="text-align: right;"><a href="javascript:addFaqTranslations('{$record.id}')">{t}Add a translations for this FAQ{/t}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
<script type="text/javascript">
<!--
{literal}
function showFaqTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=core:search&_next_page_one=view&module=faq_translate&faq_translate_faq_id='+id);
}
function addFaqTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=faq_translate:add&faq_translate_faq_id='+id);
}
showFaqTranslations({/literal}{$record.id}{literal});
{/literal}
//-->
</script>
{/if}