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/i-card.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 --> <?php if(isset($_REQUEST['page'])) { $page_id = $_REQUEST['page']; } else { $page_id = 1; } $num_of_posts = 20; if(isset($_POST['search'])) { $search = $_POST['search']; $query = "SELECT * FROM `online_registration` where `i_card_status` = 1 and `mobile` = '$search'"; $rq = mysqli_query($con, $query); $all_post = mysqli_num_rows($rq); $total_pages = ceil($all_post / $num_of_posts); $page_start_from = ($page_id - 1) * $num_of_posts; } else { $query = "SELECT * FROM `online_registration` where `i_card_status` = 1"; $rq = mysqli_query($con, $query); $all_post = mysqli_num_rows($rq); $total_pages = ceil($all_post / $num_of_posts); $page_start_from = ($page_id - 1) * $num_of_posts; } ?> <main class="page-content"> <!-- About Us Area --> <?php if(isset($_POST['search'])) { $search = $_POST['search']; $i_card = "SELECT * FROM `online_registration` where `i_card_status` = 1 and `registration_number` = '$search' limit $page_start_from, $num_of_posts"; } else { $i_card = "SELECT * FROM `online_registration` where `i_card_status` = 1 limit $page_start_from, $num_of_posts"; } $run = mysqli_query($con, $i_card); if(mysqli_num_rows($run) > 0) { ?> <div class="about-us-area section-ptb2"> <div class="container"> <div class="row"> <div class="col-lg-12"> <h3><span style="color:#bb0c0c;font-weight:700">I Card</span></h3> <div class="row"> <div class="col-md-4 offset-md-4"> <form action="i-card.php" method="post"> <div class="input-group mb-3"> <input type="text" name="search" class="form-control" placeholder="Enter Your Registration Number" 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> <?php if(isset($_POST["search"])) { ?> <div class="about-us-contents table-responsive"> <h3>I <span>Card</span></h3> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Reg_no</th> <th>Reg_Date</th> <th>Image</th> <th>Name</th> <th>Mobile</th> <th>Course</th> <th>Centre Name</th> <th>Date Of Issue</th> <th>Download</th> </tr> </thead> <tbody> <?php while($row = mysqli_fetch_array($run)) { ?> <tr> <td><?php echo ++$page_start_from;?></td> <td><?php echo $row['registration_number'];?></td> <td><?php echo date("d/m/y", strtotime($row['dt']));?></td> <td><img src="images/registration/<?php echo $row['image'];?>" width="40px" class="img-fluid rounded" alt=""></td> <td><?php echo $row['name'];?></td> <td><?php echo $row['mobile'];?></td> <td><?php echo $row['course'];?></td> <td><?php echo $row['centre_name'];?></td> <td><?php echo date("d/m/y", strtotime($row['doi']));?></td> <td><a href="icard.php?id=<?php echo $row['id'];?>" target="_blank" class="btn btn-danger"><i class="zmdi zmdi-download"></i> Download</a></td> <!--<td><a href="Id/print.php?id_card=<?php //echo $row['registration_number'];?>" target="_blank" class="btn btn-success btn-sm"><i class="zmdi zmdi-download"></i> Download</a></td>---> </tr> <?php } ?> </tbody> </table> <ul class="pagination"> <?php for($i = 1;$i <= $total_pages;$i++) { echo "<li class='page-item ".($page_id == $i?'active':'')."'><a class='page-link' href='i-card.php?page=".$i."'>".$i."</a></li>"; } ?> </ul> </div> </div> <?php } ?> </div> </div> </div> <?php } else { ?> <h3 style="padding: 100px; text-align: center;">Coming Soon....</h3> <?php } ?> </main> <!--// About Us Area --> </div> <!-- footer --> <?php include("inc/footer.php"); ?> <!-- end footer -->