/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/grading_edit.php
<?php
session_start();
$_SESSION['active'] = 'grading';
include('include/header.php');
if(!empty($_GET['edit'])){
$select_grades_data = executework("SELECT * FROM grading where id = '".$_GET['edit']."'");
$row = mysqli_fetch_array($select_grades_data);
}
if(!empty($_POST['submit']))
{
$update_grading = executework("UPDATE grading set percentage = '".$_POST['Grading_per']."',grades = '".$_POST['Grading']."',update_date = '".date('Y-m-d H:i:s')."' where id = '".$_POST['edit_data']."'");
redirect('grading.php?upd=1');
}
?>
<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 "> Grading</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">Edit Grading</h5>
<form method="post">
<div class="row">
<div class="col-md-4">
<label for="exampleInputEmail1" class="form-label">Grading Percentage (%)</label>
<input type="text" class="form-control" id="Grading_per" value="<?= $row['percentage']?>" name="Grading_per" placeholder="Enter Grading Percentage">
</div>
<div class="col-md-4">
<label for="exampleInputEmail1" class="form-label">Grades</label>
<input type="text" class="form-control" id="Grading" value="<?= $row['grades']?>" name="Grading" placeholder="Enter Grading">
</div>
</div>
<input type="hidden" name="edit_data" value="<?= $row['id']?>">
<div class="mt-4">
<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>
<script>
function confirmDelete(classid)
{
if (classid != '') {
var x = confirm('Are you sure to Delete?');
if(x){
$.ajax({
url : "delete.php",
data : {classid : classid},
type : 'POST',
success : function(response) {
if(response ==1){
$('#succ').hide();
$('#update').hide();
$('#fail').hide();
$('#delete_data').show();
window.location.href = "class.php";
}
}
});
}
}
}
</script>
<?php include('include/footer.php'); ?>
@LwBee Strong Bypass
Upload File
Create New File