  
  <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"><?php echo $type?> 
						Categories</span>
                    </div>
                    <div class="mws-panel-body">
                        <table class="mws-datatable-fn mws-table">
                            <thead>
                                <tr>
                                    <th width="75" align="center"></th>
                                    <th>Title</th>
                                    <th>العنوان</th>
                                    <th>تعديل</th>
                                    <th>حذف</th>
                               
                                </tr>
                            </thead>
                          <?php  if($records !=FALSE){ $c=0;
                          foreach($records as $rs):?>
                            <tbody>
                                <tr class="gradeA">
                                     <td><img width="70" height="50" src="<?php echo base_url();?>../uploads/cats/small/<?php echo $rs->pic;?>"></td>
                                     <td><?php echo $rs->name;?></td>
                                    <td><?php echo $rs->name_ar;?></td>
                                    <td><a href="<?php echo base_url();?>index.php/categories/edit_category/<?php echo $type;?>/<?php echo $rs->id;?>"><img src="<?php echo base_url();?>template/images/user_edit.png" alt="" title="" border="0" /></a></td>
                                    <td class="center"><a href="<?php echo base_url();?>index.php/categories/delete_category/<?php echo $type;?>/<?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">   
                    
                <input type="button" value="اضافه جديد" onclick="window.location.href='<?php echo base_url();?>index.php/categories/add_category/<?php echo $type;?>'" class="mws-button green" />


                    </div>              		
                    			
                    			                    		
                </div>


  
  </div>
    



    
    
    



  
 