MINI MINI MANI MO
<!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);
$depart_id = null;
if(isset($_GET['depart_id']))
{
$depart_id = $_GET['depart_id'];
}
$strSQL = "SELECT * FROM department WHERE depart_id ='".$depart_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="doctor.php">Department</a> <i class="pe-7s-angle-right"></i> Edit Department</h4>
</div>
<form name="form1" method="post" action="saveedit_depart.php">
<input type="hidden" name="admin" value="<?php echo $_SESSION['admin_id'];?>">
<input type="hidden" name="depart_id" value="<?php echo $depart_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"];?>" required></td>
<td></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Department (TH)</th>
<th style="width:50%;">Department (EN)</th>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" name="depart1" value="<?php echo $objResult["depart1"];?>" required></td>
<td><input type="text" class="form-control" name="depart2" value="<?php echo $objResult["depart2"];?>" ></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Department (CN)</th>
<th style="width:50%;">Department (JP)</th>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" name="depart3" value="<?php echo $objResult["depart3"];?>" ></td>
<td><input type="text" class="form-control" name="depart4" value="<?php echo $objResult["depart4"];?>" ></td>
</tr>
</tbody>
</table>
<table class="table table-hover">
<thead>
<th style="width:50%;">Department (MM)</th>
<th style="width:50%;">Department (ARA)</th>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" name="depart5" value="<?php echo $objResult["depart5"];?>" ></td>
<td><input type="text" class="form-control" name="depart6" value="<?php echo $objResult["depart6"];?>" ></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='doctor.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