| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/247sms.com/wwwroot/dashboard/ |
Upload File : |
<?php
include "general2.php";
include "connect.php";
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
<title>.::.247sms.com, The Bulksms People</title>
<meta name="keywords" content="sms, ems, bulk sms, massive sms,sms messenging,sms,bulk,cheap sms, low price sms,sms gateway,sms provider,sms nigeria,cheap sms, low pri sms, global sms, wide coverage sms, all countries sms, smpp, sms gateway" />
<meta name="description" content="sms messenging,sms,bulk,cheap sms, bulksms,low price sms,sms gateway,sms provider,sms nigeria, tone, tones, massive sms, smpp, smpp provider, bulksms, bulksms provider" />
<script language="JavaScript" src="count.js"></script>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/templatemo_main.css">
</head>
<body>
<div class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<div class="logo"><h1>247sms.com<span>Welcome <?php $username=$_SESSION['username'];
//$username=getUsername("nosaosahon",'247sms.com');
echo $username." ";
?>Credit: <?php
$bal=getBalance($username,$domain);
echo $bal."
(Customer Care 07062012965) ";
?></span></h1></div>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
</div>
<div class="template-page-wrapper">
<div class="navbar-collapse collapse templatemo-sidebar">
<ul class="templatemo-sidebar-menu">
<li>
<form class="navbar-form">
<input type="text" class="form-control" id="templatemo_search_box" placeholder="Search...">
<span class="btn btn-default">Go</span>
</form>
</li>
<li class="active"><a href="dashboard.php"><i class="fa fa-home"></i>Dashboard</a></li>
<li class="sub" >
<a href="javascript:;">
<i class="fa fa-database"></i>To Send Message <div class="pull-right"><span class="caret"></span></div>
</a>
<ul class="templatemo-submenu"><li><a href="sendsms.php">Send Message</a></li>
<li><a href="sendaddress.php">Send Message Address</a></li>
<li><a href="sendaddressperson.php">Send Personalized Message</a></li>
<li><a href="addressbookupload.php">Create Addressbook</a></li>
<li><a href="addressbookuploadperson.php">Create Personalized Addressbook</a></li>
<li><a href="manaddressbook.php">Manage Addressbook</a></li>
<li><a href="manschedule.php">Manage Schedule</a></li>
</ul>
</li>
<li><a href="onlinepayment.php"><i class="fa fa-bank"></i>Online Payment</a></li>
<li><a href="messageawait.php"><i class="fa fa-cubes"></i>Messagelogs</a></li>
<li><a href="accounthis.php"><i class="fa fa-archive"></i>Account History</a></li>
<li><a href="paymenthis.php"><i class="fa fa-users"></i>Payment History</a></li>
<li><a href="preferences.php"><i class="fa fa-cog"></i>Preferences</a></li>
<li><a href="javascript:;" data-toggle="modal" data-target="#confirmModal"><i class="fa fa-sign-out"></i>Sign Out</a></li>
</ul>
</div><!--/.navbar-collapse -->
<div class="templatemo-content-wrapper">
<div class="templatemo-content">
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="index.php">Dashboard</a></li>
<li><a href="index.php">Overview</a></li>
<li class="active">Sendsms - without Addressbook</li>
</ol>
<?php
$sn = isset($_GET['sn']) ? $_GET['sn'] : '';
$bookname = isset($_GET['bookname']) ? $_GET['bookname'] : '';
?>
<?php
$errno = isset($_GET['err']) ? $_GET['err'] : '';
if($errno ==='0')
{
//$cnt = isset($_GET['cnt']) ? $_GET['cnt'] : '';
echo "<div class='alert alert-success alert-dismissible' role='alert'><button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>
<strong>Success!</strong> Record updated successfully.</div>";
}
if($errno ==='2')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, You must start from this point to update your addressbook</div>";
}
if($errno ==='2')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, Phonenumber cannot be blank</div>";
}
if($errno ==='3')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, Phonenumber cannot be longer than 20 digits</div>";
}
if($errno ==='4')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, field1 to field4 cannot be longer than 20 characters...</div>";
}
if($errno ==='5')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, Message field length cannot be more than 1500 characters...</div>";
}
if($errno ==='6')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, Nigeria phonenumbers must be 13 digits long..</div>";
}
if($errno ==='7')
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Sorry, phonenumbers must be numeric..</div>";
}
?>
<?php
$query = "select sn,phonenumber, field1,field2,field3,field4,field5 from addressbook247sms where username='".$username. "' and domain ='".$domain."' and bookname='".$bookname."' and sn=".$sn;
//echo $query;
if(!$result= mysqli_query($con,$query))
{
//echo mysqli_error($con);
echo "Database error please try again";
mysqli_close($con);
exit();
}
if ( mysqli_num_rows($result)> 0 ){
while($row = mysqli_fetch_array($result))
{
$phone= $row['phonenumber'];
$field1= $row['field1'];
$field2= $row['field2'];
$field3= $row['field3'];
$field4= $row['field4'];
$field5= $row['field5'];
$_SESSION['phone']= $row['phonenumber'];
$_SESSION['field1']= $row['field1'];
$_SESSION['field2']= $row['field2'];
$_SESSION['field3']= $row['field3'];
$_SESSION['field4']= $row['field4'];
$_SESSION['field5']= $row['field5'];
}
}
mysqli_close($con);
$_SESSION['editrecord'] ="yes";
?>
<div class="row">
<div class="col-md-12">
<form role="form" id="templatemo-preferences-form" method="post" action="mandaddressbookeditrecord.php" name ="mess">
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Phonenumber</label><span>(Not more than 20 digits)</span>
<input type="text" class="form-control" id="phoenumber" name="phonenumber" maxlength="20" value="<?php echo $_SESSION["phone"];?>" required/>
</div>
</div>
<span>(Leave Field1 to Field5 blank if not used for Personalized Message.</span><br>
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Field1</label>
<input type="text" class="form-control" id="field1" name="field1" maxlength="20" value="<?php echo $_SESSION["field1"];?>" />
</div>
</div>
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Field2</label>
<input type="text" class="form-control" id="field2" name="field2" maxlength="20" value="<?php echo $_SESSION["field2"];?>" />
</div>
</div>
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Field3</label>
<input type="text" class="form-control" id="field3" name="field3" maxlength="20" value="<?php echo $_SESSION["field3"];?>" />
</div>
</div>
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Field4</label>
<input type="text" class="form-control" id="field4" name="field4" maxlength="20" value="<?php echo $_SESSION["field4"];?>" />
</div>
</div>
<div class="row">
<div class="col-md-6 margin-bottom-15">
<label for="firstName" class="control-label">Field5</label>
<input type="text" class="form-control" id="field5" name="field5" maxlength="20" value="<?php echo $_SESSION["field5"];?>" />
</div>
</div>
<div class="row templatemo-form-buttons">
<div class="col-md-12">
<button type="submit" class="btn btn-primary" name ='submit' value="submit">Update</button>
<?php echo "<input type='hidden' name='sn' value='". $sn ."' />"; ?>
<?php echo "<input type='hidden' name='bookname' value='". $bookname ."' />"; ?>
<button type="submit" class="btn btn-default" name ='submit' value="cancel">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
</div>
<div class="modal-footer">
<a href="processlogout.php?res=yes" class="btn btn-primary">Yes</a>
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
<footer class="templatemo-footer">
<div class="templatemo-copyright">
<p>Copyright © 2003 Swift Alliance Ltd</p>
</div>
</footer>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/templatemo_script.js"></script>
<script type="text/javascript">
// Line chart
var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
var lineChartData = {
labels : ["January","February","March","April","May","June","July"],
datasets : [
{
label: "My First dataset",
fillColor : "rgba(220,220,220,0.2)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
pointHighlightFill : "#fff",
pointHighlightStroke : "rgba(220,220,220,1)",
data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
},
{
label: "My Second dataset",
fillColor : "rgba(151,187,205,0.2)",
strokeColor : "rgba(151,187,205,1)",
pointColor : "rgba(151,187,205,1)",
pointStrokeColor : "#fff",
pointHighlightFill : "#fff",
pointHighlightStroke : "rgba(151,187,205,1)",
data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
}
]
}
window.onload = function(){
var ctx_line = document.getElementById("templatemo-line-chart").getContext("2d");
window.myLine = new Chart(ctx_line).Line(lineChartData, {
responsive: true
});
};
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
$('#loading-example-btn').click(function () {
var btn = $(this);
btn.button('loading');
// $.ajax(...).always(function () {
// btn.button('reset');
// });
});
</script>
</body>
</html>