  

  <?php  $lg=$this->fun->get_lang();

         foreach($lg->result() as $r):

         $language=$r->lang;

         endforeach;

?>


  <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>

  <div id="mws-container" class="clearfix">
            <div class="container">
            
       
       
   
  <div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-table-1">Orders</span>
                    </div>
                    <div class="mws-panel-body">
                        <table class="mws-datatable-fn mws-table">
                            <thead>
                                <tr>
                                    <th width="75" align="center">ID</th>
                                    <th>Client</th>
                                    <th>Client Phone</th>
                                    <th>Client Email</th>
                                    <th>Client address</th>
                                    <th>Active</th>
                                    <th>Delete</th>
                               
                                </tr>
                            </thead>
                          <?php  if($records !=FALSE){ $c=0;
                          foreach($records as $rs):?>
                            <tbody>
                                <tr class="gradeA">
                                     <td><?php echo $rs->id;?></td>
                                     <td><?php 	   
 echo $rs->name?></td>
                                     <td><?php echo $rs->phone;?></td>
                                      <td><?php echo $rs->email;?></td>
                                       <td><?php echo $rs->address;?></td>
                                   
                                    <td><?php if($rs->active=='yes'){?><a href="<?php echo base_url();?>index.php/members/change_status/no/<?php echo $rs->id;?>">Yes</a><?php }else{?><a href="<?php echo base_url();?>index.php/members/change_status/yes/<?php echo $rs->id;?>">No</a><?php }?></td>
                                    <td class="center"><a href="<?php echo base_url();?>index.php/members/delete_order/<?php echo $rs->id;?>" class="ask"><img src="<?php echo base_url();?>template/images/trash.png" alt="" title="" border="0" /></a></td>
                                     
                                </tr>
                       <?php endforeach;
                       }
                       ?>

                                
                             

                        </table>
                                 <?php echo $this->pagination->create_links();?>

                        

                    </div>
                    
                    <br>
                    <div class="mws-button-row">   
                                        </div>              		
                    					                    		
                </div>

  </div>
    



    
    
    



  
 






















