<?php

	if(count($missyous)>0){

?>

 <div class="boost-carousel owl-carousel owl-theme" style="padding-top:50px;">

      

        <?php foreach($missyous as $missyou){

			if($missyou->fullname!=''){

			?>

                  <div class="boost-wrapper">

                          <?php if($missyou->simage!='' and file_exists('./static/uploadfiles/members/'.$missyou->simage)){?>

                          <img src="./static/uploadfiles/members/<?php echo $missyou->simage?>" />

                                       

                                        <?php }

										

										else{

                                        ?><?php if($missyou->gender=="Male"){?>

										<img src="images/boy-icon.jpg"  />

										<?php }

										

										else{

										?><img src="images/girl-icon.jpg" /><?php

										}?><?php

                                        }?>



						<div class="boost-content">

                                <div class="wrapper-content">

                                    <h5>

                                    <a href="#" onclick="gotolink_missyou('missyoudetail','<?php echo $missyou->id;?>')">

									<?php echo $missyou->fullname?></a> 

									<?php if($missyou->wishcount>0){?> (<?php echo $missyou->wishcount?>)<?php }?></h5>

                                   

                                     <p>Date: <?php echo date('d.m.Y',strtotime($missyou->expirydate))?></p>

                                </div>

                           </div>

                       </div>  

                        <?php }}

					?>

                

        </div>



<?php }else{echo "Not Available";}?>

<a href="missyoulist" class="btn btn-primary" style="float:right">All</a>





<form name="frm_missyou" id="frm_missyou" method="post">

	<input type="hidden" name="missyou_id" id="missyou_id" />

</form>

<script>

function gotolink_missyou(u,missyou_id)

{

	document.frm_missyou.missyou_id.value=missyou_id;

	document.frm_missyou.action = u;

	

	document.frm_missyou.submit();

}

</script>

