ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/awb-details.php

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

<section class="content" style="background-color: white;">
    
    
    <div class="row">
		<div class="col-md-6" style="text-align: center;">
			<h4><i class="fa fa-info-circle"></i> AWB List Updated Date Details</h4>
		</div>
		<div class="col-md-4" style="text-align: left;">
		    <a href="print-cargo-empty-number.php" class="btn btn-warning btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Create New Awb List</a>
		</div>
	</div>
    
    
	<div class="row">
		<div class="col-md-12">
			<div>
				<div class="box-body table-responsive">
					<table id="example1" class="table table-bordered table-striped">
						<thead>
							<tr>
								<th width="30">SL</th>
								<th>Client Name</th>
								<th>Logistic Name</th>
								<th>Date</th>
								<th>Start</th>
								<th>End</th>
							 <?php if($clientType=="Admin"){ ?>	<th>Action</th>	<?php }?>
							</tr>
						</thead>
						<tbody>
							<?php
							$i=0;
							$statement = $pdo->prepare("SELECT *,(select full_name from tbl_user where id=tbl_awb_details.client_id) as client_name,(select name from tbl_logistic where id=tbl_awb_details.logistic_id) as logistic_name FROM `tbl_awb_details`");
							$statement->execute();
							$result = $statement->fetchAll(PDO::FETCH_ASSOC);
							foreach ($result as $row) {
								$i++;
								?>
								<tr>
									<td><?php echo $i; ?></td>
									<td><?php echo $row['client_name']; ?></td>
									<td><?php echo $row['logistic_name']; ?></td>
									<td><?php echo $row['date']; ?></td>
								<td><?php echo $row['prefix'].$row['start']; ?></td>
								<td><?php echo $row['prefix'].$row['end']; ?></td>
										
								<?php if($clientType=="Admin"){ ?>	<td>										
										<a href="#" class="btn btn-danger btn-xs" data-href="awb-details-delete.php?id=<?php echo $row['id']; ?>" data-toggle="modal" data-target="#confirm-delete"><i class='fa fa-trash'></i> Delete</a>  
									</td><?php }?>
								</tr>
								<?php
							}
							?>							
						</tbody>
					</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