      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Channellimo
            <small>Preview</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Images</li>
          </ol>
        </section>
        
        <section class="content">
        	
           <div class="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url("admin/images/add");?>">ADD Images</a></h3>
             </div><!-- /.box-header -->
             <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th>ID</th>
						<th></th>
                        <th></th>
                        <th></th>
                        <th>Title</th>
                        <th>Car Type</th>
                        <th>Upload By</th>
                        <th>Upload Date</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
					$i=1;
					foreach($images as $v)
					{	
						/*if($v['status']=="1"){$authorize="Active";}
						elseif($v['status']=="0"){$authorize="DisActive";}
						else{$authorize="Null";};*/
						
						if($v['username']==''){$user = 'No Found';}
						else{$user = $v['username'];};
						if($v['fullname']==""){$carname = 'No Found';}
						else{$carname = $v['fullname'];};
						$url = 'http://channellimo.com/7ced114865b41ca35/assets/img/car/'.$v['name'];
						//base_url("assets/img/car/".$v['name']."")
					 	echo'
						<tr>
						  <td>'.$i.'</td>
						  <td><a href="'.$url.'" class="fancybox-effects-a"><i class="fa fa-eye"></i>View</a></td>
						  <td><a href="'.base_url("admin/images/edit/".$v['img_id']."").'" class="fancybox-effects-a"><i class="fa fa-edit"></i>Edit</a></td>
						  <td><a href="'.site_url("admin/images/delete/".$v['img_id']."").'" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
						  <td>'.$v['title'].'</td>
						  <td>'.$carname.'</td>
						  <td>'.$user.'</td>
						  <td>'.$v['create_date'].'</td>
						</tr>';
						$i++;
					}
					?>
                      
                    </tbody>
                    
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
            	
        </section>
       </div>
       
