<?php
    session_start();
    //ob_start();
    include "../../db.php";
    date_default_timezone_set('Asia/Kolkata');
     $currentDate = date('jS  F Y');
      $currentDT = date("Y-m-d H:i:s");

    if ( !isset($_SESSION['uid']) && !isset($_SESSION['uref']) && !isset($_SESSION['utype']) )
        header("Location: logout.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
 <?php include "includes/meta.php"; ?>             
    <?php include "includes/css.php"; ?>
    <link href="css/all.min.css" rel="stylesheet" type="text/css">
    <link href="css/alltable.css" rel="stylesheet">    
 
    
</head>

<body>

  <!--==========================
  Header
  ============================-->
   <?php include "includes/header2.php"; ?>
  
  <!-- #header -->

  <!--==========================
    Intro Section
  ============================-->
                
    <div class="">
        <h1 class="text-center mb-4" style="margin-top: 80px"><font color="black"> Report</font> </h1>
    </div>
     <hr><hr>
  <div class="container">
      <div class="row mx-0 just ify-content-center">
          <div class="col-12 col-sm-12 col-md-12">
            <div class="card-body">
                <?php 

                    if(isset($_GET['b_id']) && isset($_GET['view_id']))
                            {     //echo $_POST['s_no'];
                                   $run = mysqli_query($con, "SELECT * FROM report_table WHERE rep_sl_no = '$_GET[view_id]'");
                                    $row = mysqli_fetch_assoc($run);
                                    ?>
                                     <div class="form-row">                             
                                        <div class="col-md-12">
                                        
                                            <h2 class="text-center" style="color: red"><?php echo $row['rep_title'];  ?> </h2>
                                        </div>
                                    </div>
                                    <hr>
                                    <div class="form-row">                             
                                        <div class="col-md-12">
                                        
                                            <div class="text-center mb-4"><font color="black" size="5px"><?php echo $row['manual_report'];  ?> </font></div>
                                        </div>
                                    </div>
                                    <br><br><br><br><br> <br><br><br> <br>
                                    <div class="text-center mb-6">
                                        <a href="daily_report.php?b_id=<?php echo $_GET['b_id'];?>" class='m-2 btn btn-warning btn-lg' title=''> Back </a>
                                    </div>
                                       
                                   
                                    
                                    <?php
                                    
                     
                            }

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


<br><br>           

 <?php include "includes/ft.php"; ?>
 <?php include "includes/js.php"; ?>

        
                 


 <!--==========================
    Footer
  ============================-->


    
</body>
</html>
