ok
Direktori : /proc/self/root/home2/selectio/www/ramali.in/dashboard/public/ |
Current File : //proc/self/root/home2/selectio/www/ramali.in/dashboard/public/shipping-table.php |
<?php include_once('includes/functions.php'); ?> <section class="content-header"> <h1>Shipping Details /<small><a href="home.php"><i class="fa fa-home"></i> Home</a></small></h1> <ol class="breadcrumb"> <a class="btn btn-block btn-default" href="add-shipping.php"><i class="fa fa-plus-square"></i> Add New Shipping</a> </ol> </section> <?php if ($permissions['subcategories']['read'] == 1) { ?> <!-- Main content --> <section class="content"> <!-- Main row --> <div class="row"> <!-- Left col --> <div class="col-xs-12"> <div class="box"> <div class="form-group"> <label for="style">Status</label> <select name="state" class="form-control"> <?php error_log("SELECT * FROM tb_state WHERE status=1"); $state_query = "SELECT * FROM tb_state WHERE status=1"; $db->sql($state_query); $res_state = $db->getResult(); foreach($res_state as $state_data){ ?> <option value="<?= $state_data['id'] ?>" <?php if($state_data['id']==$res_query[0]['state_id']){ echo "selected"; } ?> > <?=$state_data['state']?> </option> <?php } ?> </select> <br> </div> <div class="box-header"> <h3 class="box-title">Shipping Details</h3> </div> <div class="box-body table-responsive"> <table class="table table-hover" data-toggle="table" data-url="api-firebase/get-bootstrap-table-data.php?table=shipping" data-page-list="[5, 10, 20, 50, 100, 200]" data-show-refresh="true" data-show-columns="true" data-side-pagination="server" data-pagination="true" data-search="true" data-trim-on-search="false" data-sort-name="id" data-sort-order="desc"> <thead> <tr> <th data-field="id" data-sortable="true">ID</th> <th data-field="state" data-sortable="true">state</th> <th data-field="distict" data-sortable="true">District</th> <th data-field="amount" data-sortable="true">Weight_amount</th> <th data-field="status" data-sortable="true">status</th> <th data-field="operate">Action</th> </tr> </thead> </table> </div> </div> </div> <div class="separator"> </div> </div> </section> <?php } else { ?> <div class="alert alert-danger topmargin-sm" style="margin-top: 20px;">You have no permission to view Shipping Details.</div> <?php } ?>