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/edit_user.php

<!doctype html>
<?php
	session_start();
	if($_SESSION['admin_id'] == "")
	{
		include("session.php");  
	}

		include("connect.php");
		$admin_id = null;

		if(isset($_GET['admin_id']))
		{
			$admin_id = $_GET['admin_id'];
		}

		$strSQL = "SELECT * FROM admin WHERE admin_id ='".$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="user.php">Administrator</a> <i class="pe-7s-angle-right"></i> Edit Account</h4>
								</div>
								<form name="form1" method="post" action="saveedit_user.php">      
								<input type="hidden" name="admin_id" value="<?php echo $objResult["admin_id"];?>">
									<div class="content table-responsive table-full-width">
										<table class="table table-hover">    
											<thead>
												<th style="width:35%;">Username</th>
												<th style="width:35%;">Password</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="username" value="<?php echo $objResult["username"];?>"></td>  
													<td><input type="text" class="form-control" name="password" value="<?php echo $objResult["password"];?>"></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:35%;">Full Name</th>
												<th style="width:35%;">Phone Number</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="name" value="<?php echo $objResult["name"];?>"></td>  
													<td><input type="text" class="form-control" name="tel" value="<?php echo $objResult["tel"];?>"></td>
												</tr>
											</tbody>
										</table>
										<table class="table">    
											<tr><td> </td></tr>
										</table>
										<button type="submit" rel="tooltip" class="btn btn-success btn-simple btn-icon">  
											<i class="fa fa-check-square" aria-hidden="true"></i> Save
										</button>
										<button type="button" rel="tooltip" class="btn btn-default btn-sm btn-simple" onclick="window.location.href='user.php'">
											<i class="fa fa-window-close" aria-hidden="true"></i> Cancel
										</button>
									</div>
								</form>
							</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