korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
sunpublicschools
/
public_html
/
SunShine_AdMin
/
Upload FileeE
HOME
<?php include 'header.php'; include 'config.php'; ?> <?php $con_qry = "SELECT * from addmis_e"; $res = mysqli_query($connect,$con_qry); if(mysqli_num_rows($res) > 0 ) { $cons_data = mysqli_fetch_assoc($res); } ?> <div class="content-wrapper"> <div class="page-title"> <div> <p><i class="fa fa-eye"></i> Addmission Details</p> </div> </div> <div class="card"> <?php if(isset($_POST['submit'])) { $descp = mysqli_real_escape_string($connect,$_POST['descp']); $descp2 = mysqli_real_escape_string($connect,$_POST['descp2']); $co_qery = "UPDATE addmis_e set descp = '$descp',descp2 = '$descp2' WHERE id = 1"; $co_res = mysqli_query($connect,$co_qery); if($co_res) { ?> <script> alert('Updated Successfully'); window.location.replace("addmis_e.php"); </script> <?php } else { ?> <script> alert('Not Updated'); window.location.replace("addmis_e.php"); </script> <?php } } ?> <form method="post" action="" enctype="multipart/form-data"> <div class="row"> <div class="col-md-12"> <label>ELIGIBILITY</label> <textarea name="descp" rows="8" id="descp" class="form-control"><?php echo $cons_data['descp'];?></textarea> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>DOCUMENTS FOR SUBMISSION</label> <textarea name="descp2" rows="8" id="descp2" class="form-control"><?php echo $cons_data['descp2'];?></textarea> </div> </div> <br> <div class="row"> <div class="col-md-4"> <input type="submit" name="submit" class="btn btn-success" value="Update"> </div> </div> </form> </div> </div> <script src="js/jquery-2.1.4.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/plugins/pace.min.js"></script> <script src="js/main.js"></script> <script src="//cdn.ckeditor.com/4.9.2/standard/ckeditor.js"></script> <script type="text/javascript"> CKEDITOR.replace('descp'); CKEDITOR.replace('descp2'); CKEDITOR.replace('descp3'); CKEDITOR.replace('descp4'); </script> <script> function fileValidation(file){ var fileInput = file.value; var allowedExtensions = /(\.jpg|\.jpeg|\.png|\.gif)$/i; if(!allowedExtensions.exec(fileInput)){ alert('Please upload file having extensions .jpeg/.jpg/.png/.gif only.'); file.value = ''; file.focus(); return false; }else{ return true; } } </script>