    

	<head>

	<style>

    	#pagination {

	float:right;

	margin:10px 0 10px 0;

}



#pagination ul {

	float:right;

}



#pagination ul li {

	float:left;

	display:block;

	margin:0 2px 0 2px;

}



#pagination ul li a {

	display:block;

	padding:2px 5px 2px 5px;

	border:1px solid #9C0332;

	background-color:#9C0332;

	color:#fff;

	text-decoration:none;

	font-size:11px;

}



#pagination ul li a:hover {

	display:block;

	padding:2px 5px 2px 5px;

	border:1px solid #A0997F;

	background-color:#A0997F;

	color:#fff;

	text-decoration:none;

	font-size:11px;

}

</style>

    





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

    





<script language="JavaScript">

function checkall(checkname,exby) {

  for (i = 0; i < checkname.length; i++)

  checkname[i].checked = exby.checked? true:false

}

</script>

<?php foreach($sett->result() as $rss):

      $gal=$rss->have_gallery;

endforeach;





?>



<?php foreach($lang->result() as $rs):?>

    <?php $lng=$rs->lang;?>

    <?php endforeach;?>



     </head>



     <div id="mws-container" class="clearfix">

            <div class="container">

            

       

       

                         <form name="form" method="post" action="<?php echo base_url();?>index.php/posts/change_status/<?php echo $type?>/<?php echo $status?>">

   

  <div class="mws-panel grid_8">

                	<div class="mws-panel-header">

                    	<span class="mws-i-24 i-table-1"><?php echo $type?></span>

                    </div>

                    <div class="mws-panel-body">

                        <table class="mws-datatable-fn mws-table">

                            <thead>

                                <tr>

                                    <th width="20" align="center"><input  type="checkbox" value="1" name='check_all' id="show" onclick='checkall(this.form.show,this)' /></th>

                                    <th width="75" align="center"></th>

                                    <th><?php if($lng=='ar'){echo 'العنوان';}else{echo 'Title';}?></th>

            <?php if($lng=='ar_en'){?> <th>العنوان</th><?php }?>

                                    <th><?php if($lng=='ar'){echo 'تعديل';}else{echo 'Edit';}?></th>

                                    <th><?php if($lng=='ar'){echo 'حذف';}else{echo 'Delete';}?></th>

                                <?php if($gal=='yes'){?> <th>Gal</th> <?php }?>

                                    <?php if($type=='portfolio' or $type=='clients'){?>

                                    <th>&nbsp;</th>

                                    

                                    <?php }?>

                                </tr>

                            </thead>

                          <?php  if($records !=FALSE){ $c=0;$count=0;

                          foreach($records as $rs):$c++;$cl='A';if($c==1){$cl='odd';}if($c==2){$cl='even';$c=0;}

                          $count++;

                          ?>

                          

                            <tbody>

                                <tr class="gradeA">

                                     <td><input type="checkbox"  name="list[]" id="show"   value="<?php echo $rs->id;?>" /></td>

                                     <td><?php if($rs->pic){?><img width="70" height="50" src="../../../../../uploads/posts/small/<?php echo $rs->pic;?>"><?php }else{?><?php }?></td>

                                     <td><?php echo $rs->name;?> <?php if($type=='manage'){echo '- '.$rs->txt1;}?></td>

         <?php if($lng=='ar_en'){?>  <td><?php echo $rs->name_ar;?></td> <?php }?>

                                    <td><a href="<?php echo base_url();?>index.php/posts/edit_post/<?php echo $type;?>/<?php echo $status;?>/<?php echo $rs->id;?>"><img src="<?php echo base_url();?>template/images/user_edit.png" alt="" title="" border="0" /></a></td>

                                    <td class="center"> <?php if($type!='pages' and $type!='home'){?><a href="<?php echo base_url();?>index.php/posts/delete_post/<?php echo $type;?>/<?php echo $status;?>/<?php echo $rs->id;?>" class="ask"><img src="<?php echo base_url();?>template/images/trash.png" alt="" title="" border="0" /></a><?php }?></td>

                                     <?php if($gal=='yes'){?>

                                        <td class="center"><a href="<?php echo base_url();?>index.php/gallery/index/<?php echo $type;?>/<?php echo $status;?>/<?php echo $rs->id;?>"><img src="<?php echo base_url();?>template/images/gal.png" alt="" title="" border="0" /></a></td>

                                   <?php }?>



<?php if($type=='portfolio' or $type=='clients'){?>

                                      <td class="center">

									  &nbsp;</td>

 

 <?php }?>



                                  </td>

                                </tr>

                       <?php endforeach;

                       }

                       ?>



                                

                             



                        </table>

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



                        



                    </div>

                    

                    <br>

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

                    <?php if($type!='pages' and $type!='home'){?><input type="submit" name="del_all" value="Delete Selected" class="mws-button red" /><?php }?>&nbsp;&nbsp;

             <?php if($type!='pages' and $type!='home'){?>   <input type="button" value="Add New" onclick="window.location.href='<?php echo base_url();?>index.php/posts/add_post/<?php echo $type;?>/<?php echo $status;?>'" class="mws-button green" /><?php }?>





                    </div>              		

                    			

                    			                    		

                </div>

  

  </form>

  





  

  </div>

    

 