<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title><?php echo $title;?></title>
  <?php $this->load->view('common/meta_tags'); ?>
  <?php $this->load->view('common/before_head_close'); ?>
  </head>
  <body>
<?php $this->load->view('common/after_body_open'); ?>
<!--Site Wraper Start-->
<div class="siteWraper">
    <?php $this->load->view('common/header'); ?>
    <?php if($this->session->userdata('is_user_login')):?>
    <?php $this->load->view('common/logged_in_bar'); ?>
    <?php endif;?>

    <!--Recent Profiles Start-->
    <div class="inner">
        <!--Recent Profiles Start-->
        <div class="leftCol left">
           	<div class="profileWrap">
            	<h1>Friend Request Sent</h1>
			  <div class="requestrecieve">
            	<ul class="requestList">
                <?php
				if($record_set):
					foreach($record_set as $row ):
						if($row->photo)
	  						$image_thumb = base_url().'glancePublic/uploads/member_images/thumb_'.$row->photo;
	  					else
	  						$image_thumb = base_url().'glancePublic/images/no-image.jpg';
				?>
                	<li>
                    	<div class="imgbox"><img src="<?php echo $image_thumb;?>" alt="" /></div>
                        <div class="infoProfile">
                        	<h2><a href="<?php echo base_url(); ?>profile/<?php echo $row->username; ?>" title="<?php echo $row->name;?>"><?php echo $row->name;?></a></h2>
                            <p><?php echo $row->city;?>, <?php echo $row->country;?></p>
                            <p><b>Gender:</b> <?php echo $row->gender;?></p>
                            <p><b>Age:</b> <?php echo count_years($row->dob,date("Y-m-d"));?> yrs</p>
                        </div>
                        <div class="reqbtns">
                        <?php echo $row->status;?>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </li>
                <?php endforeach;  else:?> 
            <div class="clear">&nbsp;</div>
				<div class="err">No Record found</div>
			<?php endif;?>
                </ul>
            </div>
            	
           	  <div class="clear"></div>
            
            </div>
        	
        </div>

    <!--Right Col Start-->
    <?php $this->load->view('common/profile_right_side');?>
    <div class="clear"></div>
  </div>
    <!--Recent Profiles Endt-->
    <?php $this->load->view('common/footer'); ?>
  </div>
<!--/Site Wraper End-->
<?php $this->load->view('common/after_body_open'); ?>
</body>
</html>
