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_clinic.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);

		$clinic_id = null;

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

		$strSQL = "SELECT * FROM clinic WHERE clinic_id ='".$clinic_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="clinic.php"> Specialized Clinices</a> <i class="pe-7s-angle-right"></i> Edit Clinic</h4>
								</div>
								<form name="form1" method="post" action="saveedit_clinic.php">          
								<input type="hidden" name="clinic_id" value="<?php echo $objResult["clinic_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">    
											<thead>
												<th style="width:50%;">Icons</th>
												<th style="width:50%;"></th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="icon" value="<?php echo $objResult["icon"];?>"></td>    
													<td></td>  
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Clinic (TH)</th>
												<th style="width:50%;">Clinic (EN)</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="clinic1" value="<?php echo $objResult["clinic1"];?>"></td>  
													<td><input type="text" class="form-control" name="clinic2" value="<?php echo $objResult["clinic2"];?>"></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Clinic (CN)</th>
												<th style="width:50%;">Clinic (JP)</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="clinic3" value="<?php echo $objResult["clinic3"];?>"></td>  
													<td><input type="text" class="form-control" name="clinic4" value="<?php echo $objResult["clinic4"];?>"></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Clinic (MM)</th>
												<th style="width:50%;">Clinic (ARA)</th>
											</thead>
											<tbody>
												<tr>
													<td><input type="text" class="form-control" name="clinic5" value="<?php echo $objResult["clinic5"];?>" ></td>  
													<td><input type="text" class="form-control" name="clinic6" value="<?php echo $objResult["clinic6"];?>" ></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Sub Title  (TH)</th>
												<th style="width:50%;">Sub Title  (EN)</th>
											</thead>
											<tbody>
												<tr>
													<td><textarea name="sub1" rows="3" class="form-control"><?php echo $objResult["sub1"];?></textarea></td>  
													<td><textarea name="sub2" rows="3" class="form-control"><?php echo $objResult["sub2"];?></textarea></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Sub Title  (CN)</th>
												<th style="width:50%;">Sub Title  (JP)</th>
											</thead>
											<tbody>
												<tr>
													<td><textarea name="sub3" rows="3" class="form-control"><?php echo $objResult["sub3"];?></textarea></td>  
													<td><textarea name="sub4" rows="3" class="form-control"><?php echo $objResult["sub4"];?></textarea></td>
												</tr>
											</tbody>
										</table>
										<table class="table table-hover">    
											<thead>
												<th style="width:50%;">Sub Title  (MM)</th>
												<th style="width:50%;">Sub Title  (ARA)</th>
											</thead>
											<tbody>
												<tr>
													<td><textarea name="sub5" rows="3" class="form-control"><?php echo $objResult["sub5"];?></textarea></td>  
													<td><textarea name="sub6" rows="3" class="form-control"><?php echo $objResult["sub6"];?></textarea></td>
												</tr>
											</tbody>
										</table>
										<table class="table">    
											<tr>
												<td> 
													<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='clinic.php'">
														<i class="fa fa-window-close" aria-hidden="true"></i> Cancel
													</button>
												</td>
											</tr>
										</table>
									</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