halohalo
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
aramiyarkai
/
public_html
/
admin
/
Upload FileeE
HOME
<?php error_reporting (0); include "dbc.php"; page_protect(); $id=$_GET['id']; if($_GET['delete'] == 'd') { $id=$_GET['id']; if(mysqli_query($link,"delete from blog_category where id='$id'")){ header("location:blog_view.php?msg=3"); } } ?> <?php include'header.php';?> <div class="main-bar"> <h3><i class="fa fa-archive"></i> Blog Category</h3> </div> <!-- /.main-bar --> </header> <!-- /.head --> </div> <!-- /#top --> <?php include'admin_admin.php';?> <!-- /#left --> <div id="content"> <div class="outer"> <div class="inner bg-light lter"> <style> .form-control.col-lg-6 { width: 50% !important; } </style> <div class="row"> <div class="col-lg-12"> <div class="box"> <header> <div class="row"> <div class="col-lg-10"> <h5>View Blog Category</h5> </div> <div class="col-lg-2"> <a href="blog_add.php" class="btn btn-success ">Add Blog category </a> </div> </div> <div class="toolbar"></div> </header> <div class="row"> <div class="col-lg-12"> <div class="box"> <div id="collapse4" class="body"> <?php include 'msg_display.php';?> <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped"> <thead> <tr> <th>S.NO</th> <th>Category Id</th> <th>Category</th> <th>Home Page</th> <th>Actions</th> </tr> </thead> <tbody> <?php $sno=1; $sel_employee = mysqli_query($link,"select * from blog_category"); while($rw_employee = mysqli_fetch_object($sel_employee)){?> <tr> <td><?php echo $sno;?></td> <td class="center"><?php echo $rw_employee->cat_id;?></td> <td class="center"><?php echo $rw_employee->cat_name;?></td> <td class="center"><?php echo $rw_employee->status;?></td> <td class="center"> <a class="btn btn-info" title="edit" href="blog_add.php?id=<?php echo $rw_employee->id;?>"> <i class="fa fa-edit"></i> </a> <a class="btn btn-danger" title="delete" href="blog_view.php?delete=d&id=<?php echo $rw_employee->id;?>" onclick="return confirm('Are you sure want to delete?')"> <i class="fa fa-trash-o"></i> </a> </td> </tr> <?php $sno++; } ?> </tbody> </table> </div> </div><!--/span--> </div><!--/row--> </div><!--/.fluid-container--> <!-- end: Content --> </div><!--/#content.span10--> </div><!--/fluid-row--> </div> </div> </div><!-- /.col-lg-12 --> </div><!-- /.row --> <!-- /.row --> <!-- /.row --> </div><!-- /.inner --> </div><!-- /.outer --> </div><!-- /#content --> </div><!-- /#wrap --> <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script> <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.print.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.colVis.min.js"></script> <script> $(document).ready(function() { var table = $('#dataTable').DataTable( { lengthChange: false, pagination:false, "bPaginate": false, "info": false } ); } ); </script> <?php include'footer.php';?>