<?php
require("../connection.php");
include("../user.php");
$user_id=$_SESSION['user'];
$username=$_SESSION['user_name'];

?>

<div class="col-12 col-md-6">
<div class="col col-md-12">
<label for="text-input" class=" form-control-label">Location Name</label>
<select name="location" id="location"  class="form-control" >
<option selected disabled>Select Location</option>
<?php 
$loc=mysqli_query($con,"select * from location_master where status=0");
while($location=mysqli_fetch_array($loc))
{ ?>
<option value="<?php echo $location['id']; ?>"><?php echo $location['location']; ?></option>
<?php } ?>
</select>
</div>
<div class="col col-md-12">
<label for="text-input" class=" form-control-label">Type</label>
<select name="type" id="type"  class="form-control"  onchange="type_permanent(this.value)">
<option selected disabled>Select Type</option>
<option value="Permanent">Permanent</option>
<option value="Temporary">Temporary</option>
</select>
</div></div>
<div class="col-12 col-md-6">
<div class="col col-md-12">
<label for="text-input" class=" form-control-label">Incharge Name</label>
<select name="in_name" id="in_name"  class="form-control" onchange="" >
<option selected disabled>Select Incharge</option>
<?php $incharge_qry=mysqli_query($con,"select * from employee_master where status=0");
while($incharge=mysqli_fetch_array($incharge_qry)) { ?>
<option value="<?php echo $incharge['emp_no']; ?>"><?php echo $incharge['employee_name']; ?></option>
<?php } ?>
</select>
</div>
<div class="col col-md-12" id="expire">
</div>
</div>

					