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

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


  </head>
  <body>
<?php include "include/header.php"; ?>



<!--  -->
<section class="w3l-contacts-12" id="contact">
    <div cla ss="contact-top pt-5">
        <div clas s="container py-md-3">
            <div cl ass="row cont-main-top">
              
              <?php if (isset($_GET['type']) && !empty($_GET['type'])) {
               
                    $p_type = $_GET['type'];
                    $p_sql = "SELECT * FROM pdf_table WHERE p_by = '$x' AND type = '$p_type' ";
                    $p_run = mysqli_query($con, $p_sql);
                    $p_rows = mysqli_fetch_assoc($p_run);
               ?>
                  
                  <embed src="login/upload/noticePdf/<?php echo $p_rows['pdf']; ?>" type="application/pdf" width="100%" height="600px" />
                  
                  
              <?php } ?>  

              <?php if (isset($_GET['n']) && !empty($_GET['n'])) {
               
                    $n_id = $_GET['n'];
                    $n_sql = "SELECT * FROM notice_table WHERE n_sl = '$n_id' ";
                    $n_run = mysqli_query($con, $n_sql);
                    $n_rows = mysqli_fetch_assoc($n_run);
               ?>
                  
                  <embed src="login/upload/noticePdf/<?php echo $n_rows['notice']; ?>" type="application/pdf" width="100%" height="600px" />
                  
                  
              <?php } ?> 
                
                
            </div>
        </div>
      
</section>
<!-- // -->

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


</body>

</html>

