ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/lilyexpresslive/software/admin/index.php |
<?php require_once('header.php'); ?> <section class="content-header"> <div class="row"> <div class="col-md-12"> <div class="col-md-12"> <center><img src="../assets/uploads/lily-logo.png" style="width: 25%;"></center> </div> </div> </div> </section> <style> .Head{ color:red; font-weight:bold; } </style> <?php $condition=""; /*if($clientType=="Admin"){ $condition=""; }else { $condition=" and client_id=$clientId"; }*/ ini_set('memory_limit', '1024M'); $statement = $pdo->prepare("SELECT * FROM `tbl_user` WHERE role!='Admin'"); $statement->execute(); $total_client = $statement->rowCount(); $statement = $pdo->prepare("SELECT count(id) as total_pincode,(SELECT count(id) from tbl_awb WHERE client_id=22 and status=1) as b_modicare_available, (SELECT count(id) from tbl_awb WHERE client_id=22 and status=2) as b_modicare_waiting_for_order, (SELECT count(id) from tbl_awb WHERE client_id=22 and status=0) as b_modicare_used, (SELECT count(id) from tbl_awb WHERE client_id=22) as b_modicare_total, (SELECT count(id) from tbl_awb WHERE client_id=28) as h_modicare_total, (SELECT count(id) from tbl_awb WHERE client_id=28 and status=1) as h_modicare_available, (SELECT count(id) from tbl_awb WHERE client_id=28 and status=2) as h_modicare_waiting_for_order, (SELECT count(id) from tbl_awb WHERE client_id=28 and status=0) as h_modicare_used, (SELECT count(id) FROM `pickup_entry` WHERE status='pending' $condition) as total_pending_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='pending' $condition) as total_pending_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='picked' $condition) as total_piked_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='Manifest' $condition) as total_manifest_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='In Transit' $condition) as total_intransit_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='Received at destination' $condition) as total_received_at_destination_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='Delivered' $condition) as total_delivery_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='Out for delivery' $condition) as total_out_for_delivery_pickup_entry, (SELECT count(id) FROM `pickup_entry` WHERE status='Undelivery' $condition) as total_undelivery_pickup_entry, (SELECT count(id) FROM `manifest`) as total_manifest FROM `pincode`"); $statement->execute(); $awb_result = $statement->fetchAll(PDO::FETCH_ASSOC); ?> <style> .blinking{ animation:blinkingText 1.0s infinite; font-size:25px; } @keyframes blinkingText{ 0%{ color: green; } 40%{ color: yellow; } 50%{ color: pink; } 99%{ color:red; } 100%{ color: #000; } } </style> <section class="content"> <div class="row"> <!-- <?php if($clientType=="Admin"){ ?> --> <a href="user.php"> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span> <div class="info-box-content"> <span class="info-box-text">Clients</span> <span class="info-box-number"><?php echo $total_client; ?></span> </div> </div> </div></a> <!-- <?php } ?>--> <a href="pincode.php"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-aqua"><i class="fa fa-map-marker"></i></span> <div class="info-box-content"> <span class="info-box-text">Total Pincode</span> <span class="info-box-number"><?php echo $awb_result[0]['total_pincode']; ?></span> </div> </div> </div> </a><a href="view-pickup-entry.php?status=pending"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-green"><i class="fa fa-question-circle"></i></span> <div class="info-box-content"> <span class="info-box-text">Pending Pickup-Entry</span> <span class="info-box-number"><?php echo $awb_result[0]['total_pending_pickup_entry']; ?></span> </div> </div> </div> </a><a href="view-pickup-entry.php?status=picked"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-green"><i class="fa fa-thumbs-up"></i></span> <div class="info-box-content"> <span class="info-box-text">Picked Pickup-Entry</span> <span class="info-box-number"><?php echo $awb_result[0]['total_piked_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=Manifest"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-green"><i class="fa fa-barcode"></i></span> <div class="info-box-content"> <span class="info-box-text">Manifest Pickup Entry</span> <span class="info-box-number"><?php echo $awb_result[0]['total_manifest_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=In Transit"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-orange"><i class="fa fa-truck"></i></span> <div class="info-box-content"> <span class="info-box-text">InTransit</span> <span class="info-box-number"><?php echo $awb_result[0]['total_intransit_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=Received at destination"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-orange"><i class="fa fa-university"></i></span> <div class="info-box-content"> <span class="info-box-text">Received At Destination</span> <span class="info-box-number"><?php echo $awb_result[0]['total_received_at_destination_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=Out for delivery"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-orange"><i class="fa fa-motorcycle"></i></span> <div class="info-box-content"> <span class="info-box-text">Out For Delivery</span> <span class="info-box-number"><?php echo $awb_result[0]['total_out_for_delivery_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=Delivered"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-blue"><i class="fa fa-cubes"></i></span> <div class="info-box-content"> <span class="info-box-text">Delivery</span> <span class="info-box-number"><?php echo $awb_result[0]['total_delivery_pickup_entry']; ?></span> </div> </div> </div> </a> <a href="view-pickup-entry.php?status=Undelivery"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-blue"><i class="fa fa-recycle"></i></span> <div class="info-box-content"> <span class="info-box-text">Un-Delivery</span> <span class="info-box-number"><?php echo $awb_result[0]['total_undelivery_pickup_entry']; ?></span> </div> </div> </div> </a> <?php if($clientType=="Admin"){ ?><a href="manifest.php"><div class="col-md-4 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-blue"><i class="fa fa-barcode"></i></span> <div class="info-box-content"> <span class="info-box-text">Manifest</span> <span class="info-box-number"><?php echo $awb_result[0]['total_manifest']; ?></span> </div> </div> </div></a><?php }?> </div> </section> <!--<section> <div class="row"> <div class="col-md-4 col-sm-6 col-xs-12" style="margin-left: 7%;"> <div> <div id="piechart"> </div> </div> </div> <div class="col-md-4 col-sm-6 col-xs-12"style="margin-left: 10%;"> <div class="info-box"> <div id="piechart1"> </div> </div> </div> </div> <div class="row"> <div class="col-md-4 col-sm-6 col-xs-12" style="margin-left: 7%;"> <div class="info-box"> <div id="piechart2"> </div> </div> </div> <div class="col-md-4 col-sm-6 col-xs-12"style="margin-left: 10%;"> <div class="info-box"> <div id="piechart3"> </div> </div> </div> </div> </section> --> <script type="text/javascript"> // Load google charts google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); // Draw the chart and set the chart values function drawChart() { var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['South', 8], ['Blr', 2], ['Karnataka', 4], ['North', 2], ['West', 8], ['East', 8] ]); var data1 = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['South', 3], ['Blr', 5], ['Karnataka', 4], ['North', 7], ['West', 3], ['East', 6] ]); var data2 = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['Delivery', 8], ['In Transit', 2], ['Out For Delivery', 4], ]); var data3 = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['24 Hours', 8], ['48 Hours', 2], ['72 Hours', 4], ['96 Hours', 2], ['120 Hours', 8], ]); // Optional; add a title and set the width and height of the chart var options = {'title':'Zone Distributors', 'width':550, 'height':400}; var options1 = {'title':'RTO %', 'width':550, 'height':400}; var options2 = {'title':'Total Summery', 'width':550, 'height':400}; var options3 = {'title':'DELIVERY TAT', 'width':550, 'height':400}; // Display the chart inside the <div> element with id="piechart" var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); var chart = new google.visualization.PieChart(document.getElementById('piechart1')); chart.draw(data1, options1); var chart = new google.visualization.PieChart(document.getElementById('piechart2')); chart.draw(data2, options2); var chart = new google.visualization.PieChart(document.getElementById('piechart3')); chart.draw(data3, options3); } </script> <?php require_once('footer.php'); ?>