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

106 lines
5.5 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="add" 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 style="width: 65%;" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="setup_email_name" value="{$VAR.setup_email_name}" {if $setup_email_name == true}class="form_field_error"{/if}/></td>
</tr>
{if $list->is_installed('email_queue')}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=queue}</td>
<td style="width: 65%;">{$list->bool('setup_email_queue',$VAR.setup_email_queue)}</td>
</tr>
{/if}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><input type="text" name="setup_email_notes" value="{$VAR.setup_email_notes}" {if $setup_email_notes == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=from_name}</td>
<td style="width: 65%;"><input type="text" name="setup_email_from_name" value="{$VAR.setup_email_from_name}" {if $setup_email_from_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=from_email}</td>
<td style="width: 65%;"><input type="text" name="setup_email_from_email" value="{$VAR.setup_email_from_email}" {if $setup_email_from_email == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=cc_list}</td>
<td style="width: 65%;"><textarea name="setup_email_cc_list" cols="40" rows="5" {if $setup_email_cc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_cc_list}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=bcc_list}</td>
<td style="width: 65%;"><textarea name="setup_email_bcc_list" cols="40" rows="5" {if $setup_email_bcc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_bcc_list}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=type}</td>
<td style="width: 65%;">{$list->bool('setup_email_type',$VAR.setup_email_type,'form_menu')}<br/>
{t}If you select 'Yes', you will need to enter your SMTP server login details below.{/t}
</td>
</tr>
<tr valign="top">
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=server}</td>
<td style="width: 65%;"><input type="text" name="setup_email_server" value="{$VAR.setup_email_server}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=username}</td>
<td style="width: 65%;"><input type="text" name="setup_email_username" value="{$VAR.setup_email_username}" {if $setup_email_username == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=password}</td>
<td style="width: 65%;"><input type="text" name="setup_email_password" value="{$VAR.setup_email_password}" {if $setup_email_password == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td colspan="2">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=piping}</td>
<td style="width: 65%;">{$list->menu_staticlist('email_piping','setup_email_piping','setup_email_piping',$VAR.setup_email_piping,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=piping_host}</td>
<td style="width: 65%;"><input type="text" name="setup_email_piping_host" value="{$VAR.setup_email_piping_host}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=piping_username}</td>
<td style="width: 65%;"><input type="text" name="setup_email_piping_username" value="{$VAR.setup_email_piping_username}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=piping_password}</td>
<td style="width: 65%;"><input type="text" name="setup_email_piping_password" value="{$VAR.setup_email_piping_password}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=piping_action}</td>
<td style="width: 65%;">{$list->menu_staticlist('email_piping_action','setup_email_piping_action','setup_email_piping_action',$VAR.setup_email_piping_action,'form_menu')}</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>