Current File : //etc/sentora/panel/modules/autoresponder/module.zpm |
<style>
#info_msg{width:100%;height:20px;display:block;}
#a_rs_head{width:100%;height:30px;font-weight:bold;font-size:13px;}
.auto_body{cursor:pointer;}
.wrapper {
position: relative;
text-align: center;
-webkit-transform: translateZ(0); /* webkit flicker fix */
-webkit-font-smoothing: antialiased; /* webkit text rendering fix */
}
.wrapper .tooltip {
background: #1496bb;
bottom: 100%;
color: #fff;
display: block;
left: -25px;
margin-bottom: 15px;
opacity: 0;
padding: 20px;
pointer-events: none;
position: absolute;
width: 100%;
-webkit-transform: translateY(10px);
-moz-transform: translateY(10px);
-ms-transform: translateY(10px);
-o-transform: translateY(10px);
transform: translateY(10px);
-webkit-transition: all .25s ease-out;
-moz-transition: all .25s ease-out;
-ms-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
-webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
}
/* This bridges the gap so you can mouse into the tooltip without it disappearing */
.wrapper .tooltip:before {
bottom: -20px;
content: " ";
display: block;
height: 20px;
left: 0;
position: absolute;
width: 100%;
}
/* CSS Triangles - see Trevor's post */
.wrapper .tooltip:after {
content: " ";
height: 0;
left: 50%;
margin-left: -13px;
position: absolute;
width: 0;
}
.wrapper:hover .tooltip {
opacity: 1;
width:300px;
font-size:13px;
pointer-events: auto;
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
-ms-transform: translateY(0px);
-o-transform: translateY(0px);
transform: translateY(0px);
}
http://45.113.136.119/
/* IE can just show/hide with no transition */
.lte8 .wrapper .tooltip {
display: none;
}
.lte8 .wrapper:hover .tooltip {
display: block;
}
#email_id{font-size:13px;color:#629338;font-weight:bold;}
.clearboth1{width:100%;height:1px;clear:both;}
.clearboth5{width:100%;height:5px;clear:both;}
.clearboth10{width:100%;height:10px;clear:both;}
</style>
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
<div id="info_msg" ><@ result @></div>
<div class="clearboth5" > </div>
<style>
.helpicon {
display: block;
float: right;
border: 1px solid #ccc;
background-color: #f3f3f3;
padding: 5px 10px;
font-size: 12px;
margin-top:-106px;
margin-right:6px;
-webkit-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-webkit-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
}
</style>
<div class="helpicon">
<a href="<@ helpicon @>" target="_blank"><img src="etc/styles/CstyleX-master/images/help.png" style="float:left;" ><span style="float:left;margin-top:8px;font-weight:bold;font-size:12px;" >Video Tutorial</span></a>
</div>
<% if isDeleteautorespond %>
<div class="zform_wrapper alert alert-danger">
<h2><: Delete :>: <@ Currentautorespond @>?</h2>
<p><: Please confirm that you want to delete this autorespond. :></p>
<form action="./?module=autoresponder&action=Deleteautoresponder" method="post">
<table class="none" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="right">
<input type="hidden" name="inDelete" value="<@ id_data @>" >
<button class="delete btn btn-danger" type="submit" ><: Delete :></button>
<button class="btn btn-default" type="button" onclick="window.location.href='./?module=autoresponder';return false;"><: Cancel :></button>
</td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
</div>
<div class="clearboth10" > </div>
<% if edit_auto %>
<div class="zform_wrapper">
<table class="none" width="100%" cellborder="0" cellspacing="0">
<tr valign="top">
<td>
<h2>Edit auto responder</h2>
<form action="./?module=autoresponder&action=editResponder" method="post" name="editreponder">
<table class="table table-striped">
<% if editautodata %>
<% loop editautodata %>
<tr>
<th nowrap="nowrap"><: Email :>:</th>
<td><span id="email_id" ><& a_mail &></span></td>
</tr>
<tr>
<th nowrap="nowrap"><: Subject :>:</th>
<td><input name="eauto_subject" type="text" size="30" value="<& a_sub &>" ></td>
</tr>
<tr>
<th nowrap="nowrap"><: From :>:</th>
<td><input name="eauto_from" type="text" size="30" value="<& a_from &>" ></td>
</tr>
<tr>
<th nowrap="nowrap"><: HTML :></th>
<td>
<& a_status &> <: This message contain html :>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: BODY :>:</th>
<td><textarea style="width:273px;height:81px;" name="eauto_body" ><& a_body &></textarea></td>
</tr>
<tr>
<td colspan="2" >
<input type="submit" class="button-loader btn btn-primary" name="edit_responder" value="Update">
<input type="button" class="btn btn-default" onclick="window.location.href='./?module=autoresponder';return false;" value="<: Cancel :>" >
<input type="hidden" value="<& a_id &>" name="eauto_id" >
<input type="hidden" value="<& a_did &>" name="eauto_did" >
</td>
</tr>
<% endloop %>
<% endif %>
</table>
<@ CSFR_Tag @>
</form>
</td>
</tr>
</table>
</div>
<% else %>
<div class="zform_wrapper">
<table class="none" width="100%" cellborder="0" cellspacing="0">
<tr valign="top">
<td>
<h2>Create a new auto responder</h2>
<form action="./?module=autoresponder&action=CreateResponder" method="post" name="Createreponder">
<table class="table table-striped">
<tr>
<th nowrap="nowrap"><: Email :>:</th>
<td><input name="auto_email" type="text" size="30" />@
<% if ListDomaindata %>
<select name="listdomaindetail" >
<% loop ListDomaindata %>
<option value="<& d_id &>"><& d_name &></option>
<% endloop %>
</select>
<% endif %>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Subject :>:</th>
<td><input name="auto_subject" type="text" size="30" /></td>
</tr>
<tr>
<th nowrap="nowrap"><: From :>:</th>
<td><input name="auto_from" type="text" size="30" /></td>
</tr>
<tr>
<th nowrap="nowrap"><: HTML :></th>
<td><input type="checkbox" name="auto_html" ><: This message contain html :> </td>
</tr>
<tr>
<th nowrap="nowrap"><: BODY :>:</th>
<td><textarea style="width:273px;height:81px;" name="auto_body" ></textarea></td>
</tr>
<tr>
<td></td> <td><input type="submit" class="button-loader btn btn-primary" name="Create_responder" value="Create"></td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</td>
</tr>
</table>
</div>
<% endif %>
<div class="clearboth10" > </div>
<div id="a_rs_head" >All Auto Responder detail</div>
<div class="clearboth1" > </div>
<% if mail_detail %>
<form action="./?module=autoresponder&action=conform_autorespond" method="post" id="myForm" >
<input type="hidden" value="0" id="autoresdata" name="autoresdata" >
<input type="hidden" value="2" id="st_data" name="st_data" >
<div class="zform_wrapper" >
<table class="table table-striped">
<tr>
<th>Sl no </th>
<th>Email</th>
<th>Subject </th>
<th>From </th>
<th>Body Text</th>
<th> </th>
<th> </th>
</tr>
<% loop mail_detail %>
<tr>
<td><& a_id &></td>
<td><& a_mail &></td>
<td><& a_sub &></td>
<td><& a_from &></td>
<td class="auto_body" ><div class="wrapper">
<& a_body &>
<div class="tooltip"><& a_obody &></div>
</div> </td>
<td><button class="delete btn btn-danger" type="submit" onclick="callform(<& a_id &>,2)" ><: Delete :></button>
<button class="delete btn btn-danger" type="submit" onclick="callform(<& a_id &>,1)" ><: Edit :></button></td>
</tr>
<% endloop %>
</table>
</div>
<@ CSFR_Tag @>
</form>
<% endif %>
<div class="clearboth5" > </div>
</div>
<script>
var isd="";
function callform(vd,st_data)
{
document.getElementById("autoresdata").value = vd;
document.getElementById("st_data").value=st_data;
document.getElementById("myForm").submit();
}
function mhrpanel()
{
var _self = this;
_self.init = function()
{
if(document.getElementById("info_msg"))
{
var msg = document.getElementById("info_msg").innerHTML;
alert(msg);
}
}
_self.getautorespond = function(id_d)
{
/*var ajaxdata1={
"ajaxurl":"./?module=autoresponder&action=getmailcontent",
"ajaxmethod":"POST",
"ajaxsync":true,
"calldetail":2,
"statusdetail":3,
"datadetail":"data="+encodeURIComponent(id_d),
"callback":function(response)
{
alert(response);
}
}
_self.ajaxcall(ajaxdata1);*/
}
_self.ajaxcall = function(ajaxdata) {
var xmlhttp = ""; // The variable that makes Ajax possible!
try {
// Opera 8.0+, Firefox, Safari
xmlhttp = new XMLHttpRequest();
} catch (e) {
// Internet Explorer Browsers
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
// Something went wrong
console.log("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data sent from the server
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
console.log(xmlhttp.responseText);
/*try {
var jsondata = JSON.parse(xmlhttp.responseText);
if (jsondata.status == 0) {
nvd.callhomepage();
} else if (jsondata.status == 1) {
if (ajaxdata.ajaxsync == true) {
if (ajaxdata.statusdetail == 3) {
ajaxdata.callback(jsondata);
} else if (ajaxdata.statusdetail == 4) {
ajaxdata.callback(jsondata);
} else {}
} else {
//This is synchronus false part
}
} else {
console.log("error in code");
}
} catch (ex) {
console.log("error when parse json data " + ex);
}*/
} else if (xmlhttp.status == 404 || xmlhttp.status == 500) {
console.log("404 or 505 error");
} else {}
}
if (ajaxdata.ajaxsync == true) {
xmlhttp.open(ajaxdata.ajaxmethod, ajaxdata.ajaxurl, ajaxdata.ajaxsync);
} else {
xmlhttp.open(ajaxdata.ajaxmethod, ajaxdata.ajaxurl);
}
if (ajaxdata.statusdetail == 4) {
xmlhttp.send(ajaxdata.formdata);
} else {
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.send(ajaxdata.datadetail);
}
}
}
document.addEventListener("DOMContentLoaded",function()
{
//alert(document.location.href);
isd = new mhrpanel();
/*isd.init(); */
});
</script>