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/know.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="know.php">Category</a></h4>
								</div>
										<?php
											$strSQL3 ="SELECT a.*, b.*
											FROM know_cat 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">      
											<a href="add_cat.php">
												<button type="button" rel="tooltip" class="btn btn-info btn-simple btn-icon">      
													<i class="fa fa-plus-circle"></i> Add Category
												</button>
											</a>
											<table class="table table-hover">    
												<thead>
													<th style="width:60%;">Category</th>  
													<th style="width:20%;"><div align="center">Last Modified</div></th>      
													<th style="width:20%;"><div align="center">Manage</div></th>
												</thead>
											<?php
											while($objResult3 = mysqli_fetch_array($objQuery3,MYSQLI_ASSOC))
												{ 
											?>
												<tbody>
													<tr>
														<td><?php echo $objResult3["category"];?></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_cat.php?cat_id=<?php echo $objResult3['cat_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='deletecat.php?cat_id=<?php echo $objResult3['cat_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>
</body>
<?php include("assets/include/script.php"); ?>
<?php include "texteditor.php"; ?>
</html>
<?php 
	mysqli_close($objCon);
?>

OHA YOOOO