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

  <div id="content">
      <div id="bgcon">
        <div id="topcon"><h3>أهلا ومرحبا بكم في موقعنا</h3></div>
        <div id="midcon">
          <?php $posts=$this->fun->getone('posts',18);
				  if($posts!=FALSE){
				  foreach($posts->result() as $row):
				  endforeach;}
				  		    ?>
 <?php if($row->pic){?> <img src="<?php echo base_url();?>uploads/posts/<?php echo $row->pic;?>" style="float:left;padding:5px;width:350px;height:250px" /><?php }?>
<?php   echo $row->details_ar;?>

        </div>
        <div id="bcon"></div>
      </div>
      
