<section role="main" class="content-body">
					<header class="page-header">
						<h2>Manage Nigeria Stations Shipping</h2>
						<div class="right-wrapper pull-right">
							<ol class="breadcrumbs">
								<li>
									<a href="<?php echo base_url();?>admin">
										<i class="fa fa-home"></i>
									</a>
								</li>
								<li><span>Manage Nigeria Stations Shipping</span></li>
							</ol>
					
						</div>
					</header>
                    	<div class="row">
                        <div class="col-md-6">
						<section class="panel">
							<header class="panel-heading">
								<h2 class="panel-title">List of All Nigeria Stations Shipping</h2>
							</header>
							<div class="panel-body">
								<table class="table table-bordered table-striped mb-none" id="datatable-tabletools" data-swf-path="assets/vendor/jquery-datatables/extras/TableTools/swf/copy_csv_xls_pdf.swf">
       		 <thead><tr><th>S.No</th><th>Station</th><th>ZoneID</th><th>Rates</th></tr></thead>
                                <tbody>
                                <?php $i=1;foreach($states as $c){?>
                                <tr><td><?php echo $i;?></td>
                                	<td><?php echo $c->station?></td>
                                    <td><?php echo $c->zone_id?></td>
                                    <td><a title="<?php echo $c->station?>" href="<?php echo $c->zone_id;?>" id="<?php echo $c->stid;?>" class="btn btn-xs btn-success show_rates"><i class="fa fa-money"></i> Show Rates</a></td></tr>
                                <?php $i++;}?>
                                </tbody>
                            </table>
							</div>
						</section>
                        </div>
                        <div class="col-md-6">
						<section class="panel">
							<header class="panel-heading">
								<h2 class="panel-title">List of Rates <b class="text-danger selected_c"></b></h2>
							</header>
							<div class="panel-body">
								<table class="table table-bordered table-striped">
                                	<thead><tr><th>S.No.</th><th>Weight</th><th>Rate</th><th>Action</th></tr></thead>
                                    <tbody class="rate">
                                    
                                    </tbody>
                                </table>
							</div>
						</section>
                        </div>
                        </div>
				</section>
                
			</div>

			
		</section>

		<!-- Vendor -->
        <script>
		$(document).ready(function(){
			$(".show_rates").click(function(e){e.preventDefault();
				var zone=$(this).attr("href");
				var c=$(this).attr("title");
				$(".selected_c").text(c);
				$.ajax({
							 type: "POST",
							 url: '<?php echo base_url();?>admin/ajax_show_ratesn',
							 data: {zone:zone},
							 success: function(res){
								$(".rate").html(res);
							 }
							 });
			});
		});
		</script>
	<script src="<?php echo base_url();?>admin_assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/bootstrap/js/bootstrap.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/nanoscroller/nanoscroller.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/magnific-popup/magnific-popup.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
		
		<!-- Specific Page Vendor -->
		<script src="<?php echo base_url();?>admin_assets/vendor/select2/select2.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js"></script>
		<script src="<?php echo base_url();?>admin_assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
		
		<!-- Theme Base, Components and Settings -->
		<script src="<?php echo base_url();?>admin_assets/javascripts/theme.js"></script>
		
		<!-- Theme Custom -->
		<script src="<?php echo base_url();?>admin_assets/javascripts/theme.custom.js"></script>
		
		<!-- Theme Initialization Files -->
		<script src="<?php echo base_url();?>admin_assets/javascripts/theme.init.js"></script>


		<!-- Examples -->
		<script src="<?php echo base_url();?>admin_assets/javascripts/tables/examples.datatables.default.js"></script>
		<script src="<?php echo base_url();?>admin_assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
		<script src="<?php echo base_url();?>admin_assets/javascripts/tables/examples.datatables.tabletools.js"></script>
</body>
</html>