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="content-new.php">Department Vibharam Hospital</a></h4>
</div><div class="header">
<h6 class="title"><a href="content-new.php">Content - Menu</a></h6>
</div>
<?php
$strSQL3 ="SELECT * FROM `tb_content`";
$objQuery3 = mysqli_query($objCon,$strSQL3);
?>
<div class="content table-responsive table-full-width">
<a href="content-new-add.php">
<button type="button" rel="tooltip" class="btn btn-info btn-simple btn-icon">
<i class="fa fa-plus-circle"></i> Add Content
</button>
</a>
<table class="table table-hover">
<thead>
<th style="width:30%;">#</th>
<th style="width:30%;">Link - page</th>
<th style="width:20%;"><div align="center">Last Modified</div></th>
<th style="width:20%;"><div align="center">Manage</div></th>
</thead>
<?php
$i=0;
while($objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC))
{
$i++;
?>
<tbody>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $objResult3["link_page"];?></td>
<td><?php echo date('d/m/Y',strtotime($objResult3["updated"]));?></td>
<td>
<div align="center">
<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='content-new-edit.php?id=<?php echo $objResult3['id'];?>'" title="แก้ไขข้อมูล">
<i class="fa fa-pencil-square" aria-hidden="true"></i> Edit
</button>
<a href="JavaScript:if(confirm('Are you sure you want to delete this item ?')==true){window.location='content-new-delete.php?id=<?php echo $objResult3['id'];?>'}">
<button type="button" rel="tooltip" class="btn btn-danger btn-simple btn-icon" title="ลบข้อมูล">
<i class="fa fa-window-close" aria-hidden="true"></i> Remove
</button>
</a>
</div>
</td>
</tr>
</tbody>
<?php
}
?>
</table>
<table class="table">
<tr><td> </td></tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("assets/include/script.php"); ?>
<?php include "texteditor2.php"; ?>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
</body>
</html>
<?php
mysqli_close($objCon);
?>
OHA YOOOO