
<div class="content">
       <div class="firstpart">
         <div class="welcome">
           <h1>Media Center-Photos</h1>
         <img src="<?php echo base_url();?>template/images/welc-top.png" width="719" height="10" />
         <div class="welcomecont">
         <br>
             <table style="width: 100%">
				 <tr>
				  <?php
             if($posts!=FALSE){
             $x=0;
		     foreach($posts->result() as $row):
		      $x++;
		     ?>

					 <td><a href="<?php echo base_url();?>index.php/photos"><img width="150" height="120" src="<?php echo base_url();?>uploads/posts/small/<?php echo $row->pic?>"></a><br class="clr"><?php echo $row->name?></td>
				 <?php if($x=='3'){$x=0;?></tr><tr><?php }?><?php endforeach;}?>
				 			 </table>
				 			  <br class="clr" />
                 <?php echo $this->pagination->create_links();?>

          
           <br class="clr" />
           </div>
         <img src="<?php echo base_url();?>template/images/welc-bottom.png" width="719" height="11" /></div>
         <div class="login">
          <h1>Latest Events</h1>
           <img src="<?php echo base_url();?>template/images/log-top.png" width="223" height="10" />
           <div class="logincont">
           
       <?php      $posts=$this->fun->getall_limit('posts','events',5);
				  if($posts!=FALSE){
				  foreach($posts->result() as $row):
				 
		?>


		             <div class="news">
		          <img src="<?php echo base_url();?>template/images/img1.jpg" width="49" height="49" />
		          <div class="newscont">
		           <p><span style="color:#FF0066; font-weight:bold"><?php  echo $row->txt1;?></span><br />
		           <?php  echo $row->name;?>
		           </p>
		           <a href="<?php echo base_url();?>index.php/elazhar/details/<?php echo $row->module?>/<?php echo str_replace(' ','-',$row->name)?>/<?php echo $row->id?>"><img src="<?php echo base_url();?>template/images/art-more.png" width="85" height="13" /></a>
		          </div>
		          <br class="clr" />
		        </div>
        <?php  endforeach;}?>

        
              
              

           </div>
         <img src="<?php echo base_url();?>template/images/log-bottom.png" width="223" height="11" /></div>
         <br class="clr" />
       </div>
       <br class="clr" />
       </div>
       </div>
