    
      <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">
                      <form name="form" method="post" action="<?php echo base_url();?>index.php/gallery/change_status/<?php echo $type?>/<?php echo $status?>/<?php echo $post_id?>">  
                        <table class="mws-datatable-fn mws-table">
                            <thead>
                                <tr>
                                   
                 <th width="75" align="center">photo</th>
            <th>Title</th>
            <th><?php echo iconv("windows-1256","utf-8","العنوان")?></th>
            
            <th >Edit</th>
            <th >Delete</th>

                               
                                </tr>
                            </thead>
                          <?php  if($records !=FALSE){ $c=0;
                          foreach($records as $rs):?>
                            <tbody>
                                <tr class="gradeA">
                                     <td><img alt="" height="77" src="../../../../../../uploads/gallery/small/<?php echo $rs->pic;?>" width="100"></td>
                                     <td><?php echo $rs->name;?></td>
                                    <td><?php echo $rs->name_ar;?></td>
                                    <td><a href="<?php echo base_url();?>index.php/gallery/edit_img/<?php echo $type;?>/<?php echo $status;?>/<?php echo $post_id;?>/<?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/gallery/delete_img/<?php echo $type;?>/<?php echo $status;?>/<?php echo $post_id;?>/<?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>
                        </form>
                                 <?php echo $this->pagination->create_links();?>

                        

                    </div>
                    
                    <br>
                    <div class="mws-button-row">   
                    
                <input type="button" value="Add New" onclick="window.location.href='<?php echo base_url();?>index.php/gallery/add_img/<?php echo $type;?>/<?php echo $status;?>/<?php echo $post_id;?>'" class="mws-button green" />


                    </div>              		
                    			
                    			                    		
                </div>


  
  </div>
    



    
    
    



  
 
 