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/home1.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>
<?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="home1.php">Home Vibharam Hospital</a></h4>
								</div>
								<?php
									$strSQL2 ="SELECT a.*, b.*
									FROM home_call 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:60%;">Call Center</th>  
											<th style="width:25%;"><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["number"];?></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_call.php?call_id=<?php echo $objResult2['call_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>
								<?php
									$strSQL3 = "SELECT a.*, b.*
									FROM home_logo a  
									LEFT JOIN admin b
									ON a.admin_id=b.admin_id";   
									$objQuery3 = mysqli_query($objCon,$strSQL3);
								?>
								<div class="content table-responsive table-full-width">
									<table class="table table-hover">    
										<thead>
											<th style="width:60%;">Hospital Logo</th>
											<th style="width:25%;"><div align="center">Last Modified</div></th>      
											<th style="width:15%;"><div align="center">Manage</div></th>
										</thead>
								<?php
									while($objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC))
									{ 
								?>
									<tbody>
										<tr>
											<td><img src="../upload_file/<?php echo $objResult3["logo"];?>" alt="image" style="width:35%;"/></td>        
											<td><div align="center"><?php echo $objResult3["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_logo.php?logo_id=<?php echo $objResult3['logo_id'];?>'" title="แก้ไขข้อมูล">
														<i class="fa fa-pencil-square" aria-hidden="true"></i> Edit
													</button>
												</div>     
											</td>
										</tr>
									</tbody>
								<?php
									}
								?>
								</table><br>
								<table class="table">          
									<tr><td> </td></tr>
								</table>
								</div>
								<?php
									$strSQL4 = "SELECT a.*, b.*
									FROM home_bg a  
									LEFT JOIN admin b
									ON a.admin_id=b.admin_id";   
									$objQuery4 = mysqli_query($objCon,$strSQL4);
									$objResult4 = mysqli_fetch_array($objQuery4,MYSQLI_ASSOC);
								?>
								<div class="content table-responsive table-full-width">
									<table class="table table-hover">    
										<thead>
											<th style="width:60%;">Hospital Background</th>
											<th style="width:25%;"><div align="center">Last Modified</div></th>      
											<th style="width:15%;"><div align="center">Manage</div></th>
										</thead>
										<tbody>
											<tr>
												<td><img src="../upload_file/<?php echo $objResult4["img"];?>" alt="image" style="width:100%;"/></td>       
												<td><div align="center"><?php echo $objResult4["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_bg.php?bg_id=<?php echo $objResult4['bg_id'];?>'" title="แก้ไขข้อมูล">
															<i class="fa fa-pencil-square" aria-hidden="true"></i> Edit
														</button>
													</div>     
												</td>
											</tr>
										</tbody>
									</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