MINI MINI MANI MO

Path : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/
File Upload :
Current File : /home/phaetpan/domains/phaetpanya.com/public_html/vibharamadmin/title.php

<!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>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<?php include("assets/include/link.php"); ?>
</head>
<body>
<div class="wrapper">
    	<div class="sidebar" data-color="green" data-image="assets/img/1.jpg">
    	<div class="sidebar-wrapper">
            <div class="logo">
                <a href="home.php" class="simple-text">
                    Vibharam Hospital
				</a>
            </div>

            <?
		require_once('nav-menu.php')	;
		  ?>
    	</div>
    </div>    	
	<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="title.php">Title Vibharam Hospital</a></h4>      
								</div>
										<?php
											$strSQL2 ="SELECT a.*, b.*
											FROM title a  
											LEFT JOIN admin b
											ON a.admin_id=b.admin_id";
											$objQuery2 = mysqli_query($objCon,$strSQL2);
										?>
										<div class="content table-responsive table-full-width">
											<table class="table table-hover">    
												<thead>
													<th style="width:35%;">Page</th>       
													<th style="width:35%;">Title (TH)</th>  
													<th style="width:15%;"><div align="center">Last Modified</div></th>      
													<th style="width:15%;"><div align="center">Manage</div></th>
												</thead>
											<?php
											while($objResult2 = mysqli_fetch_array($objQuery2,MYSQLI_ASSOC))
												{ 
											?>
												<tbody>
													<tr>
														<td><?php echo $objResult2["page"];?></td>  
														<td><?php echo $objResult2["title1"];?></td>  
														<td><div align="center"><?php echo $objResult2["username"];?></div></td>  
														<td>
															<div align="center">
															<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='edit_title.php?title_id=<?php echo $objResult2['title_id'];?>'" title="แก้ไขข้อมูล">
																<i class="fa fa-pencil-square" aria-hidden="true"></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"); ?>
<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>
<?php include "texteditor.php"; ?>

</html>
<?php 
	mysqli_close($objCon);
?>

OHA YOOOO