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

105 lines
4.0 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: 50%;">{osb f=tf field=name}</td>
<td style="width: 50%;">{$record.name}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=setup_email_id}</td>
<td style="width: 50%;">{$list->menu('','email_template_setup_email_id','setup_email','name',$record.setup_email_id,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=status}</td>
<td style="width: 50%;">{$list->bool('email_template_status',$record.status)}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=priority}</td>
<td style="width: 50%;">{$list->bool('email_template_priority',$record.priority)}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=sql_1}</td>
<td style="width: 50%;">{osb f=tf field=sql_2}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><textarea name="email_template_sql_1" cols="40" rows="1" >{$record.sql_1}</textarea></td>
<td style="width: 50%;"><textarea name="email_template_sql_2" cols="40" rows="1" >{$record.sql_2}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=sql_3}</td>
<td style="width: 50%;">{osb f=tf field=notes}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><textarea name="email_template_sql_3" cols="40" rows="1" >{$record.sql_3}</textarea></td>
<td style="width: 50%;"><textarea name="email_template_notes" cols="40" rows="1" >{$record.notes}</textarea></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
<tr>
<td style="width: 50%;"><a href="javascript:showEmailTranslations('{$record.id}');">{t}View Translations for this Email Template{/t}</a></td>
<td align="right" style="width: 50%;"><div align="right"><a href="javascript:addEmailTranslations('{$record.id}');">{t}Add Translation for this Email Template{/t}</a></div></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>
<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">
<!--
var email_template = '{$record.id}';
//-->
</script>
{/if}
<script type="text/javascript">
<!--
{literal}
function showEmailTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=core:search&_next_page_one=view&module=email_template_translate&_escape=1&email_template_translate_email_template_id='+id);
}
function addEmailTranslations(id) {
showIFrame('iframe',getPageWidth(650),350,'?_page=email_template_translate:add&email_template_translate_email_template_id='+id);
}
{/literal}
showEmailTranslations(email_template);
//-->
</script>