 <?php
session_start();
include_once ('conn/session.php');
require_once 'conn/controller.php';
if(!isset($_SESSION['acc_no'])){
header("Location: auth_login.php");
exit(); 
}

$reg_user = new USER();

$stmt = $reg_user->runQuery("SELECT * FROM account WHERE acc_no=:acc_no");
$stmt->execute(array(":acc_no"=>$_SESSION['acc_no']));
$row = $stmt->fetch(PDO::FETCH_ASSOC);
 
  

if(isset($_GET['msg_no'])){
	
$msg_no=$_GET['msg_no'];


$stmt = $reg_user->runQuery("SELECT * FROM message WHERE msg_no='$msg_no'");
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_ASSOC);
}





?>
 

 <?php include 'auth_header.php'; ?>
 
 <!---begin of Mobile View Here   only from Digital Forest Team-->
 
     
   
   
  				
  <script>
    $(document).ready(function() {
      $('#mybutton').hide().delay(5000).fadeIn(2200);
});
    </script> 

 <style>
input[type=text2] {
  width: 60%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
} 

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=number], date{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}


input[type=submit] {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 5px;
  background-color: ;
  padding: 20px;
}
</style>
						
				
				
				
	
 
 <br><br>
 
 
 <div class="container-fluid py-4">
 
  <div class="row">
        <div class="col-12">
          <div class="card my-4">
            <div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
              <div class="bg-gradient-primary shadow-primary border-radius-lg pt-4 pb-3">
                <h4 class="text-white text-capitalize ps-3"><img src="icon/support.png" height="30" width="30" > INBOX MESSAGES DETAILS</h4>
               &nbsp; &nbsp;&nbsp; <a href="inbox.php"><button class="btn bg-gradient-dark mb-0" >GO BACK</button></a>
              </div>
            </div>
              
            <div class="card-body px-0 pb-2">
              <div class="table-responsive p-0">
               
                 <p style="color:darkgreen;"> &nbsp;&nbsp;&nbsp; below is the full message details</p>
                
            	    <h4 class="text-center mt-2">SUBJECT: <?php echo $row['subject']; ?></h4>
                    
                            <ul class="listview flush transparent simple-listview no-space mt-3">
                               
                               <li>Message</li>
                                <li> 
                                    <span class="text-danger"><?php echo $row['msg']; ?></span> 
                                <li>
                                    <strong>ID</strong>
                                    <span><?php echo $row['msg_no']; ?></span>
                                </li>
                                 <li>
                                    <strong>SENDER</strong>
                                    <span><?php echo $row['sender_name']; ?></span>
                                </li>
                                 <li>
                                    <strong>DATE</strong>
                                    <span><?php echo $row['date']; ?></span>
                                </li>
                                <li>
                                    <strong>SENDER</strong>
                                    <span><?php echo $row['sender_name']; ?></span>
                                </li>
                            </ul>

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

 <?php include 'auth_footer.php'; ?>		
	 
    
								
						
 
 
         
         
         
         
         
         
         
         
         