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/applicationold/views/admin/car/carlist.php
        <div class="main-content">
          <div class="content-wrapper">
            <div class="container-fluid">
                <!-- Basic form layout section start -->
                 <?php if ($this->session->flashdata('success_msg')) : ?>
                <div class="alert alert-success">
                  <a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a>
                  <?php echo $this->session->flashdata('success_msg') ?>
                </div>
              <?php endif ?>
              <?php if ($this->session->flashdata('error_msg')) : ?>
                <div class="alert alert-danger">
                  <a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a>
                  <?php echo $this->session->flashdata('error_msg') ?>
                </div>
              <?php endif ?>
            <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">Car Master List</h4>
            						<a class="add_bttn title_btn t_btn_add" href="<?= base_url();?>admin/car/addcar"><span><i class="fa fa-plus" aria-hidden="true"></i></span> Add Car</a>
            					</div>
            				</div>
            				<div class="card-body">
            					<div class="px-3">
            						<form class="form">
            							<div class="form-body">
            								<!--<h4 class="form-section">
            									<i class="icon-user"></i> Personal Details</h4>-->
            								<div class="row">
            									<div class="col-sm-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 Car</a>
            													</li>
            													<li class="nav-item">
            														<a class="nav-link" data-toggle="tab" href="#inactive_user">Inactive Car</a>
            													</li>
            												</ul>
            												<div class="tab-content">
            													<div id="active_user" class="tab-pane active"><br>
            														<div class="table-responsive custom_table_area">
            													<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>Registration No.</th>
                                                <th>Company Name</th>
                                                <th>Make</th>
                                                <th>Body</th>
                                                <th>Model</th>
                                                <th>Compliance Date</th>
                                                <th>VIN</th>
                                                <th>Engine</th>
                                                <th>Colour</th>
                                                <th>Fuel</th>
                                                <th>Network</th>
                                                <th>Silver Service</th>
                                                <th>Reg. Exp. Date</th>
                                                <th>RWC Due Month</th>
                                                <!-- <th>Plate Type</th>
                                                <th>Terminal No.</th> -->
                                                <th>Remarks</th>
                                                
                                                
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php
                                                if(!empty($cars))
                                                {
                                                    $i=1;
                                                    foreach ($cars as $car) {
                                                        ?>
                                         
                                            <tr>
                                              	<td><?= $i;?></td>
                                               	<td class="action_td text-center" >
                                               	 <a title="Edit" class="edit_bttn btn_action edit_icon" href="<?= base_url();?>admin/car/editcar/<?= $car['car_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
                                                <!--  <a class="btn_action edit_icon"><i class="fa fa-check" 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/car/set_deactive_car/<?= $car['car_id'];?>"><i class="fa fa-check" aria-hidden="true"></i></a>
                                                </td>
                                                <td><?= $car['registration_no'];?></td>
                                                <td><?= $car['company_name'];?></td>
                                                <td><?= $car['make'];?></td>
                                                <td><?= $car['model_name'];?></td>
                                                <td><?= $car['body'];?> </td>
                                                <td><?= date('d/m/Y',strtotime($car['compliance_date']));?></td>
                                                <td><?= $car['vin'];?></td>
                                                <td><?= $car['engine_no'];?></td>
                                                <td><?= $car['colour'];?></td>
                                                <td><?= $car['fuel_name'];?></td>
                                                <td><?= $car['network_name'];?></td>
                                                 <td><?php if(1== $car['silver_service']) { echo "Yes"; } else { echo "No";}?></td>
                                                <td><?= date('d/m/Y',strtotime($car['registration_exp_date']));?></td>
                                                <td><?= date('d/m/Y',strtotime($car['rwc_due_month']));?></td>
                                                <td><?= $car['remarks'];?></td>
                                               
                                            </tr>
                                                          <?php
                                                          //}
                                                           $i++;
                                                    }
                                                }

                                            ?>
                                            
                                        </tbody>
                                        <!--<tfoot>
                                            <tr>
                                                <th>Name</th>
                                                <th>Position</th>
                                                <th>Office</th>
                                                <th>Age</th>
                                                <th>Start date</th>
                                                <th>Salary</th>
                                            </tr>
                                        </tfoot>-->
                                    </table>
            										</div>
            										</div>
            													</div>
            													<div id="inactive_user" class="tab-pane fade"><br>
            														<div class="table-responsive custom_table_area">
            													<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>Registration No.</th>
                                                <th>Company Name</th>
                                                <th>Make</th>
                                                <th>Model</th>
                                                <th>Body</th>
                                                <th>Compliance Date</th>
                                                <th>VIN</th>
                                                <th>Engine</th>
                                                <th>Colour</th>
                                                <th>Fuel</th>
                                                <th>Network</th>
                                                <th>Silver Service</th>
                                                <th>Reg. Exp. Date</th>
                                                <th>RWC Due Month</th>
                                                <th>Remarks</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php
                                                if(!empty($get_car_inactive))
                                                {
                                                    $i=1;
                                                    foreach ($get_car_inactive as $car) {
                                                        ?>
                                         
                                            <tr>
                                                <td><?=$i;?></td>
                                                <td class="action_td text-center" >
                                                <a title="Edit" class="edit_bttn btn_action edit_icon" href="<?= base_url();?>admin/car/editcar/<?= $car['car_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
                                                <!--<a class="btn_action edit_icon"><i class="fa fa-check" aria-hidden="true"></i></a>-->
                                               <!--  <a class="btn_action delete_icon"><i class="fa fa-times" 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/car/set_active_car/<?= $car['car_id'];?>" ><i class="fa fa-times" aria-hidden="true"></i></a>
                                                </td>
                                              
                                                <td><?= $car['registration_no'];?></td>
                                                <td><?= $car['company_name'];?></td>
                                                <td><?= $car['make'];?></td>
                                                <td><?= $car['model_name'];?></td>
                                                <td><?= $car['body'];?> </td>
                                                <td><?= date('d/m/Y',strtotime($car['compliance_date']));?></td>
                                                <td><?= $car['vin'];?></td>
                                                <td><?= $car['engine_no'];?></td>
                                                <td><?= $car['colour'];?></td>
                                                <td><?= $car['fuel_name'];?></td>
                                                <td><?= $car['network_name'];?></td>
                                                 <td><?php if(1== $car['silver_service']) { echo "Yes"; } else { echo "No";}?></td>
                                                <td><?= date('d/m/Y',strtotime($car['registration_exp_date']));?></td>
                                                <td><?= date('d/m/Y',strtotime($car['rwc_due_month']));?></td>
                                                <td><?= $car['remarks'];?></td>
                                                
                                            </tr>
                                                          <?php
                                                          //}
                                                           $i++;
                                                    }
                                                }

                                            ?>
                                            
                                        </tbody>
                                        <!--<tfoot>
                                            <tr>
                                                <th>Name</th>
                                                <th>Position</th>
                                                <th>Office</th>
                                                <th>Age</th>
                                                <th>Start date</th>
                                                <th>Salary</th>
                                            </tr>
                                        </tfoot>-->
                                    </table>
            										</div>
            										</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>