| Current Path : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/pages/manage_emails/ |
| Current File : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/pages/manage_emails/content.phtml |
<script src="<?php echo Wo_LoadAdminLink('vendors/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>
<?php $wo['emails'] = Wo_GetHtmlEmails(); ?>
<div class="container-fluid">
<div>
<h3>Manage Emails</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Home</a>
</li>
<li class="breadcrumb-item">
<a href="#">Tools</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Manage Emails</li>
</ol>
</nav>
</div>
<!-- Vertical Layout -->
<div class="row">
<div class="col-lg-8 col-md-8">
<div class="card">
<div class="card-body">
<h6 class="card-title">Edit System E-mails</h6>
<div class="alert alert-success">If you want to add translated texts you can use {{LANG key}} and replace key word with the key from Languages.</div>
<div class="add-settings-alert"></div>
<form class="add-settings" method="POST">
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Activate Account (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{USERNAME}} , {{SITE_URL}} , {{EMAIL}} , {{CODE}} , {{SITE_NAME}} in the right place</div>
<textarea name="activate" id="activate" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['activate'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Invite Email (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{USERNAME}} , {{SITE_URL}} , {{NAME}} , {{URL}} , {{SITE_NAME}} , {{BACKGOUND_COLOR}} in the right place</div>
<textarea name="invite" id="invite" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['invite'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Login With (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{FIRST_NAME}} , {{SITE_NAME}} , {{USERNAME}} , {{EMAIL}} in the right place</div>
<textarea name="login_with" id="login_with" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['login_with'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Notification (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{SITE_NAME}} , {{NOTIFY_URL}} , {{NOTIFY_AVATAR}} , {{NOTIFY_NAME}} , {{TEXT_TYPE}} , {{TEXT}} , {{URL}} in the right place</div>
<textarea name="notification" id="notification" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['notification'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Payment Declined (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{name}} , {{amount}} , {{site_name}} in the right place</div>
<textarea name="payment_declined" id="payment_declined" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['payment_declined'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Payment Approved (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{name}} , {{amount}} , {{site_name}} in the right place</div>
<textarea name="payment_approved" id="payment_approved" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['payment_approved'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Recover (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{USERNAME}} , {{SITE_NAME}} , {{LINK}} in the right place</div>
<textarea name="recover" id="recover" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['recover'];?></textarea>
</div>
</div>
<br>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Unusual Login (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{USERNAME}} , {{SITE_NAME}} , {{CODE}} , {{DATE}} , {{EMAIL}} , {{COUNTRY_CODE}} , {{IP_ADDRESS}} , {{CITY}} in the right place</div>
<textarea name="unusual_login" id="unusual_login" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['unusual_login'];?></textarea>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<label class="form-label">Account Deleted (HTML Allowed)</label>
<div class="alert alert-warning">Make sure to add {{USERNAME}} , {{SITE_NAME}} in the right place</div>
<textarea name="account_deleted" id="account_deleted" class="form-control" cols="30" rows="10"><?php echo $wo['emails']['account_deleted'];?></textarea>
</div>
</div>
<br>
<input type="hidden" name="hash_id" value="<?php echo Wo_CreateSession();?>">
<button type="submit" class="btn btn-primary m-t-15 waves-effect">Save</button>
</form>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<!-- #END# Vertical Layout -->
<script>
$(function() {
var form_add_settings = $('form.add-settings');
form_add_settings.ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=admin_setting&s=update_html_emails',
beforeSend: function() {
form_add_settings.find('.waves-effect').text('Please wait..');
},
beforeSubmit : function(arr, $form, options){
// for (var i = 0; i < arr.length; i++) {
// if (arr[i].name == "activate") {
// arr[i].value = btoa(unescape(encodeURIComponent($('#activate').value=tinymce.editors[$('#activate').attr('id')].getContent())));
// }
// if (arr[i].name == 'invite') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#invite').value=tinymce.editors[$('#invite').attr('id')].getContent())));
// }
// if (arr[i].name == 'login_with') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#login_with').value=tinymce.editors[$('#login_with').attr('id')].getContent())));
// }
// if (arr[i].name == 'notification') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#notification').value=tinymce.editors[$('#notification').attr('id')].getContent())));
// }
// if (arr[i].name == 'payment_declined') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#payment_declined').value=tinymce.editors[$('#payment_declined').attr('id')].getContent())));
// }
// if (arr[i].name == 'payment_approved') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#payment_approved').value=tinymce.editors[$('#payment_approved').attr('id')].getContent())));
// }
// if (arr[i].name == 'recover') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#recover').value=tinymce.editors[$('#recover').attr('id')].getContent())));
// }
// if (arr[i].name == 'unusual_login') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#unusual_login').value=tinymce.editors[$('#unusual_login').attr('id')].getContent())));
// }
// if (arr[i].name == 'account_deleted') {
// arr[i].value = btoa(unescape(encodeURIComponent($('#account_deleted').value=tinymce.editors[$('#account_deleted').attr('id')].getContent())));
// }
// }
},
success: function(data) {
if (data.status == 200) {
$("html, body").animate({ scrollTop: 0 }, "slow");
$('.add-settings-alert').html('<div class="alert alert-success"><i class="fa fa-check"></i> Emails saved successfully</div>');
} else if (data.status == 400) {
$('.add-settings-alert').html('<div class="alert alert-danger">'+data.message+'</div>');
setTimeout(function () {
$('.add-settings-alert').empty();
}, 2000);
}
form_add_settings.find('.waves-effect').text('Save');
}
});
tinymce.init({
selector: '#activate',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#invite',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#login_with',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#notification',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#payment_declined',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#payment_approved',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#recover',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#unusual_login',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
tinymce.init({
selector: '#account_deleted',
height: 270,
plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
mergetags_list: [
{ value: 'First.Name', title: 'First Name' },
{ value: 'Email', title: 'Email' },
],
setup: function(editor) {
editor.on('change', function() {
// Update the textarea value with the modified content
tinymce.triggerSave();
});
}
});
});
</script>