kohjhjhصثقص5572lllllllldfgddfgصثقffgggfffgfgfgdfgdg
Ele57885fddfg872llll82ddfgdfgdfgdfgdfgfgfggffggfgfgfghgقفغفغفقhfg555434536
/
home3
/
oraclepublicscho
/
public_html
/
Oracle_Cpanel
/
Upload FileeE
HOME
<?php include 'header.php'; include 'config.php'; ?> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <?php $id = $_GET['id']; $com_qry = "SELECT * from scl_inl WHERE id = '$id'"; $com_res = mysqli_query($connect,$com_qry); if(mysqli_num_rows($com_res) > 0 ) { $com_data = mysqli_fetch_assoc($com_res); } ?> <main id="main" class="main"> <div class="pagetitle"> <h1>School Infrastructure List</h1> <nav> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index">Home</a></li> <li class="breadcrumb-item">School Infrastructure List</li> </ol> </nav> </div><!-- End Page Title --> <section class="section"> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <h5 class="card-title">Update School Infrastructure List</h5> <?php if(isset($_POST['submit'])) { $id = $_GET['id']; $title = $_POST['title']; $title2 = $_POST['title2']; $title3 = $_POST['title3']; $co_qery = "UPDATE scl_inl set title = '$title', title2 = '$title2', title3 = '$title3' WHERE id = '$id'"; $co_res = mysqli_query($connect,$co_qery); if($co_res) { ?> <script> alert('Updated Successfully'); window.location.replace("edit_scl_inl?id=<?php echo $com_data['id'];?>"); </script> <?php } else { ?> <script> alert('Not Updated'); window.location.replace("edit_scl_inl?id=<?php echo $com_data['id'];?>"); </script> <?php } } ?> <!-- Vertical Form --> <form class="row g-3" method="post" enctype="multipart/form-data"> <div class="col-12"> <label for="inputNanme4" class="form-label">Information</label> <input type="text" class="form-control" name="title" value="<?php echo $com_data['title'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Details</label> <input type="text" class="form-control" name="title2" value="<?php echo $com_data['title2'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">URL</label> <input type="text" class="form-control" name="title3" value="<?php echo $com_data['title3'];?>" id="inputNanme4"> </div> <div class="text-left"> <button type="submit" name="submit" class="btn btn-primary">Update</button> </div> </form><!-- Vertical Form --> </div> </div> </div> </div> </section> </main><!-- End #main --> <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <script src="//cdn.ckeditor.com/4.9.2/standard/ckeditor.js"></script> <script type="text/javascript"> CKEDITOR.replace('descp'); </script> <script> function fileValidation(file){ var fileInput = file.value; var allowedExtensions = /(\.jpg|\.jpeg|\.png|\.jfif)$/i; if(!allowedExtensions.exec(fileInput)){ alert('Please upload file having extensions .jpeg/.jpg/.png/.jfif only.'); file.value = ''; file.focus(); return false; }else{ return true; } } </script> <!-- Vendor JS Files --> <script src="assets/vendor/apexcharts/apexcharts.min.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/chart.js/chart.umd.js"></script> <script src="assets/vendor/echarts/echarts.min.js"></script> <script src="assets/vendor/quill/quill.min.js"></script> <script src="assets/vendor/simple-datatables/simple-datatables.js"></script> <script src="assets/vendor/tinymce/tinymce.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <!-- Template Main JS File --> <script src="assets/js/main.js"></script> </body> </html>