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/editcontact.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);
		
		$contact_id = null;

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

		$strSQL = "SELECT * FROM contact WHERE contact_id ='".$contact_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="contact.php">Contact Vibharam Hospital</a> <i class="pe-7s-angle-right"></i> Edit Contact</h4>
								</div>
								<form name="form1" method="post" action="saveeditcontact.php">      
								<input type="hidden" name="contact_id" value="<?php echo $objResult["contact_id"];?>">     
								<input type="hidden" name="admin" value="<?php echo $_SESSION['admin_id'];?>">
									<div class="content table-responsive table-full-width">
										<table class="table table-hover">    
											<p><a>Address (TH)</a></p>
											<div class="form-group">		
												<textarea id="edit" name="add1"><?php echo $objResult["add1"];?></textarea>
											</div>
										</table>
										<table class="table table-hover">    
											<p><a>Address (EN)</a></p>
											<div class="form-group">		
												<textarea id="edit2" name="add2"><?php echo $objResult["add2"];?></textarea>
											</div>
										</table>
										<table class="table table-hover">    
											<p><a>Address (CN)</a></p>
											<div class="form-group">		
												<textarea id="edit3" name="add3"><?php echo $objResult["add3"];?></textarea>
											</div>
										</table>
										<table class="table table-hover">    
											<p><a>Address (JP)</a></p>
											<div class="form-group">		
												<textarea id="edit4" name="add4"><?php echo $objResult["add4"];?></textarea>
											</div>
										</table>
										<table class="table table-hover">    
											<p><a>Address (MM)</a></p>
											<div class="form-group">		
												<textarea id="edit5" name="add5"><?php echo $objResult["add5"];?></textarea>
											</div>
										</table>
										<table class="table table-hover">    
											<p><a>Address (ARA)</a></p>
											<div class="form-group">		
												<textarea id="edit6" name="add6"><?php echo $objResult["add6"];?></textarea>
											</div>
										</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='contact.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 "texteditor2.php"; ?>
</html>
<?php 
	mysqli_close($objCon);
?>

OHA YOOOO