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']; $sel_del = mysqli_query($link,"select * from subcategory_tbl where id='$id'"); $rw_del = mysqli_fetch_object($sel_del); $path = $rw_del->subcat_image; //unlink($path); if(mysqli_query($link,"delete from subcategory_tbl where id='$id'")){ $msg[]="Successfully Deleted!"; } else { $err[]="Failed To Delete!"; } } ?> <?php include'header.php';?> <div class="main-bar"> <h3><i class="fa fa-archive"></i> Sub 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> <h5>View Sub Category</h5> <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>Id</th> <th>Category</th> <th>Sub Category</th> <th>Short Code</th> <th>Home Page</th> <th>Product Page</th> <th>Status</th> <th>Sort Order</th> <th>Actions</th> </tr> </thead> <tbody> <?php $sno=1; $sel_employee = mysqli_query($link,"select * from subcategory_tbl order by id desc "); while($rw_employee = mysqli_fetch_object($sel_employee)){?> <tr> <td><?php echo $sno;?></td> <td><?php echo $rw_employee->subcat_id;?></td> <td class="center"><?php $cat_id = $rw_employee->cat_id; $sel_cat = mysqli_query($link,"select * from category_tbl where cat_id='$cat_id'"); $rw_cat = mysqli_fetch_object($sel_cat); echo $rw_cat->cat_name;?> </td> <td class="center"><?php echo $rw_employee->subcat_name;?></td> <td class="center"><?php echo $rw_employee->short_code;?></td> <td class="center"><?php $home_page = $rw_employee->home_page; $product_page = $rw_employee->product_page; if($home_page==1){ echo "Yes"; } else { echo "No";} ?></td> <td class="center"><?php if($product_page==1){ echo "Yes"; } else { echo "No";}?></td> <!--<td class="center"> <span class="label label-success">Active</span> </td>--> <td class="center"><?php echo $rw_employee->status;?></td> <td class="center"><?php echo $rw_employee->sort;?></td> <td class="center"> <a class="btn btn-info" title="edit" href="update_subcategory.php?id=<?php echo $rw_employee->id;?>"> <i class="fa fa-edit"></i> </a> <a class="btn btn-danger" title="delete" href="view_subcategory.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 class="modal hide fade" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Settings</h3> </div> <div class="modal-body"> <p>Here settings can be configured...</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> </div> </div> </div><!-- /.col-lg-12 --> </div><!-- /.row --> <!-- /.row --> <!-- /.row --> </div><!-- /.inner --> </div><!-- /.outer --> </div><!-- /#content --> <div id="right" class="bg-light lter"> <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Best check yo self, you're not looking too good. </div> <!-- .well well-small --> <div class="well well-small dark"> <ul class="list-unstyled"> <li>Visitor <span class="inlinesparkline pull-right">1,4,4,7,5,9,10</span> </li> <li>Online Visitor <span class="dynamicsparkline pull-right">Loading..</span> </li> <li>Popularity <span class="dynamicbar pull-right">Loading..</span> </li> <li>New Users <span class="inlinebar pull-right">1,3,4,5,3,5</span> </li> </ul> </div><!-- /.well well-small --> <!-- .well well-small --> <div class="well well-small dark"> <button class="btn btn-block">Default</button> <button class="btn btn-primary btn-block">Primary</button> <button class="btn btn-info btn-block">Info</button> <button class="btn btn-success btn-block">Success</button> <button class="btn btn-danger btn-block">Danger</button> <button class="btn btn-warning btn-block">Warning</button> <button class="btn btn-inverse btn-block">Inverse</button> <button class="btn btn-metis-1 btn-block">btn-metis-1</button> <button class="btn btn-metis-2 btn-block">btn-metis-2</button> <button class="btn btn-metis-3 btn-block">btn-metis-3</button> <button class="btn btn-metis-4 btn-block">btn-metis-4</button> <button class="btn btn-metis-5 btn-block">btn-metis-5</button> <button class="btn btn-metis-6 btn-block">btn-metis-6</button> </div><!-- /.well well-small --> <!-- .well well-small --> <div class="well well-small dark"> <span>Default</span> <span class="pull-right"><small>20%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-info" style="width: 20%"></div> </div> <span>Success</span> <span class="pull-right"><small>40%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-success" style="width: 40%"></div> </div> <span>warning</span> <span class="pull-right"><small>60%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-warning" style="width: 60%"></div> </div> <span>Danger</span> <span class="pull-right"><small>80%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-danger" style="width: 80%"></div> </div> </div> </div><!-- /#right --> </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';?>