SM0 She11
Path:
/
/
home
/
saienerg
/
public_html
/
intra
Full Path (server): /home/saienerg/public_html/intra
Create Fil3
Upl04d Fil3
📄 ajax1.php
[E]
[D]
[R]
📄 article_list.php
[E]
[D]
[R]
📁 assets
Open
[D]
[R]
📁 career
Open
[D]
[R]
📄 career_enquiries.php
[E]
[D]
[R]
📄 cat_load.php
[E]
[D]
[R]
📁 change
Open
[D]
[R]
📄 cmn_lib.php
[E]
[D]
[R]
📄 common.php
[E]
[D]
[R]
📄 compressImage.php
[E]
[D]
[R]
📄 config.php
[E]
[D]
[R]
📁 css
Open
[D]
[R]
📁 dashboard
Open
[D]
[R]
📁 data
Open
[D]
[R]
📁 fonts
Open
[D]
[R]
📄 foo_scripts.php
[E]
[D]
[R]
📄 foo_scripts1.php
[E]
[D]
[R]
📄 footer.php
[E]
[D]
[R]
📄 footer1.php
[E]
[D]
[R]
📄 form.php
[E]
[D]
[R]
📁 gallery
Open
[D]
[R]
📄 getExtension.php
[E]
[D]
[R]
📄 header.php
[E]
[D]
[R]
📄 header1.php
[E]
[D]
[R]
📁 hrrepo
Open
[D]
[R]
📁 images
Open
[D]
[R]
📁 includes
Open
[D]
[R]
📄 index.php
[E]
[D]
[R]
📄 index1.php
[E]
[D]
[R]
📄 kis_config.php
[E]
[D]
[R]
📄 login.php
[E]
[D]
[R]
📄 logout.php
[E]
[D]
[R]
📁 masters
Open
[D]
[R]
📁 others
Open
[D]
[R]
📁 perfomances
Open
[D]
[R]
📁 products
Open
[D]
[R]
📄 products.js
[E]
[D]
[R]
📁 services
Open
[D]
[R]
📄 sidebar.php
[E]
[D]
[R]
📄 sidebar1.php
[E]
[D]
[R]
📄 spel_config.php
[E]
[D]
[R]
📄 top_nav.php
[E]
[D]
[R]
📄 top_nav1.php
[E]
[D]
[R]
📁 users
Open
[D]
[R]
Editing: article_list.php
<!doctype html> <html lang="en"> <head> <?php include('../header.php'); ?> </head> <body> <div class="wrapper"> <?php include('../sidebar.php'); ?> <div class="main-panel"> <?php include('../top_nav.php'); ?> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-6"><div class="header"> <h3 class="adtt"> Perfomance</h3> </div> </div> <div class="col-md-6"> <ul class="breadcrumb"> <li><a>Reports</a></li> <li class="active" ><a >Articles List</a></li> </ul> </div> </div> <!--------add------> <!-----List--------> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="header"> <h3 class="lstt">Articles List</h3> </div> <div class="content"> <div class="row"> <div class="col-md-12"> <table id="example" class="table table-striped table-bordered" style="width:100%"> <thead class="thd"> <tr> <th width="12%">S.No.</th> <th width="23%">Title</th> <th width="20%">Report Month</th> <th width="20%">Status</th> <th width="25%">Options</th> </tr> </thead> <tbody> <?php $tsql="select * from articles_list order by art_id DESC LIMIT 0,10 "; $tqry=mysqli_query($idb,$tsql)or die(mysqli_error()); if(mysqli_num_rows($tqry)>0) { $sno=1; while($row=mysqli_fetch_array($tqry)) { $art_id=$row['art_id']; $sts=$row['status']; ?> <tr> <td> <?php echo $sno?></td> <td align="center"><?php echo $row['title']?></td> <td align="center"><?php echo $date = date("F Y", $row['crt_stm']); ?></td> <td><?php echo $obj->get_active_status($sts); ?></td> <td align="center"> <?php if($sts =='0') { ?> <button type="button" title="Approve" data-id="<?php echo $row['art_id']; ?>" class="btn btn-success btn-fill aprv_btn" ><i title="Approve" class="glyphicon glyphicon-ok"></i></button> <button type="button" title="Edit" data-id="<?php echo $row['art_id']; ?>" class="btn btn-edit btn-fill rjct_btn" ><i class="glyphicon glyphicon-edit"></i></button> <?php } ?> <button rel="tooltip" title="View" class="btn btn-danger btn-fill view_btn" data-id="<?php echo $row['art_id']; ?>" ><i class="glyphicon glyphicon-eye-open"></i></button> </td> </tr> <?php $sno=$sno+1; } } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <!----------model Dialog --------> <div class="modal fade" id="viewModal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button> <h4 class="modal-title" id="defaultModalLabel">View Article </h4> </div> <div class="modal-body"> </div> <div class="modal-footer"> <button class="btn btn-danger btn-fill" type="button" id="cncl1" data-dismiss="modal" > <i class="glyphicon glyphicon-remove-sign"></i><span> Close</span></button> </div> </form> </div> </div> </div> <div class="modal fade" id="aprvModal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="defaultModalLabel">Approve Article</h4> </div> <div class="modal-body"> Are you confirm to approve this Article?<br> </div> <div class="modal-footer"> <div class="col-md-8" align="left"> Please Note Approved Articles will be displayed in webpage for public view. </div> <button class="btn btn-danger btn-fill" type="button" id="cncl1" data-dismiss="modal" > <i class="glyphicon glyphicon-remove-sign"></i><span> Close</span></button> <button class="btn btn-success btn-fill" type="button" id="aprv_article" > <i class="glyphicon glyphicon-ok-sign"></i> Approve</button> </div> </form> </div> </div> </div> <div class="modal fade" id="rjctModal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="defaultModalLabel">Re-edit Articles</h4> </div> <div class="modal-body"> Are you confirm to Re-edit this Article? </div> <div class="modal-footer"> <button class="btn btn-danger btn-fill" type="button" id="cncl1" data-dismiss="modal" > <i class="glyphicon glyphicon-remove-sign"></i><span> Close</span></button> <button class="btn btn-success btn-fill" type="button" id="redit_article" > <i class="glyphicon glyphicon-ok-sign"></i> Confirm</button> </div> </form> </div> </div> </div> <!-----------//-------------------> <input name="art_id" id="art_id" type="hidden"> <!-----------//-------------------> <?php include('../footer.php'); ?> </div> </div> <?php include('../foo_scripts.php'); ?> <script type="text/javascript" src="../includes/js/service.js"> </script> <script type="text/javascript"> ///modal box $(document).ready(function() { var table = $('#example').DataTable( { "ordering": false // responsive: true } ); ///cancel $('#cncl,#cncl1').click(function(){ window.location.href ="article_list.php"; }); } ); $(document).on("click",".aprv_btn", function () { $('#aprvModal').modal({show:true}); var id=$(this).attr("data-id"); $('#art_id').val(id); }); $(document).on("click",".rjct_btn", function () { $('#rjctModal').modal({show:true}); var id=$(this).attr("data-id"); $('#art_id').val(id); }); $(document).on("click",".view_btn", function () { var id=$(this).attr("data-id"); $('#viewModal .modal-body ').load('load_article.php?id='+id,function(){ $('#viewModal').modal({show:true}); }); }); $(document).on("click","#redit_article", function () { var id=$('#art_id').val(); $.ajax({ url:"perfomances_sql.php", data: { redit_article: id }, type:'GET', success:function(result) { if(result== '1') { alert('Record updated Sucessfully!'); window.location.href='article_list.php'; }else { alert('Operation Failed!'); return false; } } }); }); $(document).on("click","#aprv_article", function () { var id=$('#art_id').val(); $.ajax({ url:"perfomances_sql.php", data: { aprv_article: id }, type:'GET', success:function(result) { if(result== '1') { alert('Record updated Sucessfully!'); window.location.href='article_list.php'; }else { alert('Operation Failed!'); return false; } } }); //} }); </script> </body> </html>
Save