<?php
require('db.php');
include "x.php";
?>
<!doctype html>
<html lang="en">
  <head>
    
     <?php include "include/meta.php"; ?>

     <?php include "include/css.php"; ?>

       <link rel="stylesheet" href="assets/css/bootstrap.css">
<style>
  td{
    padding: 10px 10px;
  }
   .center{
    text-align: center;
  }
</style>
  </head>
  <body>
<?php include "include/header.php"; ?>


<section class="w3l-contact-breadcrum">
  <div class="breadcrum-bg py-sm-5 py-4">
    <div class="container py-lg-3">
      <h2>Mock Test Result</h2>
      <p><a href="index.php">Home</a> &nbsp; / &nbsp; Mock Test Result </p>
    </div>
  </div>
</section>


<div class="container">
  <div class="row">
        <div class="col-md-1">
      



    </div>
    <div class="col-md-10">
      <br>
<div class="well form-horizontal">

            
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           <tr align="center" style="background:grey; border:1px solid #000; color:#fff;">
            <td  colspan="4" style="co lor: black; padding: 20px 0; font-size: 20px; ">Mock Test Result</td>
           </tr>
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;">
            <td width="152">DATE</td>
            <td width="129">SUBJECT</td>
            <td width="119">REMARKS</td>
           </tr>

           <?php
                    $iv_sql = "SELECT * FROM mock_test WHERE p_by = '$x' ORDER BY updateDT ASC";
                    $iv_run = mysqli_query($con, $iv_sql);

                    $c = 1;
                    while ( $iv_rows = mysqli_fetch_assoc($iv_run) ) {
                ?>
                                                                                                 
           <tr class="text_col">
            <td class="center"><?php echo showDate($iv_rows['updateDT']); ?></td>
            <td align="left"><a href="" style="text-decoration:none;"><b><?php echo $iv_rows['title']; ?></b></a></td>
              
              <td class="center"><a href="login/upload/noticePdf/<?php echo $iv_rows['pdf']; ?>" target='_blank'>
                                                            View </a> </td>
           </tr>
           
           <?php 
              $c++;
                }
            ?>
           
          </table></p>



</div>

    </div>
    <div class="col-md-1">
      



    </div>
  </div>
</div>

<?php include "include/footer.php"; ?>
<?php include "include/js.php"; ?>

</body>

</html>
<!-- // grids block 5 -->
<?php 

     function showDate($dt) 
     {
          $date=date_create();
          date_timestamp_set($date,
          strtotime("$dt"));
          return date_format($date,"M j, Y");
    }

    function showTime($t) 
     {
          $time=date_create();
          date_timestamp_set($time,
          strtotime("$t"));
          return date_format($time,"g:i a");
    }

 ?>