OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
sendy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📄
.htaccess
643 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
_compatibility.php
3.83 KB
03/26/2025 03:48:13 AM
rw-r--r--
📄
_install.php
7.3 KB
03/26/2025 03:48:13 AM
rw-r--r--
📁
api
-
03/26/2025 04:20:09 AM
rwxr-xr-x
📄
app.php
33.77 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders-create.php
23.29 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders-edit.php
28.89 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders-emails.php
26.81 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders-list.php
15.85 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders-report.php
40.18 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
autoresponders.php
77.28 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
blacklist-blocked-domains.php
13.39 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
blacklist-suppression.php
13.34 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
campaigns-rss.php
8.35 KB
03/26/2025 03:48:11 AM
rw-r--r--
📁
certs
-
03/26/2025 04:15:54 AM
rwxr-xr-x
📄
clear-queue.php
996 bytes
03/26/2025 03:48:11 AM
rw-r--r--
📄
confirm.php
9.34 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
create-template.php
3.99 KB
03/26/2025 03:48:11 AM
rw-r--r--
📄
create.php
15.92 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
css
-
03/26/2025 04:20:09 AM
rwxr-xr-x
📄
custom-fields.php
8.5 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
delete-from-list.php
5.29 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
detect-table-conflicts.php
2.47 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
edit-brand.php
57.32 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
edit-list.php
20.97 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
edit-template.php
4.65 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
edit.php
19.04 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
eula.txt
6.5 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
housekeeping-inactive.php
12.54 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
housekeeping-unconfirmed.php
14.01 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
img
-
03/26/2025 04:15:54 AM
rwxr-xr-x
📄
import-csv.php
18.68 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
includes
-
03/26/2025 04:20:12 AM
rwxr-xr-x
📄
index.php
18.77 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
js
-
03/26/2025 04:20:15 AM
rwxr-xr-x
📄
l.php
10.63 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
list.php
12.3 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
locale
-
03/26/2025 04:21:20 AM
rwxr-xr-x
📄
login.php
4.84 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
logout.php
133 bytes
03/26/2025 03:48:12 AM
rw-r--r--
📄
new-brand.php
46.35 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
new-list.php
1.98 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
payment.php
7.41 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
phpinfo.php
1.39 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
r.php
11 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
reconsent-success.php
3.91 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
remove-duplicates.php
2.94 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
report.php
48.79 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
reports.php
10.7 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
reset-cron.php
999 bytes
03/26/2025 03:48:12 AM
rw-r--r--
📄
rules.php
37.35 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
scheduled.php
39.51 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
search-all-brands.php
7.07 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
search-all-lists.php
10.68 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
search-campaigns.php
30.29 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
segment.php
45.8 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
segments-list.php
6.84 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
send-to.php
57.72 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
sending.php
8.9 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
settings.php
41.29 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
subscribe.php
29.26 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
subscribers.php
44.09 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
subscription.php
9.01 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
t.php
4.22 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
template-preview.php
4.55 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
templates.php
7.35 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
two-factor.php
4.33 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
unsubscribe-from-list.php
5.33 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
unsubscribe-success.php
3.9 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
unsubscribe.php
16.19 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
update-list.php
13.88 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
update-segments.php
3.09 KB
03/26/2025 03:48:12 AM
rw-r--r--
📁
uploads
-
03/26/2025 04:21:20 AM
rwxr-xr-x
📄
verification-status.php
3.63 KB
03/26/2025 03:48:12 AM
rw-r--r--
📄
w.php
17.76 KB
03/26/2025 03:48:13 AM
rw-r--r--
📄
webhooks-log.php
4.28 KB
03/26/2025 03:48:13 AM
rw-r--r--
Editing: autoresponders-create.php
Close
<?php include('includes/header.php');?> <?php include('includes/login/auth.php');?> <?php include('includes/ares/main.php');?> <?php if(get_app_info('is_sub_user')) { if(get_app_info('app')!=get_app_info('restricted_to_app')) { echo '<script type="text/javascript">window.location="'.addslashes(get_app_info('path')).'/list?i='.get_app_info('restricted_to_app').'"</script>'; exit; } } $app = isset($_GET['i']) && is_numeric($_GET['i']) ? get_app_info('app') : exit; $aid = isset($_GET['a']) && is_numeric($_GET['a']) ? mysqli_real_escape_string($mysqli, (int)$_GET['a']) : exit; $list_id = get_ares_data('list'); ?> <script src="<?php echo get_app_info('path');?>/js/ckeditor/ckeditor.js?11"></script> <?php $dark_mode = get_app_info('dark_mode');?> <?php include('js/create/editor.php');?> <!-- Validation --> <script type="text/javascript" src="<?php echo get_app_info('path');?>/js/validate.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#edit-form").validate({ rules: { subject: { required: true }, from_name: { required: true }, from_email: { required: true, email: true }, reply_to: { required: true, email: true }, html: { required: true }, time_condition_number: { required: true } }, messages: { subject: "<?php echo addslashes(_('The subject of your email is required'));?>", from_name: "<?php echo addslashes(_('\'From name\' is required'));?>", from_email: "<?php echo addslashes(_('A valid \'From email\' is required'));?>", reply_to: "<?php echo addslashes(_('A valid \'Reply to\' email is required'));?>", html: "<?php echo addslashes(_('Your HTML code is required'));?>", time_condition_number: "<?php echo addslashes(_('Please specify a number'));?>" } }); //drip $("#time_condition_intervals").change(function(){ if($(this).find(":selected").text()=='<?php echo _('immediately');?>') $("#time_condition_number").hide(); else { $("#time_condition_number").show(); $("#time_condition_number").select(); } }); //others $("#time_condition_beforeafter").change(function(){ if($(this).find(":selected").text()=='<?php echo _('on');?>') { $("#time_condition_number").hide(); $("#time_condition_intervals").hide(); } else { $("#time_condition_number").show(); $("#time_condition_intervals").show(); $("#time_condition_number").select(); } }); //Check if Grammarly extension is installed in the browser, if so, inform the user setTimeout( function() {if($("grammarly-btn").length) $("#grammarly-error").slideDown();}, 5000); }); </script> <div class="row-fluid"> <div class="span2"> <?php include('includes/sidebar.php');?> </div> <div class="span10"> <div class="row-fluid"> <div> <p class="lead"> <?php if(get_app_info('is_sub_user')):?> <?php echo get_app_data('app_name');?> <?php else:?> <a href="<?php echo get_app_info('path'); ?>/edit-brand?i=<?php echo get_app_info('app');?>" data-placement="right" title="<?php echo _('Edit brand settings');?>"><?php echo get_app_data('app_name');?> <span class="icon icon-pencil top-brand-pencil"></span></a> <?php endif;?> </p> </div> <h2><?php echo _('Create autoresponder email');?></h2> <strong><?php echo get_ares_type_name('type');?></strong>: <a href="<?php echo get_app_info('path')?>/autoresponders-emails?i=<?php echo get_app_info('app')?>&a=<?php echo $_GET['a']?>" title=""><span class="label label-info"><?php echo get_ares_data('name');?></span></a> <br/><br/> </div> <form action="<?php echo get_app_info('path')?>/includes/ares/save-autoresponder-email.php?i=<?php echo get_app_info('app')?>&a=<?php echo $aid?>" method="POST" accept-charset="utf-8" class="form-vertical" id="edit-form" enctype="multipart/form-data"> <div class="row-fluid"> <div class="span12 well"> <?php if(get_ares_data('type')==1):?> <i class="icon-time"></i> <?php echo _('Send email');?> <input type="text" name="time_condition_number" id="time_condition_number" placeholder="10" style="width: 20px; text-align:center; margin-top: 8px; height: 19px;"> <select name="time_condition_intervals" id="time_condition_intervals" style="width: auto; margin-top: 7px;"> <option value="immediately"><?php echo _('immediately');?></option> <option value="minutes"><?php echo _('minutes');?></option> <option value="hours"><?php echo _('hours');?></option> <option value="days"><?php echo _('days');?></option> <option value="weeks"><?php echo _('weeks');?></option> <option value="months"><?php echo _('months');?></option> </select> <?php echo _('after they subscribe');?> <?php echo _('and');?> <a href="javascript:void(0)" title="" class="btn" id="apply-to-segment-btn"><i class="icon icon-filter"></i> <?php echo _('apply to these segments only');?></a> <input type="hidden" name="time_condition_beforeafter" id="time_condition_beforeafter" value="after"> <script type="text/javascript"> $("#time_condition_number").hide(); </script> <?php else:?> <i class="icon-time"></i> <?php echo _('Send email');?> <input type="text" name="time_condition_number" id="time_condition_number" placeholder="10" style="width: 20px; text-align:center; margin-top: 8px; height: 19px;"> <select name="time_condition_intervals" id="time_condition_intervals" style="width: auto; margin-top: 7px;"> <option value="minutes"><?php echo _('minutes');?></option> <option value="hours"><?php echo _('hours');?></option> <option value="days"><?php echo _('days');?></option> <option value="weeks"><?php echo _('weeks');?></option> <option value="months"><?php echo _('months');?></option> </select> <select name="time_condition_beforeafter" id="time_condition_beforeafter" style="width: auto; margin-top: 7px;"> <option value="on"><?php echo _('on');?></option> <option value="before"><?php echo _('before');?></option> <option value="after"><?php echo _('after');?></option> </select> <?php echo _('each subscriber\'s');?> '<?php echo get_ares_data('custom_field');?>' <?php echo _('and');?> <a href="javascript:void(0)" title="" class="btn" id="apply-to-segment-btn"><i class="icon icon-filter"></i> <?php echo _('apply to these segments only');?></a> <script type="text/javascript"> $("#time_condition_number").hide(); $("#time_condition_intervals").hide(); </script> <?php endif;?> <!-- Select segments --> <div id="segments-select" style="display:none"> <!-- Segments multi select --> <div class="controls" style="float:left; width: 320px; margin-right: 20px;"> <p><span class="icon icon-plus-sign"></span> <?php echo _('Only send to these segments');?></p> <select multiple="multiple" id="seg_list" name="seg_list[]" class="seg_select_multiselect_list"> <?php if(have_segments($list_id)):?> <?php $q = 'SELECT id, name FROM seg WHERE app = '.get_app_info('app').' AND list = '.$list_id.' ORDER BY id DESC'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $seg_id = $row['id']; $seg_name = $row['name']; echo '<option value="'.$seg_id.'" id="seg_'.$seg_id.'">'.$seg_name.'</option>'; } } ?> <?php else:?> <option disabled><?php echo _('No segments found in this list');?></option> <?php endif;?> </select> </div> <!-- Exclude segments multi select --> <div class="controls" style="float:left; width: 320px; "> <p><span class="icon icon-minus-sign"></span> <?php echo _('Don\'t include emails in these segments');?></p> <select multiple="multiple" id="seg_list_exclude" name="seg_list_exclude[]" class="seg_select_multiselect_list"> <?php if(have_segments($list_id)):?> <?php $q = 'SELECT id, name FROM seg WHERE app = '.get_app_info('app').' AND list = '.$list_id.' ORDER BY id DESC'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $seg_id = $row['id']; $seg_name = $row['name']; echo '<option value="'.$seg_id.'" id="excl_seg_'.$seg_id.'">'.$seg_name.'</option>'; } } ?> <?php else:?> <option disabled><?php echo _('No segments found in this list');?></option> <?php endif;?> </select><br/> </div> </div> <script type="text/javascript"> $(document).ready(function() { $("#apply-to-segment-btn").click(function(){ $("#segments-select").toggle("slide"); }); //select list count $("select#seg_list_exclude, select#seg_list").change(function () { var inseg_array = []; var exseg_array = []; var inlist_selected = []; var exlist_selected = []; $("select#seg_list_exclude option").each(function(){ $("#excl_seg_"+$(this).val()).removeAttr("disabled"); }); $("select#seg_list :selected").each(function(i, selected){ inlist_selected[i] = $(selected).val(); inseg_array.push(inlist_selected[i]); $("#excl_seg_"+inlist_selected[i]).attr("disabled", true); $("#excl_seg_"+inlist_selected[i]).removeAttr("selected"); }); $("select#seg_list_exclude :selected").each(function(i, selected){ exlist_selected[i] = $(selected).val(); exseg_array.push(exlist_selected[i]); }); if(inseg_array.length!=0) { inlists_seg = inseg_array.join(","); $("#in_list_seg").val(inlists_seg); } else { inlists_seg = 0; $("#in_list_seg").val(""); } if(exseg_array.length!=0) { exlists_seg = exseg_array.join(","); $("#ex_list_seg").val(exlists_seg); } else { exlists_seg = 0; $("#ex_list_seg").val(""); } }) .trigger('change'); }); </script> <!-- / Select segments --> </div> </div> <div class="row-fluid"> <div class="span3"> <?php if(have_templates()):?> <div class="dropdown"> <button class="btn dropdown-toggle" type="button" data-toggle="dropdown"><i class="icon-plus-sign"></i> <?php echo _('Select a template');?> <span class="caret"></span></button> <ul class="dropdown-menu"> <?php $q = 'SELECT id, template_name FROM template WHERE app = '.get_app_info('app').' ORDER BY id DESC'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $template_id = $row['id']; $template_name = stripslashes($row['template_name']); echo '<li><a href="javascript:void(0)" data-i="'.get_app_info('app').'" data-t="'.$template_id.'" data-a="'.$_GET['a'].'" data-a_type="'.ares_type().'" class="template-btn">'.$template_name.'</a></li>'; } } ?> </ul> <script type="text/javascript"> $(document).ready(function() { $(".template-btn").click(function(){ url = "<?php echo get_app_info('path');?>/includes/templates/use-template.php"; i = $(this).data("i"); t = $(this).data("t"); a = $(this).data("a"); a_type = $(this).data("a_type"); in_list_seg = $("#in_list_seg").val(); ex_list_seg = $("#ex_list_seg").val(); from_creation_page = 1; $.get(url, { i:i, t:t, a:a, a_type:a_type, in_list_seg:in_list_seg, ex_list_seg:ex_list_seg, from_creation_page:from_creation_page }, function(data, status) { if(status=='success') window.location = data; else alert("Sorry, unable to use template. Please try again later!"); } ); }); }); </script> </div> <br/> <?php endif;?> <label class="control-label" for="subject"><?php echo _('Subject');?></label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="subject" name="subject" placeholder="<?php echo _('Subject of this email');?>"> </div> </div> <label class="control-label" for="from_name"><?php echo _('From name');?></label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="from_name" name="from_name" placeholder="<?php echo _('From name');?>" value="<?php echo get_app_data('from_name');?>"> </div> </div> <label class="control-label" for="from_email"><?php echo _('From email');?></label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" <?php if(get_app_info('is_sub_user')) echo 'readonly="readonly"';?> id="from_email" name="from_email" placeholder="<?php echo _('name@domain.com');?>" value="<?php echo get_app_data('from_email');?>"> </div> </div> <label class="control-label" for="reply_to"><?php echo _('Reply to email');?></label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="reply_to" name="reply_to" placeholder="<?php echo _('name@domain.com');?>" value="<?php echo get_app_data('reply_to');?>"> </div> </div> <label class="control-label" for="plain"><?php echo _('Plain text version');?></label> <div class="control-group"> <div class="controls"> <textarea class="input-xlarge" id="plain" name="plain" rows="10" placeholder="<?php echo _('Plain text version of this email');?>"></textarea> </div> </div> <label class="control-label" for="query_string"><?php echo _('Query string');?> <a href="javascript:void(0)" title="<?php echo _("Optionally append a query string to all links in your email newsletter. A good use case is Google Analytics tracking. Don't include '?' in your query string.");?>"><span class="icon icon-question-sign"></span></a></label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="query_string" name="query_string" placeholder="eg. utm_source=newsletter&utm_medium=sendy&utm_campaign=email_marketing" value="<?php echo get_app_data('query_string');?>" style="width: 100%;"> </div> </div><br/> <?php $allowed_attachments = get_app_data('allowed_attachments'); $allowed_attachments_array = array_map('trim', explode(',', $allowed_attachments)); $allowed_attachments_exts = implode(', ', $allowed_attachments_array); if($allowed_attachments!=''): ?> <label class="control-label" for="attachments"><?php echo _('Attachments');?></label> <div class="control-group"> <div class="controls"> <input type="file" id="attachments" name="attachments[]" multiple /> </div> <p class="thirtytwo"><i><?php echo _('Allowed file types');?>: <?php echo $allowed_attachments_exts;?></i></p> </div> <br/> <?php endif;?> <p> <?php echo _('Track opens');?>: <div class="btn-group tracking" data-toggle="buttons-radio"> <a href="javascript:void(0)" title="<?php echo _('Enable opens tracking');?>" class="btn" id="opens_tracking_on"><i class="icon icon-ok"></i> <?php echo _('Yes');?></a> <a href="javascript:void(0)" title="<?php echo _('Disable opens tracking');?>" class="btn" id="opens_tracking_off"><i class="icon icon-remove-sign"></i> <?php echo _('No');?></a> <a href="javascript:void(0)" title="<?php echo _('Track opens without identifying users to respect their privacy');?>" class="btn" id="opens_tracking_anon"><i class="icon icon-ok"></i> <?php echo _('Anonymously');?></a> </div> <script type="text/javascript"> $(document).ready(function() { <?php $opens_tracking = get_app_data('opens_tracking'); if($opens_tracking==1): ?> $("#opens_tracking_on").button('toggle'); $("#opens").val("1"); <?php elseif($opens_tracking==0):?> $("#opens_tracking_off").button('toggle'); $("#opens").val("0"); <?php elseif($opens_tracking==2):?> $("#opens_tracking_anon").button('toggle'); $("#opens").val("2"); <?php endif;?> $("#opens_tracking_on").click(function(){ $("#opens").val("1"); }); $("#opens_tracking_off").click(function(){ $("#opens").val("0"); }); $("#opens_tracking_anon").click(function(){ $("#opens").val("2"); }); }); </script> </p> <br/> <p> <?php echo _('Track clicks');?>: <div class="btn-group tracking" data-toggle="buttons-radio"> <a href="javascript:void(0)" title="<?php echo _('Enable clicks tracking');?>" class="btn" id="clicks_tracking_on"><i class="icon icon-ok"></i> <?php echo _('Yes');?></a> <a href="javascript:void(0)" title="<?php echo _('Disable clicks tracking');?>" class="btn" id="clicks_tracking_off"><i class="icon icon-remove-sign"></i> <?php echo _('No');?></a> <a href="javascript:void(0)" title="<?php echo _('Track clicks without identifying users to respect their privacy');?>" class="btn" id="clicks_tracking_anon"><i class="icon icon-ok"></i> <?php echo _('Anonymously');?></a> </div> <script type="text/javascript"> $(document).ready(function() { <?php $links_tracking = get_app_data('links_tracking'); if($links_tracking==1): ?> $("#clicks_tracking_on").button('toggle'); $("#clicks").val("1"); <?php elseif($links_tracking==0):?> $("#clicks_tracking_off").button('toggle'); $("#clicks").val("0"); <?php elseif($links_tracking==2):?> $("#clicks_tracking_anon").button('toggle'); $("#clicks").val("2"); <?php endif;?> $("#clicks_tracking_on").click(function(){ $("#clicks").val("1"); }); $("#clicks_tracking_off").click(function(){ $("#clicks").val("0"); }); $("#clicks_tracking_anon").click(function(){ $("#clicks").val("2"); }); }); </script> </p> <input type="hidden" name="opens" id="opens" value=""> <input type="hidden" name="clicks" id="clicks" value=""> <input type="hidden" name="in_list_seg" id="in_list_seg"> <input type="hidden" name="ex_list_seg" id="ex_list_seg"> <br/><br/> <input type="hidden" name="ares_type" value="<?php echo get_ares_data('type');?>"> <a href="javascript:void(0)" id="autoresponder-save-only-btn" class="btn"><i class="icon-ok icon-white"></i> <?php echo _('Save');?></a> <button type="submit" class="btn btn-inverse"><i class="icon-ok icon-white"></i> <?php echo _('Save & exit');?></button> <br/><br/> <div class="control-group"> <div> <div class="checkbox"> <label><input type="checkbox" name="save_as_template"><?php echo _('Also save as template?');?></label> </div> </div> </div> <br/><br/> <a href="<?php echo get_app_info('path');?>/autoresponders-emails?i=<?php echo $app?>&a=<?php echo get_ares_data('id');?>" title=""><i class="icon icon-chevron-left"></i> <?php echo _('Back to autoresponder email list');?></a> </div> <div class="span9"> <!-- Grammarly error --> <?php $app_path_no_http_array = explode('/', get_app_info('path')); $app_path_no_http = $app_path_no_http_array[2]; ?> <div class="alert alert-error" id="grammarly-error" style="display:none;"> <button class="close" onclick="$('.alert-error').hide();">×</button> <h3><span class="icon icon-warning-sign"></span> <?php echo _('Disable Grammarly extension in your browser');?></h3><br/> <p><?php echo _('You have \'Grammarly\' extension installed in your browser. Grammarly injects thousands of lines of code into the email editor. As a result your email will have an extremely huge file size, look weird and you may not be able to save or send your campaign. To avoid all these, please do the following:');?></p> <ol> <li><?php echo _('Disable Grammarly extension in your browser (please see image below)');?></li> <li><?php echo _('Then refresh this page');?></li> </ol> <p><img src="<?php echo get_app_info('path');?>/img/turn-off-grammarly.gif" title=""/></p> </div> <!-- Grammarly error --> <p> <label class="control-label" for="html"><?php echo _('HTML code');?></label> <div class="btn-group"> <button class="btn" id="toggle-wysiwyg"><?php echo _('Save and switch to HTML editor');?></button> <span class="wysiwyg-note"><?php echo _('Switch to HTML editor if the WYSIWYG editor is causing your newsletter to look weird.');?></span> <script type="text/javascript"> $("#toggle-wysiwyg").click(function(e){ e.preventDefault(); $('<input>').attr({ type: 'hidden', id: 'wysiwyg', name: 'wysiwyg', value: '0', }).appendTo("#edit-form"); $('<input>').attr({ type: 'hidden', id: 'w_clicked', name: 'w_clicked', value: '1', }).appendTo("#edit-form"); $("#subject").rules("remove"); $("#html").rules("remove"); if($("#subject").val()=="") $("#subject").val("<?php echo _('Untitled');?>"); $("#edit-form").submit(); }); </script> </div> <br/> <div class="control-group"> <div class="controls"> <textarea class="input-xlarge" id="html" name="html" rows="10" placeholder="<?php echo _('Email content');?>"></textarea> </div> </div> <p><?php echo _('Use the following tags in your subject, plain text or HTML code and they\'ll automatically be formatted when your campaign is sent. For web version and unsubscribe tags, you can style them with inline CSS.');?></p><br/> <div class="row-fluid"> <?php include('includes/helpers/personalization.tags.php');?> </div> </p> </div> </div> </form> </div> </div> <?php include('includes/footer.php');?>