Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
require('Common/Header.php');
$col_id = $_GET['col_id'];
goback($col_id);
$select = "SELECT * FROM `student_data` where col_id = '$col_id'";
$query = mysqli_query($conn, $select);
if (mysqli_num_rows($query) != 0) {
$fetch = mysqli_fetch_assoc($query);
} else {
DangerFun("Unable to fetch data");
}
?>
<div class="container-fluid">
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Edit Student's Data </h1>
</div>
<div class="row">
<div class="col-12">
<!-- -------------------------- Data Table start ----------------------- -->
<!-- -------------------------- Data Table end ----------------------- -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold" style="color: #008080;">Student's Data </h6>
</div>
<div class="card-body">
<form method="POST" enctype="multipart/form-data" id="update_stu_form" onsubmit="updateData('update_stu_form','update_Student_data',event)">
<div class="row">
<!-- --------------- hidden col_id start------------- -->
<input type="hidden" name="col_id" value="<?php echo $col_id ?>">
<input type="hidden" name="hidden_enroll" value="<?php echo $fetch['enroll_no'] ?>">
<!-- --------------- hidden col_id end------------- -->
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Full Name <span style="color: red;">*</span></label>
<input type="text" name="FName" value="<?php echo $fetch['full_name'] ?>" class="form-control" placeholder="Full Name" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Father Name <span style="color: red;">*</span></label>
<input type="text" name="father" value="<?php echo $fetch['father'] ?>" class="form-control" placeholder="Father Name" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Mother Name <span style="color: red;">*</span></label>
<input type="text" name="mother" value="<?php echo $fetch['mother'] ?>" class="form-control" placeholder="Mother Name" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Enrollement Number<span style="color: red;">*</span></label>
<input type="text" name="enroll_no" value="<?php echo $fetch['enroll_no'] ?>" class="form-control" placeholder="Enrollement Number" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Roll Number<span style="color: red;">*</span></label>
<input type="text" name="roll_no" value="<?php echo $fetch['roll_no'] ?>" class="form-control" placeholder="Roll Number" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Email<span style="color: red;">*</span></label>
<input type="email" name="email" value="<?php echo $fetch['email'] ?>" class="form-control" placeholder="Email" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Phone Number<span style="color: red;">*</span></label>
<input type="number" name="phone" value="<?php echo $fetch['phone'] ?>" class="form-control" placeholder="Phone Number" required>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label label-color">Department <span style="color: red;">*</span></label>
<select name="department" onchange="getCourses(this.value, 'course_se','dep_select','../ajax.php')" id="dep_select" class="form-control selectpicker border" data-live-search="true" required>
<option value="<?php echo $fetch['dep'] ?>"><?php echo $fetch['dep'] ?></option>
<?php
echo get_department();
?>
</select>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label label-color">Course <span style="color: red;">*</span></label>
<select name="course" class="form-control border course_select" id="course_se" required>
<option value="<?php echo $fetch['course'] ?>"><?php echo $fetch['course'] ?></option>
<?php
// echo get_courses();
?>
</select>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label label-color">Current Semester <span style="color: red;">*</span></label>
<select name="sem" class="form-control" required>
<option value="<?php echo $fetch['sem'] ?>"><?php echo $fetch['sem'] ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
</div>
<div class="col-lg-6 col-md-6 col-12 mb-3">
<label class="form-label" style="color: #008080;">Admission Date <span style="color: red;">*</span></label>
<input type="date" name="admi_date" class="form-control" value="<?php echo $fetch['admi_date'] ?>" required placeholder="Admission Date">
</div>
<div class="col-12 text-center mt-5">
<button type="submit" name="submit" class="btn" style="width: 250px;background-color:#008080;color:#FFFFFF">Update</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php require('Common/Footer.php') ?>
</body>
</html>
