halohalo
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
aramiyarkai
/
public_html
/
admin
/
Upload FileeE
HOME
<?php include 'dbc.php'; page_protect(); ?> <?php $page = ""; ?> <?php if($_GET['del'] == "yes"){ $id = mysql_real_escape_string($_GET['id']); mysql_query("delete from `delivery_tbl` where `id`='$id'"); } ?> <?php include 'header.php'; ?> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> <?php include 'top_header.php'; ?> <!-- Left side column. contains the logo and sidebar --> <?php include 'side_menu.php'; ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Delivery <small>View Details</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Delivery</a></li> <li class="active">View Delivery Details</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-12"> <!-- general form elements --> <div class="box box-primary"> <!-- /.box-header --> <!-- Table start --> <div class="box"> <div class="box-header"> <h3 class="box-title">View Delivery Details</h3> </div> <!-- /.box-header --> <div class="box-body"> <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> <thead> <tr> <th>id</th> <th>Autoid</th> <th>State</th> <th>Amount</th> <th>Weight</th> <th>Desc</th> <th>Status</th> <th>Sort Order</th> <th>IP Address</th> <th>Browser</th> <th>Date</th> <th>Actions</th> </tr> </thead> <tbody> <?php $sel_rw = mysql_query("select * from delivery_tbl"); while($row = mysql_fetch_object($sel_rw)){ ?> <tr> <td><?php echo $row->id; ?></td> <td><?php echo $row->autoid; ?></td> <td><?php echo $row->State; ?></td> <td><?php echo $row->amount; ?></td> <td><?php echo $row->weight; ?></td> <td><?php echo $row->desc; ?></td> <td><?php echo $row->status; ?></td> <td><?php echo $row->sort_order; ?></td> <td><?php echo $row->ip_address; ?></td> <td><?php echo $row->browser; ?></td> <td><?php echo $row->date; ?></td> <td> <a href="delivery_add.php?id=<?php echo $row->id; ?>&update=yes" title="Edit Details"><i class="fa fa-edit"></i></a> <a href="delivery_view.php?id=<?php echo $row->id; ?>&del=yes" title="Delete Details"><i class="fa fa-trash"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div> <!-- /.box-body --> </div></div> <!-- /.box --> </div> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include 'footer.php'; ?> <!-- Datatables --> <script> $(document).ready(function() { var handleDataTableButtons = function() { if ($("#datatable-buttons").length) { $("#datatable-buttons").DataTable({ dom: "Bfrtip", buttons: [ { extend: "copy", className: "btn-sm" }, { extend: "csv", className: "btn-sm" }, { extend: "excel", className: "btn-sm" }, { extend: "pdfHtml5", className: "btn-sm" }, { extend: "print", className: "btn-sm" }, ], responsive: true }); } }; TableManageButtons = function() { "use strict"; return { init: function() { handleDataTableButtons(); } }; }(); $('#datatable').dataTable(); $('#datatable-keytable').DataTable({ keys: true }); $('#datatable-responsive').DataTable({ dom: "Blfrtip", "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], buttons: [ { extend: "copy", className: "btn-sm" }, { extend: "csv", className: "btn-sm" }, { extend: "excel", className: "btn-sm" }, { extend: "pdfHtml5", className: "btn-sm" }, { extend: "print", className: "btn-sm" }, ], responsive: true, keys: true }); $('#datatable-scroller').DataTable({ ajax: "js/datatables/json/scroller-demo.json", deferRender: true, scrollY: 380, scrollCollapse: true, scroller: true }); var table = $('#datatable-fixed-header').DataTable({ fixedHeader: true }); TableManageButtons.init(); }); </script> <!-- /Datatables -->