HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/taxicamera/pmw_live_testing/old/applicationold/views/admin/customer/list.php

	<div class="main-content">

						<div class="content-wrapper">
								<div class="container-fluid">
									<!-- Basic form layout section start -->
									<?php echo $this->session->flashdata('msg') ?>
										<section id="basic-form-layouts">
												<div class="row">
													
														<div class="col-md-12">
																<div class="card">
																		<div class="card-header">
																				<div class="page-title-wrap">
																						<h4 class="card-title">Customer Master List</h4>
																						<a class="add_bttn title_btn t_btn_list" href="<?= base_url();?>admin/customer/addcustomer"><span><i class="fa fa-plus" aria-hidden="true"></i></span> Add Customer</a> </div>
																		</div>
																		<div class="card-body">
																				<div class="px-3">
																						<form class="form">
																								<div class="form-body">
																										<div class="row">
																												<div class="col-md-12">
																														<div class="staff_tab_area">
																															

																																<ul class="nav nav-tabs" role="tablist">
																							                                          <li class="nav-item">
																							                                            <a class="nav-link active" data-toggle="tab" href="#active_user">Active Customer</a>
																							                                          </li>
																							                                          <li class="nav-item">
																							                                            <a class="nav-link" data-toggle="tab" href="#inactive_user">Inactive Customer</a>
																							                                          </li>
																							                                    </ul>
																																																							<!-- Tab panes -->
																															
                                        
										<div class="tab-content">
												<div id="active_user" class="tab-pane active"><br>
													<div class="table-responsive custom_table_area">
														<table class="table table-striped table-bordered dom-jQuery-events c_table_style">
															<thead>
																	<tr>
																		<th>SL No.</th>
																		<th style="min-width: 60px;">Action</th>
																		<th>Customer Type</th>
																		<th>Name</th>
																		<th>ABN</th>
																		<th>Landline No.</th>
																		<th>Mobile No.</th>
																		<th>Email</th>
																		<th style="min-width: 200px;">Address</th>
																	</tr>
															</thead>
															<tbody>
																<?php
																	if(!empty($customers)){$i = 1;
																		
																		foreach ($customers as $cus) { ?>
																
																	<tr>
																		<td><?= $i;?></td>
																		<td class="action_td text-center"><a title="Edit" class="edit_bttn btn_action edit_icon" href="<?= base_url();?>admin/customer/editcustomer/<?= $cus['customer_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
																		<!-- </td>
																		<td class="action_td text-center"> --><a title="Active" class="btn_action edit_icon deactv_btn" href="<?= base_url();?>admin/customer/set_deactive_customer/<?= $cus['customer_id'];?>"><i class="fa fa-check" aria-hidden="true"></i></a></td>
																		<td><?= (isset($cus['customer_type']) && $cus['customer_type'] == 'I')?'Individual':'Business'?></td>
																		
																		<td><?= (isset($cus['customer_type']) && $cus['customer_type'] == 'I')? $cus['first_name'].' '.$cus['middle_name'].' '.$cus['last_name'] : $cus['business_name']?></td>
																		<!-- <td><?= $cus['dob']; ?></td> -->
																		<td><?= $cus['abn']; ?></td>
																		<td><?= $cus['landline_no']; ?></td>
																		<td><?= $cus['mobile']; ?></td>
																		<td><?= $cus['email']; ?></td>
																		<td><?= $cus['full_address']; ?></td>
																	</tr>																				
																<?php	$i++;	
																		}
																	}
																?>
															</tbody>
														</table>
													</div>
												</div>
												 <div id="inactive_user" class="tab-pane fade"><br>
														<div class="table-responsive custom_table_area">
																<table class="table table-striped table-bordered dom-jQuery-events c_table_style">
																		<thead>
																				<tr>
																						<th>SL No.</th>
																						<th style="min-width: 60px;">Action</th>
																						<th>Customer Type</th>
																					<!-- 	<th style="min-width: 60px;">Status</th> -->
																						<th>Name</th>
																						<!-- <th>DOB</th> -->
																						<th>ABN</th>
																						<th>Landline No.</th>
																						<th>Mobile No.</th>
																						<th>Email</th>
																						<th style="min-width: 200px;">Address</th>
																				</tr>
																		</thead>
																				<tbody>
																			<?php
																				if(!empty($customers_inac))
																				{
																					$i = 1;
																					foreach ($customers_inac as $cus) {

																						
																						?>
																			
																				<tr>
																						<td><?= $i;?></td>
																						<td class="action_td text-center"><a title="Edit" class="edit_icon btn_action edit_icon" href="<?= base_url();?>admin/customer/editcustomer/<?= $cus['customer_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
																						<!-- </td>
																						<td class="action_td text-center"> --><a title="Inactive" class="btn_action btn-warning active_btn" href="<?= base_url();?>admin/customer/set_active_customer/<?= $cus['customer_id'];?>"><i class="fa fa-times" aria-hidden="true"></i></a></td>
																						
																						<td><?= (isset($cus['customer_type']) && $cus['customer_type'] == 'I')?'Individual':'Business'?></td>
																		
																						<td><?= (isset($cus['customer_type']) && $cus['customer_type'] == 'I')? $cus['first_name'].' '.$cus['middle_name'].' '.$cus['last_name'] : $cus['business_name']?></td>
																						
																						<!-- <td><?= $cus['dob']; ?></td> -->
																						<td><?= $cus['abn']; ?></td>
																						<td><?= $cus['landline_no']; ?></td>
																						<td><?= $cus['mobile']; ?></td>
																						<td><?= $cus['email']; ?></td>
																						<td><?= $cus['full_address'];?></td>
																				</tr>																				
																							<?php
																						$i++;	
																					}
																				}
																			?>
																		</tbody>
																</table>
														</div>
												</div>
										</div>
																														</div>
																												</div>
																										</div>
																								</div>
																								
																								<!--<div class="form-actions">
								<button type="button" class="btn btn-danger mr-1">
									<i class="icon-trash"></i> Cancel
								</button>
								<button type="button" class="btn btn-success">
									<i class="icon-note"></i> Save
								</button>
							</div>-->
																						</form>
																				</div>
																		</div>
																</div>
														</div>
												</div>
										</section>
										<!-- // Basic form layout section end --> 
								</div>
						</div>
				</div>