ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/dp-code.php

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

<script type="text/javascript">
$(document).ready(function(){
    $("#pincode").select2();
    
                function getData(){
			    var pincode=$('#pincode').val();     
				var dataTable = $('#employee-grid').DataTable( {
					"processing": true,
					"serverSide": true,
                    "destroy":true,
                    "ajax":{
						url : "data-tables/dp-code-list-datatable.php", // json datasource
						data: {pincode:pincode},
						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();
                
                 $('#pincode').on('change', function(){
			        getData();
			      
			  } );
                
                
            });
</script>
<section class="content" style="background-color: white;">
    
    
    <div class="row">
		<div class="col-md-8" style="text-align: center;">
			<h4><i class="fa fa-info-circle"></i> Pincode -DP Code Details</h4>
		</div>
		<div class="col-md-4" style="text-align: right;">
		    <a href="dp-code-add.php" class="btn btn-success btn-sm"><i class="fa fa-plus"></i> Add DP Code</a>
		    <!--<a href="pincode-bulk-upload.php" class="btn btn-warning btn-sm"><i class="fa fa-upload"></i> Bulk Upload</a>-->
		</div>
	</div>
    <div class="row">

    <div class="col-md-4"></div>
		<div class="col-md-3" style="text-align: center;">		
        <select class="form-control" name="pincode" id="pincode">
                <option value="all">All Pincode</option>
                <?php
			$statement = $pdo->prepare("SELECT * FROM pincode ORDER BY id ASC");
			$statement->execute();
			$result = $statement->fetchAll(PDO::FETCH_ASSOC);	
			foreach ($result as $row) {
				?>
				<option value="<?php echo $row['pin_code']; ?>"><?php echo $row['pin_code']; ?>-<?php echo $row['area_code']; ?>-<?php echo $row['city']; ?></option>
				<?php
			}
			?>
            </select>
		</div>
	</div>
    
	<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>Pincode</th>
								<th>Dp Code</th>
								<th>Area Code</th>
								<th>District</th>
								<?php if($clientType=="Admin"){  ?><th>
								Action
								</th><?php } ?>
								
							</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