     <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">Car Brand</li>
          </ol>
        </section>
        
        <section class="content">
        	<div class="col-lg-12">
             <form action="" method="post">
             	<div class="box box-primary col-lg-8">
                	<div class="box-header with-border">
						<h3 class="box-title">FORM EDIT</h3>
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="carname">Type Car</label>
                        <select class="form-control" name="carname">
                        	<?php 
			  					$sql = $this->db->query('SELECT `id`,`fullname` FROM `tblcar` ORDER BY `id` DESC');
			  					foreach ($sql->result() as $car)
			  					{  
			  				?>
             			 	<option <?php echo $car->id == ''.$img->car_id.'' ? 'selected' : '' ?> value="<?php echo $car->id ?>"><?php echo $car->fullname ?></option> 
              			<?php }?>
						</select>
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="title">Title</label>
					   <input name="title" class="form-control" type="text" value="<?php echo $img->title?>" placeholder="Enter Title">
					</div> 
                    
                    <div class="form-group col-lg-8">
                     <input type="submit" name="update_images" value="Update" class="btn btn-primary"/>
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div>
                    
                    
                </div>
             </form>
            </div>
        </section>
     </div>
