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);
?>
<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="contact2.php">Map Vibharam Hospital</a></h4>
</div>
<?php
$strSQL2 ="SELECT a.*, b.*
FROM contact_map a
LEFT JOIN admin b
ON a.admin_id=b.admin_id
ORDER BY map_id ASC";
$objQuery2 = mysqli_query($objCon,$strSQL2);
?>
<div class="content table-responsive table-full-width">
<table class="table table-hover">
<thead>
<th style="width:15%;">Language</th>
<th style="width:45%;"><div align="center">Map</div></th>
<th style="width:35%;">Last Modified</th>
<th style="width:5%;"><div align="center">Manage</div></th>
</thead>
<?php
while($objResult2 = mysqli_fetch_array($objQuery2,MYSQLI_ASSOC))
{
?>
<tbody>
<tr>
<td><?php echo $objResult2["language"];?></td>
<td><div align="center"><img src="../upload_file/<?php echo $objResult2["pic"];?>" alt="image" height="150"/></div></td>
<td><?php echo $objResult2["username"];?></td>
<td>
<div align="center">
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='editcontact_map.php?map_id=<?php echo $objResult2['map_id'];?>'" title="แก้ไขข้อมูล">
<i class="fa fa-edit"></i> edit
</button>
</div>
</td>
</tr>
</tbody>
<?php
}
?>
</table>
<table class="table">
<tr><td> </td></tr>
</table>
</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