MINI MINI MANI MO
<!doctype html>
<?php
session_start();
if($_SESSION['admin_id'] == "")
{
include("session.php");
}
include("connect.php");
$strSQL = "SELECT * FROM admin WHERE admin_id = '".$_SESSION['admin_id']."' ";
$objQuery = mysqli_query($objCon,$strSQL);
$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
$app_id = null;
if(isset($_GET['app_id']))
{
$app_id = $_GET['app_id'];
}
date_default_timezone_set('Asia/Bangkok');
$strSQL = "SELECT * FROM appointment WHERE app_id ='".$app_id."'";
$objQuery = mysqli_query($objCon,$strSQL);
$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
?>
<html>
<head>
<?php include("assets/include/link.php"); ?>
</head>
<body>
<div class="wrapper">
<?php include("nav-menu.php"); ?>
<div class="main-panel">
<?php include("assets/include/account.php"); ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card card-plain">
<div class="header">
<h4 class="title"><a href="doctor3.php">Appointment Online</a> <i class="pe-7s-angle-right"></i> View All</h4>
</div>
<div class="content table-responsive table-full-width">
<table class="table table-hover">
<thead>
<th style="width:50%;">Doctor</th>
<th style="width:50%;">Clinic</th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult["doctor"];?></td>
<td><?php echo $objResult["clinic"];?></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Appointment Date</th>
<th style="width:50%;">Appointment Time</th>
</thead>
<tbody>
<tr>
<td><?php echo date("jS F Y",strtotime($objResult["appdate"]));?></td>
<td><?php echo $objResult["apptime"];?></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Full Name</th>
<th style="width:50%;">Date of Birth</th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult["fname"];?></td>
<td><?php echo date("jS F Y",strtotime($objResult["bdate"]));?></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Email</th>
<th style="width:25%;">Phone</th>
<th style="width:25%;">Ever used the service</th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult["mail"];?></td>
<td><?php echo $objResult["tel"];?></td>
<td><?php echo $objResult["status"];?></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Document</th>
<th style="width:50%;">Content</th>
</thead>
<tbody>
<tr>
<td><i class="fa fa-search-plus" ></i> View File <a href="../upload_file/<?php echo $objResult["file"];?>" class="text-primary"><?php echo $objResult["file"];?></a></td>
<td><?php echo $objResult["content"];?></td>
</tr>
</tbody>
</table>
<table class="table">
<tr><td> </td></tr>
</table>
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='javascript:history.back()'">
<i class="fa fa-angle-double-left"></i> Back
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<?php include("assets/include/script.php"); ?>
<?php include "texteditor.php"; ?>
</html>
<?php
mysqli_close($objCon);
?>
OHA YOOOO