/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/subject_edit.php
<?php
// $_SESSION['active'] == 'subjectList';
include('include/header.php');
if(!empty($_GET['edit'])){
$select = select_Subject($_GET['edit']);
$branch = mysqli_fetch_array($select);
}
$select_academic=select_academic();
$select_class=select_class();
$select_SyllabusData = select_SyllabusData();
$select_academic=select_academic();
$select_class=select_class();
$select_SyllabusData = select_SyllabusData();
$select_SubjectData = select_SubjectData();
?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<main id="main" class="main">
<div class="pagetitle">
<h1>Apple IIT Schools</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item">Subjects List</li>
</ol>
</nav>
</div>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Add Subjects</h5>
<?php
if (isset($_POST['submit'])) {
$subject_name = strtoupper($_POST['subject_name']);
$upd_sub = executework("UPDATE subjects set subjects = '".$subject_name."',update_date = '".date('Y-m-d H:i:s')."' where id ='".$_POST['edit_data']."'");
redirect("student_subjects_report.php?upd=1");
}
?>
<form method="post" onsubmit="return subject_validation()">
<div class="row">
<div class="col-md-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Academic Year</label>
<input type="text" name="Year" value="<?= $branch['year']?>" class="form-control" readonly>
</div>
<div class="col-md-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Class</label>
<input type="text" name="class_name" value="<?= $branch['class']?>" class="form-control" readonly>
</div>
<input type="hidden" value="<?= $_GET['edit']?>" name="class_id[]">
<!--
<div class="col-md-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Section</label>
<input type="text" name="section" value="<?= $branch['section']?>" class="form-control" readonly>
</div> -->
<div class="col-md-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Syllabus Type</label>
<input type="text" name="syllabus" value="<?= $branch['syllabus']?>" class="form-control" readonly>
</div>
<div class="col-md-3 mt-4">
<label for="exampleInputEmail1" class="form-label">Subject</label>
<input type="text" name="subject_name" value="<?= $branch['subjects']?>" class="form-control">
</div>
<input type="hidden" name="edit_data" value="<?= $branch['id']?>">
</div>
<div class="mt-4" id="subm">
<input type="submit" class="btn" value="Update" name="submit" style="background-color: #69F0AE; color: #000000;">
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<?php include('include/footer.php'); ?>
@LwBee Strong Bypass
Upload File
Create New File