GIF89a
<?php
include("include/header.php");
// Get the current date and time
$current_date = new DateTime();
// Subtract one day
$current_date->modify('-1 day');
// Print the result
$previousDay = $current_date->format('Y-m-d H:i:s');
$strConv = strtotime($previousDay);
mysqli_query($con,"delete from `cart` where paysts IS NULL and order_date<$strConv");
//delete from services
mysqli_query($con,"delete from `contact_tbl` where paysts IS NULL AND transID IS NULL and enquiryType!='Contact Enquiry' and code_id<$strConv");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="img/favicon.png">
<title><?php include("include/title.php")?> | Dashbord</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-reset.css" rel="stylesheet">
<link href="../css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!--external css-->
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="assets/jquery-easy-pie-chart/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/owl.carousel.css" type="text/css">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet" />
</head>
<body>
<?php include 'popup.php';?>
<!--header end-->
<!--sidebar start-->
<?php include 'menu.php'; ?>
<!--sidebar end-->
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<!--state overview start-->
<div class="row state-overview">
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol terques"> <i class="fa fa-calendar"></i> </div>
<div class="value">
<h3> <?php echo date('d/m/y'); ?> </h3>
<p>Today</p>
</div>
</section>
</div>
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol red"> <i class="fa fa-clock-o"></i> </div>
<div class="value">
<h3> <?php echo date('H:i:s');?> </h3>
<p>Time</p>
</div>
</section>
</div>
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol yellow"> <i class="fa fa-calendar-plus-o"></i> </div>
<div class="value">
<h3> <?php echo date('D');?> </h3>
<p>Day</p>
</div>
</section>
</div>
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol blue"> <i class="fa fa-calendar-plus-o"></i> </div>
<div class="value">
<h3> <?php echo date('M');?> </h3>
<p>Month</p>
</div>
</section>
</div>
</div>
<!--state overview end-->
<div class="row state-overview">
<div class="col-lg-3 col-sm-6"> <a href="menu%20create.php">
<section class="panel">
<div class="symbol red"> <i class="icon-bar-chart"></i> </div>
<div class="value">
<h5>Category </h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select * from menu"));?></h4>
</div>
</section>
</a> </div>
<div class="col-lg-3 col-sm-6"> <a href="productdetails.php">
<section class="panel">
<div class="symbol terques"> <i class="fa fa-product-hunt "></i> </div>
<div class="value">
<h5> All Product </h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select id from product"));?></h4>
</div>
</section>
</a> </div>
<div class="col-lg-3 col-sm-6"> <a href="new-regis.php">
<section class="panel">
<div class="symbol red"> <i class="fa fa-users"></i> </div>
<div class="value">
<h5>New Registration </h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select uid from `register` WHERE reg_id NOT IN (SELECT reg_id FROM `cart`)"));?></h4>
</div>
</section>
</a> </div>
<div class="col-lg-3 col-sm-6"> <a href="regis.php">
<section class="panel">
<div class="symbol red"> <i class="fa fa-users"></i> </div>
<div class="value">
<h5>Existing Registration </h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select uid from `register` WHERE reg_id IN (SELECT reg_id FROM `cart`)"));?></h4>
</div>
</section>
</a> </div>
<div class="col-lg-3 col-sm-6"> <a href="order-details.php">
<section class="panel">
<div class="symbol yellow"> <i class="fa fa-gift"></i> </div>
<div class="value">
<h5>All Orders</h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select id from cart where paysts='Success'"));?></h4>
</div>
</section>
</a> </div>
<div class="col-lg-3 col-sm-6"> <a href="add2_details.php">
<section class="panel">
<div class="symbol red"> <i class="fa fa-image"></i> </div>
<div class="value">
<h5>Banner </h5>
<h4><?php echo mysqli_num_rows(mysqli_query($con,"select * from adv_tbl2"));?></h4>
</div>
</section>
</a> </div>
</div>
<!-- page start-->
<!--footer end-->
<!-- js placed at the end of the document so the pages load faster -->
<script src="https://use.fontawesome.com/32f073b29a.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script class="include" type="text/javascript" src="js/jquery.dcjqaccordion.2.7.js"></script>
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/jquery.nicescroll.js" type="text/javascript"></script>
<script src="js/jquery.sparkline.js" type="text/javascript"></script>
<script src="assets/jquery-easy-pie-chart/jquery.easy-pie-chart.js"></script>
<script src="js/owl.carousel.js" ></script>
<script src="js/jquery.customSelect.min.js" ></script>
<script src="js/respond.min.js" ></script>
<script class="include" type="text/javascript" src="js/jquery.dcjqaccordion.2.7.js"></script>
<!--common script for all pages-->
<script src="js/common-scripts.js"></script>
<!--script for this page-->
<script src="js/sparkline-chart.js"></script>
<script src="js/easy-pie-chart.js"></script>
<script src="js/count.js"></script>
<script>
//owl carousel
$(document).ready(function() {
$("#owl-demo").owlCarousel({
navigation : true,
slideSpeed : 300,
paginationSpeed : 400,
singleItem : true,
autoPlay:true
});
});
//custom select box
$(function(){
$('select.styled').customSelect();
});
</script>
</body>
</html>