hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
u932676976
/
domains
/
goldeninfradeveloper.com
/
public_html
/
manager
/
Upload FileeE
HOME
<?php include 'function.php'; include 'db.php'; session_start(); $userprofile= $_SESSION['user_name']; $query = "SELECT * from user where username='$userprofile'"; $data= mysqli_query($con, $query); $result= mysqli_fetch_assoc($data); $usercode=$result['usercode']; $image=$result['image']; $name=$result['name']; if (isset($_SESSION['user_name'])) { // print " no session exists"; }else{header("location:register.php");} ?> <!DOCTYPE html> <html lang="en"> <?php include 'head.php';?> <body> <?php include 'header.php';?> <?php include 'sidebar.php';?> <main id="main" class="main"> <section class="section dashboard"> <div class="row"> <!-- Left side columns --> <div class="col-lg-12"> <div class="row"> <!-- Recent Sales --> <div class="col-12"> <div class="card recent-sales overflow-auto"> <div class="card-body"> <h5 class="card-title">Customer Wise Plot Details</h5> <table class="table table-borderless datatable"> <thead> <tr> <th scope="col">Customer</th> <th scope="col">PlotNo</th> <th scope="col">Update</th> </tr> </thead> <tbody><?php function plotlist(){ include 'db.php'; $ddd="select * from tenure order by tenureid desc"; $dd=mysqli_query($con,$ddd); while($d=mysqli_fetch_assoc($dd)){ $usercode=$d['usercode']; $plotco=$d['plotcode']; $joining=$d['dt']; $joining=date('d-m-Y',strtotime($joining)); $tenureid=$d['tenureid']; $eee="select * from user where usercode='$usercode'"; $ee=mysqli_query($con,$eee); $e=mysqli_fetch_assoc($ee); $name=$e['name']; $cont=$e['contact']; $refcode=$e['referal']; $aaa="select * from plot where plotcode='$plotco'"; $aa=mysqli_query($con,$aaa); $a=mysqli_fetch_assoc($aa); $plotno=$a['plotno']; $plotid=$a['plotid']; $plotcode=$a['plotcode']; echo "<tr><td><b>$name</b><br>$cont<br>$joining<td>$plotno</td><td><form method='POST' action='plot_upd.php'><input type='hidden' name='plotid' value='$plotid'><input type='hidden' name='plotno' value='$plotno'><input type='hidden' name='plotcode' value='$plotcode'><input type='hidden' name='name' value='$name'><input type='hidden' name='usercode' value='$usercode'><input type='hidden' name='tenureid' value='$tenureid'><input type='submit' name='plot_update' value='Update'></form></td></tr>"; } } plotlist(); ?></tbody> </table> </div> </div> </div><!-- End Recent Sales --> </div> </div><!-- End Left side columns --> </div> </section> </main><!-- End #main --> <?php include 'footer.php';?> <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <script src="assets/vendor/apexcharts/apexcharts.min.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/chart.js/chart.min.js"></script> <script src="assets/vendor/echarts/echarts.min.js"></script> <script src="assets/vendor/quill/quill.min.js"></script> <script src="assets/vendor/simple-datatables/simple-datatables.js"></script> <script src="assets/vendor/tinymce/tinymce.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <script src="assets/js/main.js"></script> </body> </html>