clipbucket/upload/admin_area/styles/cbv2/layout/email_settings.html
Arslan Hassan c30c935793 Added : Subscription email
Fixed : Last active
Update : get_video function, now get video details with file name
Update : Email Settings Template
2011-02-24 16:22:58 +00:00

102 lines
No EOL
4.3 KiB
HTML

<h2>Email Settings</h2>
<form action="" method="post" enctype="multipart/form-data" name="player_settings">
<fieldset class="fieldset" style="border:none">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="301" valign="top"><strong><label for="mail_type">Mailer</label></strong><br />
Select Mailer Type php Mail() or SMTP</label></td>
<td width="813" valign="top">
<select name="mail_type" id="mail_type">
<option value="mail" {if $row.mail_type=='mail'} selected="selected"{/if}>PHP mail()</option>
<option value="smtp" {if $row.mail_type=='smtp'} selected="selected"{/if}>smtp</option>
</select></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_host">SMTP Host</label><br />
</strong>If using smtp, please enter its server</td>
<td valign="top">
<input type="text" name="smtp_host" id="smtp_host" value="{$row.smtp_host}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_port">SMTP Port</label></strong><br />
if using smtp, Set SMTP server port</td>
<td valign="top">
<input type="text" name="smtp_port" id="smtp_port" value="{$row.smtp_port}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_user">SMTP Username</label></strong><br />
if using smtp, please enter SMTP username</td>
<td valign="top">
<input type="text" name="smtp_user" id="smtp_user" value="{$row.smtp_user}" /></td>
</tr>
<tr>
<td valign="top"><strong><label for="smtp_pass">SMTP Password</label></strong><br />
Enter SMTP password</td>
<td valign="top">
<input type="password" name="smtp_pass" id="smtp_pass" value="{$row.smtp_pass}" /></td>
</tr>
<tr>
<td valign="top"><strong>SMTP Auth</strong><br />
Enable SMTP Authentication
</td>
<td valign="top"><select name="smtp_auth" id="smtp_auth">
<option value="yes" {if $row.smtp_auth=='yes'} selected="selected"{/if}>yes</option>
<option value="no" {if $row.smtp_auth=='no'} selected="selected"{/if}>no</option>
</select></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<div align="left"><input type="submit" class="button" value="Update" name="update_settings" /></div>
</fieldset>
</form>
<div style="height:10px"></div>
<h2>Email Templates Settings</h2>
<div style="height:10px"></div>
<div style="padding-right:10px">
{assign var=templates value=$cbemail->get_templates()}
{if $templates}<form name="email_templates" method="post">
<ul class="optionsLists" >
{foreach from=$templates item=template name=etemp}
<li {if $smarty.foreach.etemp.iteration=='1'} class="selected"{/if}
onclick="
$('.tempselected').removeClass('selected').hide();
$('#template-{$template.email_template_id}').show().addClass('tempselected');
$('.selected').removeClass('selected');
$(this).toggleClass('selected');
">{$template.email_template_name}</li>
{/foreach}
</ul>
<div class="optionsListsCont">
{foreach from=$templates item=template name=etemp}
<div id="template-{$template.email_template_id}"
{if $smarty.foreach.etemp.iteration!='1'} style="display:none" {else}class="tempselected"{/if}>
<label for="subject{$template.email_template_id}">Email Subject</label>
<div class="templateCodeCont" style="padding:3px"><input type="text" name="subject{$template.email_template_id}" id="subject{$template.email_template_id}"
value="{$template.email_template_subject|form_val}" style="border:0px; background:none; width:100%" /></div>
<br />
<label for="message{$template.email_template_id}">Email message</label>
<div class="templateCodeCont"><textarea name="message{$template.email_template_id}" cols="60" rows="8" id="message{$template.email_template_id}" class="templateCode">{$template.email_template|form_val}</textarea></div></td>
</div>
{/foreach}
<div align="right" style="margin-top:5px"><input type="submit" class="button" value="Save Templates" name="update" /></div>
</div></form>
{/if}
</div>