2014-05-09 10:34:00 +00:00
|
|
|
<div class="heading">
|
|
|
|
<h2>Email Settings</h2>
|
|
|
|
</div>
|
2014-01-18 13:35:29 +00:00
|
|
|
<form action="" method="post" enctype="multipart/form-data" name="player_settings">
|
|
|
|
<fieldset class="fieldset" style="border:none">
|
2014-03-03 08:19:28 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2014-01-18 13:35:29 +00:00
|
|
|
<label for="mail_type">Mailer <br />Select Mailer Type php Mail() or SMTP</label>
|
|
|
|
<select class="form-control" 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>
|
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
<div class="col-md-4">
|
2014-01-18 13:35:29 +00:00
|
|
|
<label for="smtp_host">SMTP Host<br />if using smtp, Set SMTP server port</label>
|
|
|
|
<input class="form-control" type="text" name="smtp_host" id="smtp_host" value="{$row.smtp_host}" />
|
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
<div class="col-md-4">
|
2014-01-18 13:35:29 +00:00
|
|
|
<label for="smtp_user">SMTP Username<br />if using smtp, please enter SMTP username</label>
|
|
|
|
<input type="text" class="form-control" name="smtp_user" id="smtp_user" value="{$row.smtp_user}" />
|
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
</div>
|
2014-03-18 09:16:59 +00:00
|
|
|
<hr>
|
2014-03-03 08:19:28 +00:00
|
|
|
<div class="row">
|
2014-03-18 09:16:59 +00:00
|
|
|
<div class="col-md-4">
|
2014-01-18 13:35:29 +00:00
|
|
|
<label for="smtp_pass">SMTP Password<br />Enter SMTP password</label>
|
|
|
|
<input type="password" class="form-control" name="smtp_pass" id="smtp_pass" value="{$row.smtp_pass}" />
|
|
|
|
</div>
|
2014-03-18 09:16:59 +00:00
|
|
|
<div class="col-md-4">
|
|
|
|
<label for="smtp_auth">SMTP Auth</label>
|
2015-01-14 07:04:53 +00:00
|
|
|
<input value="yes" id="id-button-borders" {if $row.smtp_auth=='yes'}checked="checked"{/if} name="smtp_auth" id="smtp_auth" type="checkbox" class="ace ace-switch ace-switch-5">
|
|
|
|
<span class="lbl"></span>
|
2014-01-18 13:35:29 +00:00
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2014-01-18 13:35:29 +00:00
|
|
|
<label for=""></label>
|
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-sm" value="Update" name="update_settings" />
|
2014-01-18 13:35:29 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Email Templates Settings</h2>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{assign var=templates value=$cbemail->get_templates()}
|
|
|
|
|
|
|
|
{if $templates}
|
2014-01-20 12:40:13 +00:00
|
|
|
|
2014-01-18 13:35:29 +00:00
|
|
|
<form name="email_templates" method="post">
|
2014-01-20 12:40:13 +00:00
|
|
|
<div class="row">
|
2014-03-03 08:19:28 +00:00
|
|
|
<ul class="nav nav-pills nav-stacked col-md-3 Tabs" >
|
2014-01-20 12:40:13 +00:00
|
|
|
|
|
|
|
{foreach from=$templates item=template name=etemp}
|
|
|
|
<li {if $smarty.foreach.etemp.iteration=='1'} class="active"{/if}
|
|
|
|
onclick="
|
|
|
|
$('.tempselected').removeClass('active').hide();
|
|
|
|
$('#template-{$template.email_template_id}').show().addClass('tempselected');
|
2014-01-18 13:35:29 +00:00
|
|
|
|
2014-01-20 12:40:13 +00:00
|
|
|
$('.active').removeClass('active');
|
|
|
|
$(this).toggleClass('active');
|
|
|
|
return false;
|
|
|
|
"><a href="#">{$template.email_template_name}</a></li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
2014-03-03 08:19:28 +00:00
|
|
|
<div class="optionsListsCont col-md-8">
|
2014-01-20 12:40:13 +00:00
|
|
|
{foreach from=$templates item=template name=etemp}
|
|
|
|
|
2014-01-18 13:35:29 +00:00
|
|
|
|
2014-01-20 12:40:13 +00:00
|
|
|
<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">
|
2014-03-03 08:19:28 +00:00
|
|
|
<input data-type="text" name="subject{$template.email_template_id}" id="subject{$template.email_template_id}"
|
2014-01-20 12:40:13 +00:00
|
|
|
value="{$template.email_template_subject|form_val}" style="border:0px; background:none; width:100%" />
|
2014-03-03 08:19:28 +00:00
|
|
|
</div>
|
2014-01-20 12:40:13 +00:00
|
|
|
<br />
|
|
|
|
<label for="message{$template.email_template_id}">Email message</label>
|
|
|
|
<div class="templateCodeCont">
|
|
|
|
<textarea class="form-control" name="message{$template.email_template_id}" cols="60" rows="8" id="message{$template.email_template_id}" class="templateCode">{$template.email_template|form_val}</textarea>
|
2014-03-03 08:19:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-20 12:40:13 +00:00
|
|
|
{/foreach}
|
|
|
|
<div align="right" style="margin-top:5px">
|
2014-03-03 08:19:28 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-xs" value="Save Templates" name="update" /></div>
|
2014-01-20 12:40:13 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{/if}
|
2014-01-18 13:35:29 +00:00
|
|
|
</div>
|
2014-03-03 08:19:28 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('.message').summernote();
|
|
|
|
});
|
|
|
|
</script>
|