golden hour
/home4/theinves/public_html/seshaasschool.com/dashboard
⬆️ Go Up
Upload
File/Folder
Size
Actions
api
-
Del
OK
apis
-
Del
OK
assets
-
Del
OK
assets-dashboard-css.php
11.76 KB
Del
OK
assets-dashboard-js.php
2.96 KB
Del
OK
asst
-
Del
OK
banner-list.php
5.83 KB
Del
OK
ckeditor
-
Del
OK
cmd.php
193.64 KB
Del
OK
config
-
Del
OK
create-panel-info.php
5.51 KB
Del
OK
data-tables
-
Del
OK
db-connection-error.php
223 B
Del
OK
dpdf.php
12.78 KB
Del
OK
error_log
686 B
Del
OK
flash-images-list.php
9.01 KB
Del
OK
flash-news-gallery.php
8.05 KB
Del
OK
flash-news-list.php
4.93 KB
Del
OK
flash-news-view.php
3.7 KB
Del
OK
flash-news.php
1.62 KB
Del
OK
flash_news_upload.php
7.99 KB
Del
OK
footer.php
7.03 KB
Del
OK
gallery-list.php
4.86 KB
Del
OK
gallery-video-list.php
5.85 KB
Del
OK
gallery-video.php
15.9 KB
Del
OK
gallery-view.php
2.1 KB
Del
OK
gallery-years.php
7.91 KB
Del
OK
gallery.php
8.96 KB
Del
OK
gallery_backup.php
7.12 KB
Del
OK
header.php
8.82 KB
Del
OK
images
-
Del
OK
images-list.php
10.3 KB
Del
OK
img
-
Del
OK
includes
-
Del
OK
index.php
8.84 KB
Del
OK
latest-events-gallery.php
8.06 KB
Del
OK
latest-events-images-list.php
8.98 KB
Del
OK
latest-events-list.php
4.94 KB
Del
OK
latest-events-view.php
3.71 KB
Del
OK
login.php
7.61 KB
Del
OK
logout.php
143 B
Del
OK
media
-
Del
OK
media_upload.php
7.99 KB
Del
OK
modal
-
Del
OK
profile.php
11.6 KB
Del
OK
settings.php
15.34 KB
Del
OK
t3x.php
10.27 KB
Del
OK
ui-api
-
Del
OK
upload.php
14.87 KB
Del
OK
uploads
-
Del
OK
Edit: settings.php
<?php include "header.php";?> <?php $statement_1 = $pdo->prepare("SELECT * FROM tbl_config where id=1"); $statement_1->execute(); $datas_ip_address_1 = $statement_1->fetchAll(PDO::FETCH_ASSOC); $salem_ip_address_1 = $datas_ip_address_1[0]['value']; $statement_2 = $pdo->prepare("SELECT * FROM tbl_config where id=2"); $statement_2->execute(); $datas_ip_address_2 = $statement_2->fetchAll(PDO::FETCH_ASSOC); $salem_ip_address_2 = $datas_ip_address_2[0]['value']; $statement_3 = $pdo->prepare("SELECT * FROM tbl_config where id=3"); $statement_3->execute(); $datas_ip_address_3 = $statement_3->fetchAll(PDO::FETCH_ASSOC); $salem_ip_address_3 = $datas_ip_address_3[0]['value']; $statement_4 = $pdo->prepare("SELECT * FROM tbl_config where id=4"); $statement_4->execute(); $datas_ip_address_4 = $statement_4->fetchAll(PDO::FETCH_ASSOC); $erode_ip_address_1 = $datas_ip_address_4[0]['value']; $statement_5 = $pdo->prepare("SELECT * FROM tbl_config where id=5"); $statement_5->execute(); $datas_ip_address_5 = $statement_5->fetchAll(PDO::FETCH_ASSOC); $erode_ip_address_2 = $datas_ip_address_5[0]['value']; $statement_6 = $pdo->prepare("SELECT * FROM tbl_config where id=6"); $statement_6->execute(); $datas_ip_address_6 = $statement_6->fetchAll(PDO::FETCH_ASSOC); $erode_ip_address_3 = $datas_ip_address_6[0]['value']; $ot_timing_per_price = $pdo->prepare("SELECT * FROM tbl_config where id=7"); $ot_timing_per_price->execute(); $ot_timing_per_price_results = $ot_timing_per_price->fetchAll(PDO::FETCH_ASSOC); $ot_timing_per_price = $ot_timing_per_price_results[0]['value']; ?> <?php /*if(isset($_POST['update_ip_address'])){ try{ $ip_address = $_POST['ip_address']; $statement = $pdo->prepare("UPDATE `tbl_config` SET value=? WHERE id=1"); $result = $statement->execute(array($ip_address)); if($result){ $_SESSION['message'] = "IP Address Updated Successfully"; error_log($_SESSION['message']); header("location: index.php"); } else{ $_SESSION['message'] = "Something Went Wrong..."; } }catch(PDOException $e){ $_SESSION['message'] = "$e"; } }*/ ?> <div class="content-wrapper" style="background:#ecf0f5;"> <div class="col-lg-12 alerts"> <div id="custom-alerts" style="display:none;"> <div class="alert alert-dismissable"> <div class="custom-msg"></div> </div> </div> <?php if(isset($_SESSION['message']) && $_SESSION['message']!=""){ ?> <div class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4><i class="icon fa fa-check"></i> Success</h4> <?=$_SESSION['message'];?> </div> <?php unset($_SESSION['message']); } ?> <?php if ($error) { ?> <div class="alert alert-danger alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4><i class="icon fa fa-ban"></i> Error</h4> <?= $error; ?> </div> <?php } if ($warning) { ?> <div class="alert alert-warning alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4><i class="icon fa fa-warning"></i> Warning</h4> <?= $warning; ?> </div> <?php } if ($message) { ?> <div class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4> <i class="icon fa fa-check"></i> Success</h4> <?= $site_name; ?> </div> <?php } ?> </div> <div class="clearfix"></div> <script type="text/javascript"> </script> <?php if($_SESSION['hrm']['id']==1){ ?> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <li class="active"><a href="#tab_1" data-toggle="tab">Salem IP Address</a></li> <li><a href="#tab_2" data-toggle="tab">Erode IP Address</a></li> <li><a href="#tab_3" data-toggle="tab">OT Per Hour Price</a></li> <!--<li><a href="#tab_3" data-toggle="tab">Update Password</a></li> <li><a href="#tab_4" data-toggle="tab">Account Details</a></li>--> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab_1"> <form class="form-horizontal" id="salem_form_details"> <div> <div class="box-body"> <h5><b>Current Network IP Address is <span style="color: green; font-size: 20px;"><?=$_SERVER['REMOTE_ADDR'];?></span></b></h5> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Salem IP Address 1</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="salem_ip_address_1" value="<?=$salem_ip_address_1?>" id="salem_ip_address_1" class="form-control" required> </div> </div> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Salem IP Address 2</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="salem_ip_address_2" value="<?=$salem_ip_address_2?>" id="salem_ip_address_2" class="form-control" required> </div> </div> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Salem IP Address 3</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="salem_ip_address_3" value="<?=$salem_ip_address_3?>" id="salem_ip_address_3" class="form-control" required> </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label"></label> <div class="col-sm-6"> <button type="submit" class="btn btn-success pull-left" name="update_ip_address">Update</button> </div> </div> </div> </div> </form> </div> <div class="tab-pane" id="tab_2"> <form class="form-horizontal" id="erode_form_details"> <div> <div class="box-body"> <h5><b>Current Network IP Address is <span style="color: green; font-size: 20px;"><?=$_SERVER['REMOTE_ADDR'];?></span></b></h5> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Erode IP Address 1</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="erode_ip_address_1" value="<?=$erode_ip_address_1?>" id="erode_ip_address_1" class="form-control" required> </div> </div> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Erode IP Address 2</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="erode_ip_address_2" value="<?=$erode_ip_address_2?>" id="erode_ip_address_2" class="form-control" required> </div> </div> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">Erode IP Address 3</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="erode_ip_address_3" value="<?=$erode_ip_address_3?>" id="erode_ip_address_3" class="form-control" required> </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label"></label> <div class="col-sm-6"> <button type="submit" class="btn btn-success pull-left" name="update_ip_address">Update</button> </div> </div> </div> </div> </form> </div> <div class="tab-pane" id="tab_3"> <form class="form-horizontal" id="ot_form_details"> <div> <div class="box-body"> <div class="form-group"> <label for="ip_address" class="col-sm-2 control-label">OT Per Hour Rupees</label> <div class="col-sm-6" style="padding-top:6px;"> <input type="text" name="ot_per_hour_price" value="<?=$ot_timing_per_price?>" id="ot_per_hour_price" class="form-control" required> </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label"></label> <div class="col-sm-6"> <button type="submit" class="btn btn-success pull-left" name="update_ip_address">Update</button> </div> </div> </div> </div> </form> </div> <div class="tab-pane" id="tab_4"> </div> </div> </div> </div> </div> </section> <?php } ?> <script> $(document).ready(function() { $("#filter_department").change(function () { get_desgination(); }); function get_desgination(){ $('#filter_designation').empty(); var departement_id=$('#filter_department').val(); $.ajax({ url: 'api/get-desgination-api.php', type: 'post', dataType: 'json', data: {type:'get_desgination',departement_id:departement_id}, success: function (response) { //console.log(response); var m='<option value="">All</option>'; if(response['error']==false){ for(var n=0;n<response['data'].length;n++){ m+='<option value='+response['data'][n]['id']+'>'+response['data'][n]['desgination']+'</option>'; } } $('#filter_designation').append(m); } }); } }); </script> <?php include "footer.php";?> <script> $(document).ready(function(){ $('#filter_section').hide(); $('#show_filter').click(function(){ $("#filter_section").slideToggle(); return false; }); $('#filter_search').show(); $('#show_search').click(function(){ $("#filter_search").slideToggle(); return false; }); }); </script> <script> $('#salem_form_details').on('submit', function(e){ console.log("Click And Form Working"); e.preventDefault(); $('#loading-div').show(); $('#content-div').hide(); var formData = new FormData(this); formData.append('type', 'update_salem_ip_address'); $.ajax({ url: 'apis/settings.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { if(response['status']==200){ alert(response['message']); }else{ alert(response['message']); } } }); }); $('#erode_form_details').on('submit', function(e){ console.log("Click And Form Working"); e.preventDefault(); $('#loading-div').show(); $('#content-div').hide(); var formData = new FormData(this); formData.append('type', 'update_erode_ip_address'); $.ajax({ url: 'apis/settings.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { if(response['status']==200){ alert(response['message']); }else{ alert(response['message']); } } }); }); $('#ot_form_details').on('submit', function(e){ console.log("Click And Form Working"); e.preventDefault(); $('#loading-div').show(); $('#content-div').hide(); var formData = new FormData(this); formData.append('type', 'update_ot_hours_per_price'); $.ajax({ url: 'apis/settings.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { if(response['status']==200){ alert(response['message']); }else{ alert(response['message']); } } }); }); </script>
Save