ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/invoice_print.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= $('#client_id').val();
                var set_status= $('#set_status').val();
                var entry_type= $('#entry_type').val();
                
				var dataTable = $('#employee-grid').DataTable( {
					"processing": true,
					"serverSide": true,
				 	"aaSorting":[[13,'desc']],
                    "destroy":true,
                    "lengthMenu": [ [10, 25, 50, 100,500,1000,10000], [10, 25, 50,100,500,1000, "All"] ],
                    "ajax":{
						url :"data-tables/invoice_datatable.php", // json datasource
				// 		data: {client_id:role_id,client_type:role,status:'picked'},
						data: {client_id:role_id,client_type:role,from:from,to:to,status:set_status,entry_type:entry_type},
						type: "post",  // method  , by default get
						error: function(){  // error handling
							$(".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");
						}
					}
				} );
			    }
			    getData();
			    
			    $('#get_report').on('click', function(){
			        getData();
			  } );      
			} );
		</script>
<script type="text/javascript">
$(document).ready(function(){
    $("#client_id").select2();
	    $("#set_status").select2();
	    
    $('#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);
        }
    });
});

    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.location.href="awb_number_print.php?list_id="+ids;

}
function redirectToAddressPrint(){
        
         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="lable-print-with-address.php?list_id="+ids;

}
 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="lable_print.php?list_id="+ids;

}
</script>
		
<section class="content-header" style="background-color: white;">
	
	<div class="row">
		<div class="col-md-12" style="text-align: center;">
			<h4><i class="fa fa-info-circle"></i> One Time Print Pickup Entry Details</h4>
		</div>
		
	</div>
<div class="row">

	<div style="padding-bottom: 25px;padding-top: 10px;">
		<div class="col-md-2" style="text-align: center;" >		
			<b>From</b>
		</div>
		<div class="col-md-2" style="text-align: center;" >		 
			<b>To</b>
		</div>
		<div class="col-md-3" style="text-align: center;">		
			<b>Client</b>
		</div>
		<div class="col-md-2" style="text-align: center;">		
			<b>Status</b>
		</div>
		<div class="col-md-2" style="text-align: center;">		
			<b>Entry</b>
		</div>
		<div class="col-md-1" style="text-align: center;">		
			<b>Action</b>
		</div>
	</div>
<div style="padding-bottom: 25px;padding-top: 10px;">
    <input type="hidden" id="role" name="role" value="<?php echo $clientType; ?>">
     
		<div class="col-md-2" style="text-align: center;" >		
			<input type="date" class="form-control" id="from" value="<?php echo date("Y-m-d") ?>" name="from">
		</div>
		<div class="col-md-2" style="text-align: center;" >		
			<input type="date" class="form-control" id="to" value="<?php echo date("Y-m-d") ?>" name="to">
		</div>
		<div class="col-md-3" style="text-align: center;">	
		
		
		<select class="form-control" name="client_id" id="client_id">
	        <?php $wheres=""; if($clientType=="Admin")
    	 {  ?><option value="all" >Select Client Name </option> <?php }else{ $wheres=" and id=".$clientId;} ?>
	        <?php
			$statement = $pdo->prepare("SELECT * FROM tbl_user WHERE role='client' or role='Modicare' $wheres ORDER BY id ASC");
			$statement->execute();
			$result = $statement->fetchAll(PDO::FETCH_ASSOC);	
			foreach ($result as $row) {
				?>
				<option value="<?php echo $row['id']; ?>"><?php echo $row['full_name']; ?></option>
				<?php
			}
			?>
	    </select>
		</div>
		<div class="col-md-2" style="text-align: center;">		
        <select class="form-control" name="set_status" id="set_status">
                <option value='all'>All</option>
                <option value='pending'>Pending</option>
                <option value='picked'>Picked</option>
                <option value='manifest'>Manifest Created</option>
                <option value='In Transit'>In Transit</option>
                <option value='Received at destination'>Received at Destination</option>
                <option value='Out for delivery'>Out for delivery</option>
                <option value='Delivered'>Delivered</option>
                <option value='Undelivery'>Undelivery</option>
            </select>
		</div>
		<div class='col-md-2'>
                                    <select class="form-control select2" name="entry_type" id="entry_type">
										<option value="">All</option>
										<option value="1">Normarl Booking</option>
										<option value="2">Api Booking</option>

							    </select>
					</div>	
		<div class="col-md-1" style="text-align: center;">		
			<span class="btn btn-success btn-sm" id="get_report"><i class="fa fa-filter"></i> Filter</span>
		</div>
</div>
	</div>
</section>

<section class="content">
	<div class="row">
		<div class="col-md-12">
			<div>
				<div class="box-body table-responsive">
					<table id="employee-grid" class="table table-bordered table-striped">
						<thead>
							<tr>
								<th width="30">SL</th>
								<th data-sortable="false"><i class="fa fa-check"></i><input class="checkbox" type="checkbox" id="select_all" /></th>
								<th>AWB Number</th>
								<th>Ref Number</th>
								<th>Company Name</th>
								<th>Address</th>
								<th>Pincode</th>
								<th>Mobile Number</th>
								<th>Action</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>

	<div class="content-footer-right" style="margin-left:45%">
	    <button class="btn btn-warning btn-sm" onclick="redirectToAddressPrint();">Lable Print With Address </button>
		<button class="btn btn-primary btn-sm" onclick="redirectTo();">Print AWB Number</button>
		<button class="btn btn-primary btn-sm" onclick="redirectTolable();">Print Label</button>
	</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