/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/Activity_edit.php
<?php
session_start();
$_SESSION['active'] = 'class';
include('include/header.php');
if(!empty($_GET['edit'])){
$select_ativity = executework("SELECT * FROM student_activity where id = '".$_GET['edit']."'");
$row = mysqli_fetch_array($select_ativity);
}
if(!empty($_POST['submit'])){
$update_data = executework("UPDATE student_activity set name= '".$_POST['Activity_name']."',update_date = '".date('Y-m-d H:i:s')."' where id = '".$_POST['edit_data']."'");
if($update_data){
redirect('student_profile.php?act=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 ">Activity Edit</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">Activity Edit</h5>
<form method="post" onsubmit="return book_validation()">
<div class="row">
<div class="col-md-6">
<label for="exampleInputEmail1" class="form-label">Activity Name</label>
<textarea id="Activity_name" name="Activity_name" rows="5" cols="150" class="form-control" placeholder="Please Enter Activity"><?= ucfirst($row['name'])?></textarea>
</div>
<input type="hidden" name="edit_data" value="<?= $row['id']?>">
</div>
<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