X7ROOT File Manager
Current Path:
/home/bmglobalcareers/public_html/ktgadmin
home
/
bmglobalcareers
/
public_html
/
ktgadmin
/
📁
..
📄
about.php
(9.2 KB)
📄
appointment_details.php
(6.5 KB)
📄
appointments_block_dates.php
(9.51 KB)
📄
banner_images.php
(11 KB)
📄
banner_update.php
(8.22 KB)
📄
category_update.php
(5.73 KB)
📄
clients.php
(11.39 KB)
📄
clients_update.php
(8.28 KB)
📄
counselling.php
(10.78 KB)
📄
counselling_appointments.php
(9.88 KB)
📄
counselling_appointments_date.php
(8.55 KB)
📄
counselling_appointments_date_update.php
(6.27 KB)
📄
counselling_timings.php
(11.05 KB)
📁
css
📄
dashboard.php
(13.27 KB)
📄
designation_details.php
(5.24 KB)
📄
designation_details_update.php
(7.57 KB)
📄
event_images.php
(10.48 KB)
📄
event_update.php
(8.09 KB)
📄
events_details.php
(11.15 KB)
📄
footer.php
(1.25 KB)
📄
gallery.php
(11.05 KB)
📄
gallery_update.php
(7.96 KB)
📄
header.php
(4.43 KB)
📄
index.php
(4.27 KB)
📄
join_our_community.php
(10.46 KB)
📄
join_our_community_update.php
(8.26 KB)
📁
js
📁
media
📄
meta_details.php
(10.37 KB)
📄
meta_details_update.php
(7.59 KB)
📄
news_update.php
(8.89 KB)
📁
phpservices
📁
phpspreadsheet
📄
portfolio.php
(8 KB)
📄
portfolio_multi_images.php
(9.29 KB)
📄
process_details.php
(11 KB)
📄
process_update.php
(8.22 KB)
📄
service_update.php
(7.83 KB)
📄
services.php
(10.62 KB)
📄
services_new.php
(6.99 KB)
📄
sessionservices.php
(4.98 KB)
📄
settings.php
(19.05 KB)
📁
social_media
📄
social_media.php
(11.68 KB)
📄
social_media_delete.php
(555 B)
📄
social_media_update.php
(8.65 KB)
📄
team_details.php
(11.38 KB)
📄
team_update.php
(8.19 KB)
📁
temp
📄
testimonals.php
(11.3 KB)
📄
testimonals_update.php
(8.39 KB)
📄
update_appointme1nts.php
(19.98 KB)
📄
update_appointments.php
(22.11 KB)
📄
update_portfolio.php
(6.27 KB)
📁
userdata
📁
vendors
📄
video_details.php
(16.41 KB)
📄
video_update.php
(17.93 KB)
📄
youtube_details.php
(11.5 KB)
📄
youtube_update.php
(13.63 KB)
Editing: banner_update.php
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>BM Global Careers</title> <!-- begin::global styles --> <link rel="stylesheet" href="vendors/bundle.css" type="text/css"> <!-- end::global styles --> <!-- begin::datepicker --> <link rel="stylesheet" href="vendors/datepicker/daterangepicker.css"> <link rel="stylesheet" href="vendors/dataTable/responsive.bootstrap.min.css" type="text/css"> <!-- begin::datepicker --> <!-- begin::vmap --> <link rel="stylesheet" href="vendors/vmap/jqvmap.min.css"> <!-- begin::vmap --> <!-- begin::custom styles --> <link rel="stylesheet" href="css/app.min.css" type="text/css"> <link rel="stylesheet" href="css/custom.css" type="text/css"> <link rel="stylesheet" href="css/themify-icons.css" type="text/css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- end::custom styles --> </head> <body> <?php include('sessionservices.php'); ?> <!-- begin::page loader--> <div class="page-loader"> <div class="spinner-border"></div> <span>Loading ...</span> </div> <!-- end::page loader --> <?php echo $header;?> <!-- begin::main content --> <main class="main-content"> <div class="container-fluid"> <div class="page-header d-md-flex justify-content-between align-items-center"> <h4>Update Banner Images</h4> <nav aria-label="breadcrumb"> <ol class="breadcrumb m-t-0"> <li class="breadcrumb-item"><a href="#">Master</a></li> <li class="breadcrumb-item active" aria-current="page">Banner Images</li> </ol> </nav> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <form id="mainform" method="POST" action="" enctype="multipart/form-data"> <div class="row"> <?php $sql="select * from tbl_banner where ban_id='".$_GET['id']."'"; $exec_sql=mysqli_query($conn,$sql); $fetch_sql=mysqli_fetch_array($exec_sql); ?> <div class="col-md-3"> <div class="form-group"> <label>Title:</label> <input type="hidden" name="action" value="add" /> <input type="text" class="form-control" id="title" name="title" placeholder="Enter Title "value="<?php echo str_replace("^","'",$fetch_sql['title']); ?>"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Banner Image : <span style="color:red">(Max Size : 300 Kb)</span></label> <input type="file" class="form-control" id="photo" name="photo"> <input type="hidden" id="photo_old_name" name="photo_old_name" value="<?php echo $fetch_sql['imgname']; ?>"> <input type="hidden" id="photo_new_name" name="photo_new_name"> <input type="hidden" id="ban_id" name="ban_id" value="<?php echo $fetch_sql['ban_id']; ?>"> </div> </div> <div class="col-md-3"> <div class="form-group" id="imgpreview"> <label>Image Preview : </label> <img src="userdata/images/banner/<?php echo $fetch_sql['imgname']; ?>" style="width:110px"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label>Description : </label> <textarea class="form-control" id="description" rows="3" name="description" style="height: 37px; min-height: 37px; margin-top: 0px; margin-bottom: 0px;"><?php echo $fetch_sql['description']; ?></textarea> </div> </div> <div class="col-md-12 text-center"> <div class="form-group"> <button type="button" name="submit" id="submit" class="btn btn-success">Update</button> <a href="banner_images.php"><button type="button" id="cansubmit" class="btn btn-danger">Cancel</button></a> </div> <span id="msg" style="font-weight:bold;margin-top:7px;"></span> </div> </div> </form> </div> </div> </div> </div> </main> <!-- end::main content --> <!-- begin::global scripts --> <script src="vendors/bundle.js"></script> <!-- end::global scripts --> <script src="vendors/dataTable/jquery.dataTables.min.js"></script> <script src="vendors/dataTable/dataTables.bootstrap4.min.js"></script> <script src="vendors/dataTable/dataTables.responsive.min.js"></script> <script src="js/examples/datatable.js"></script> <!-- begin::charts --> <script src="vendors/charts/chartjs/chart.min.js"></script> <script src="vendors/charts/peity/jquery.peity.min.js"></script> <script src="js/examples/charts/chartjs.js"></script> <script src="js/examples/charts/peity.js"></script> <!-- end::charts --> <!-- begin::daterangepicker --> <script src="vendors/datepicker/daterangepicker.js"></script> <!-- end::daterangepicker --> <!-- begin::dashboard --> <script src="js/examples/dashboard.js"></script> <!-- end::dashboard --> <!-- begin::vamp --> <script src="vendors/vmap/jquery.vmap.min.js"></script> <script src="vendors/vmap/maps/jquery.vmap.usa.js"></script> <script src="js/examples/vmap.js"></script> <!-- end::vamp --> <!-- begin::custom scripts --> <script src="js/custom.js"></script> <script src="js/app.min.js"></script> <!-- end::custom scripts --> </body> <style> @media(min-width:992px){ .navbar-nav{ display:block!important; width:100%; } .userdiv{ float:right; } #submit{ margin-top:32px; } #cansubmit{ margin-top:32px; } } @media(max-width:480px){ nav.navbar .header-logo a img{ width:180px; } } </style> <script> $(document).ready(function(){ $('#detailsgrid').DataTable({"responsive": true,}); $("#photo").change(function(){ var numb = $(this)[0].files[0].size/1024/1024; numb = numb.toFixed(2); var fileName = $("#photo").val(); var idxDot = fileName.lastIndexOf(".") + 1; var extFile = fileName.substr(idxDot, fileName.length).toLowerCase(); if (extFile=="jpg" || extFile=="jpeg" || extFile=="png" || extFile=="JPG" || extFile=="JPEG" || extFile=="PNG"){ if(numb <= 0.3){ $(".page-loader").show(); var fd=new FormData(); fd.append('photo',$('#photo').prop('files')[0]); setTimeout(function(){ $.ajax({ type:'POST', url:'phpservices/img_upload.php', data:fd , cache:false, contentType:false, processData:false, dataType: 'JSON', success: function(result) { $(".page-loader").hide(); $("#photo_new_name").val(result.op); $("#imgpreview").html('<label>Image Preview :</label><img src="temp/'+result.op+'" style="width:100px;margin-left:10px">'); }, async:false }); },2000); } else{ $("#photo").val(''); swal("Error!", "* Upload maximum 300 Kb Image only", "error"); return false; } } else{ $("#photo").val(''); swal("Error!", "* Upload .png, .jpg, .jpeg, .PNG, .JPG, .JPEG file type image only", "error"); return false; } }); $("#submit").click(function(e){ e.preventDefault(); if($("#title").val()==''){ $("#msg").css("color","red").html('* Enter Title'); setTimeout(function(){$("#msg").html('')},3000); return false; } else if($("#photo_name").val()==''){ $("#msg").css("color","red").html('* Upload Image'); setTimeout(function(){$("#msg").html('')},3000); return false; } else{ $("#msg").css("color","green").html("Processing . . ."); $.ajax({ type: "POST", url: "phpservices/update_banner.php", dataType:'json', data: $("#mainform").serialize(), success: function(result) { if(result.op==1){ $("#msg").css("color","green").html("Successfully Updated !"); setTimeout(function(){ window.location.href='banner_images.php'; },1500); } else{ $("#msg").html(result.op); } },error:function(xhr,status,error){ console.log(JSON.stringify(xhr,status,error)); } }); } }); }); </script> </html>
Upload File
Create Folder