ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/view-pickup-entry.php

<?php require_once('header.php'); ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript" >
	$(document).ready(function() {
		     function getData(){
			    var from= $('#from').val();     
                var to= $('#to').val();   
                var role= $('#role').val();   
                var role_id= $('#role_id').val();  
                var status= $('#status').val();  
				var dataTable = $('#pickup-entry-grid').DataTable( {
					"processing": true,
					"serverSide": true,
                    "destroy":true,
                    "ajax":{
						url :"data-tables/view-pickup-entry-data-table.php", // json datasource
						data: {client_id:role_id,client_type:role,from:from,to:to,status:status},
						type: "post",  // method  , by default get
						error: function(){  // error handling
							$(".pickup-entry-grid-error").html("");
							$("#pickup-entry-grid").append('<tbody class="pickup-entry-grid-error"><tr><th colspan="3">No data found in the server</th></tr></tbody>');
							$("#pickup-entry-grid_processing").css("display","none");
						}
					}
				} );
			    }
			    getData();
			  $('#get_report').on('click', function(){
			      var from_date=  $('#from').val();
			      if(from_date){
			        getData();
			      } else
                    {
                        alert('Select a Date !!');
                    }
			  } ); 
			  
			  
			   $('#get_excel_report').on('click', function(){
			        var from= $('#from').val();     
                    var to= $('#to').val();   
                    var role= $('#role').val();   
                    var role_id= $('#role_id').val();  
                    var status= $('#status').val();
                window.location.href="excel/view-pickup-entry-report.php?from="+from+"&to="+to+"&client_type="+role+"&client_id="+role_id+"&status="+status;
			  } ); 
			  
			  
			} );
		</script>
<section class="content-header">
	<div class="content-header-left">
		<center><h4> <?=strtoupper($_REQUEST['status']); ?> PICKUP ENTRY</h4></center>
	</div>
		<div class="row">
	    
	    <div class="col-md-12">
	 <div class='col-md-3'>
	     <table width='100%;'>
            <tr>
         <td><label for="from">From:</label></td>
         <td><input type="date" id="from" value="" class="form-control" name="from"></td>
         </tr>
        </table>
    </div>
    <div class='col-md-3'>
        <table width='100%;'>
            <tr>
                <td><label for="to">To:</label></td>
                <td><input type="date" id="to" value="" class="form-control" name="to"></td>
            </tr>
        </table>
    </div>
    <div class='col-md-3'>
         <button id="get_report" name="date_select" type="submit" class="btn btn-md btn-success">Get Data</button>
    </div>
    <div class='col-md-3'>
         <button id="get_excel_report" name="date_select" type="submit" class="btn btn-md btn-warning">Export as Excel</button>
    </div>
	</div>
	
	</div>
	<input type="hidden" id="fromm" name="fromm">
	      <input type="hidden" id="too" name="too">
	      <input type="hidden" id="status" name="status" value="<?=$_REQUEST['status']; ?>">
	       <input type="hidden" id="role" name="role" value="<?php echo $clientType; ?>">
         <input type="hidden" id="role_id" name="role_id" value="<?php echo $clientId; ?>">
</section>

<section class="content">
	<div class="row">
		<div class="col-md-12">
			<div class="box box-info">
				<div class="box-body table-responsive">
					<table id="pickup-entry-grid" class="table table-bordered table-striped">
						<thead>
							<tr>
								<th width="30">SL</th>
								<th>AWB Number</th>
								<th>Ref Number</th>
								<th>Company Name</th>
								<th>Address</th>
								<th>Destination</th>
								<th>Pincode</th>
								<th>Mobile Number</th>
								<th>Actual Weight</th>
								<th>Charged Weight</th>
								<th>No.Of Pics</th>
								<th>Date Added</th>
								<th>Customer Name</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>
</section>



<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Delete Confirmation</h4>
            </div>
            <div class="modal-body">
                <p>Are you sure want to delete this item?</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                <a class="btn btn-danger btn-ok">Delete</a>
            </div>
        </div>
    </div>
</div>


<?php require_once('footer.php'); ?>

Zerion Mini Shell 1.0