

 
 <div class="row">
  
   	

   	<div class="col-md-12">
	
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
				View setting
            	</div>
            </div>
			<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >				

										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	
									
									
				<table class="tablesorter table table-bordered  table-hover" id="sortable_table">			

             <thead>
         <tr>
    
     <th>Name</th>
	     <th>Valuse</th>


                 </tr>
             </thead>
<?php
 if(!is_array($setting)) {
				    echo '<div class="alert alert-danger text-center">There was no products found in the system</div>';

			 }else{
 if(!is_array($setting)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='1'>";
    
       echo '<div class="alert alert-warning text-center">There no records found..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($setting as $c): 

		 

             ?>



             <tr>
                
            <?php 
$id=$c->name;


?>

              

  <td><?php echo $c->name ; ?></td>
    <td>
	
		<div class="form-group">
    <label for="inputvalue" class="col-sm-2 control-label">	</label>
    <div class="col-sm-10">
		  		<input type="text" name="value" value="<?php echo $c->value; ?>" class="form-control"  placeholder="Enter details ">

			
		<span class="text-danger"> <?php echo form_error('value'); ?>
		
		</span>
	</div>
  </div>
		
	
	
	
	
	
	
	</td>
	  
             </tr>

	<?php endforeach;} ?>

              <?php }?>
	  <tr>
    
     <th colspan="2">
	  


	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="deal" name="btn_adddeal" class="btn btn-primary"> Update Records   </button>

    </div>
  </div>
  </th>
                 </tr>
        </table>

									
									
									
					</div>				
									
									
							</div>		
									
							</div>
						</div>
				

			
			</div>
		</div>
  
  </div>
			
			
			
		
		
  

 
</div>


















