/
home
/
neelkanthworld
/
public_html
/
Upload File
HOME
<?php require('amrendra_master/lib/configure.php'); function loadSection($title){ $current_page= $title; include 'include/header.php'; } loadSection("Certificate Verification"); $error= ""; if(!empty($_REQUEST['srch_certi'])) { $srch= $_REQUEST['reg_id']; $sql= "SELECT * FROM certificate WHERE `reg_id`='$srch'"; $path= "student_certificate.php?id=$srch"; $rs= mysqli_query($obj->mysqli,$sql); $row= mysqli_num_rows($rs); if($row==1){ $obj->redirect($path); } else{ $error= "Record not found..."; } } ?> <div class="certificate-page my-5"> <div class="container-fluid"> <div class="container"> <h2 class="text-center my-5">Certificate <span>Verification</span></h2> </div> <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="shadow h-100 py-3 px-3"> <?php if(!empty($error)) { echo "<div class='alert alert-warning alert-dismissible fade show' role='alert'> <strong>".$error."</strong> <button type='button' class='close' data-dismiss='alert' aria-label='Close'> <span aria-hidden='true'>×</span> </button> </div>"; } ?> <div class="form w-100"> <form action="#" method="post" class="form_very p-4" name="certificate" id="certificate" > <div class="input m-auto border rounded-3 d-flex align-items-center p-1"> <i class="fa-solid fa-magnifying-glass"></i> <input name="reg_id" type="text" placeholder="Enter Reg No." class="border-0 px-2 py-1" autocomplete="off"/> <input name="srch_certi" type="hidden" value="1"> <button class="btn rounded-3 border-0" name="submit">Search</button> </div> </form> </div> </div> </div> <div class="col-lg-4"> <div class="shadow h-100 py-3 px-3"> <h5 class="fw-bold">Recent Posts</h5> <?php $res= $obj->getTable('news','news_id desc'); if($res){ $i=1; foreach($res as $news_data){ ?> <div class="post-item d-flex mt-3 gap-2"> <img src="amrendra_master/upload/news/<?= $news_data['news_photo'] ?>" alt="" class="img-fluid border" style="width:50px;"> <div> <h4 class="fs-6 fw-bold"><a href="amr_news.php"><?= $news_data['news_title'] ?></a></h4> <time datetime="2020-01-01" class="fs-6 fw-normal"><?= date('d M Y',strtotime($news_data['news_date'])) ?></time> </div> </div><!-- End recent post item--> <?php } } ?> </div> </div> </div> </div> </div> </div> <!-------------------page ending ------------------------------> <?php include('include/footer.php'); ?>