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="contact3.php">Footer Vibharam Hospital</a></h4>
</div>
<?php
$strSQL ="SELECT a.*, b.*
FROM contact a
LEFT JOIN admin b
ON a.admin_id=b.admin_id
WHERE contact_id = 2";
$objQuery = mysqli_query($objCon,$strSQL);
$objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC);
?>
<div class="content table-responsive table-full-width">
<table class="table table-hover">
<thead>
<th style="width:60%;">Address (TH)</th>
<th style="width:25%;">Last Modified</th>
<th style="width:15%;"><div align="center">Manage</div></th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult["add1"];?></td>
<td><?php echo $objResult["username"];?></td>
<td>
<div align="center">
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='editcontact3.php?contact_id=<?php echo $objResult['contact_id'];?>'" title="แก้ไขข้อมูล">
<i class="fa fa-edit"></i> edit
</button>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table">
<tr><td> </td></tr>
</table>
</div>
<?php
$strSQL3 ="SELECT a.*, b.*
FROM footer a
LEFT JOIN admin b
ON a.admin_id=b.admin_id
WHERE footer_id = 5";
$objQuery3 = mysqli_query($objCon,$strSQL3);
$objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC);
?>
<div class="content table-responsive table-full-width">
<table class="table table-hover">
<thead>
<th style="width:60%;">Facebook</th>
<th style="width:25%;">Last Modified</th>
<th style="width:15%;"><div align="center">Manage</div></th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult3["footer"];?></td>
<td><?php echo $objResult3["username"];?></td>
<td>
<div align="center">
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='editfooter.php?footer_id=5'" title="แก้ไขข้อมูล">
<i class="fa fa-edit"></i> edit
</button>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table">
<tr><td> </td></tr>
</table>
</div>
<?php
$strSQL3 ="SELECT a.*, b.*
FROM footer a
LEFT JOIN admin b
ON a.admin_id=b.admin_id
WHERE footer_id = 1";
$objQuery3 = mysqli_query($objCon,$strSQL3);
$objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC);
?>
<div class="content table-responsive table-full-width">
<table class="table table-hover">
<thead>
<th style="width:60%;">Footer</th>
<th style="width:25%;">Last Modified</th>
<th style="width:15%;"><div align="center">Manage</div></th>
</thead>
<tbody>
<tr>
<td><?php echo $objResult3["footer"];?></td>
<td><?php echo $objResult3["username"];?></td>
<td>
<div align="center">
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='editfooter.php?footer_id=1'" title="แก้ไขข้อมูล">
<i class="fa fa-edit"></i> edit
</button>
</div>
</td>
</tr>
</tbody>
</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