<?php
	if(count($birthdays)>0){
?>

 	<div class="boost-carousel owl-carousel owl-theme" style="padding-top:50px;">
           <?php 
			foreach($birthdays as $birthday){
			if($birthday->fullname!=''){?>
          
               <div class="boost-wrapper">
                    <?php if($birthday->simage!='' and file_exists('./static/uploadfiles/members/'.$birthday->simage)){?>
					<img src="./static/uploadfiles/members/<?php echo $birthday->simage?>" />
					<?php }else{
					?><img src="images/noimg.jpg"/><?php
					}?>

				<div class="boost-content">
                    <div class="wrapper-content">
                          <h5><a href="#" onclick="gotolink_birthday('birthdaydetail','<?php echo $birthday->id;?>')">
						     <?php echo $birthday->fullname?><?php if($birthday->wishcount>0){?>(<?php echo $birthday->wishcount?>)<?php }?>
                             </a><br />
                   			 </h5>
                                <p>DOB: <?php echo date('d.m.Y',strtotime($birthday->dob))?></p>
                      </div>
                     
                 </div>
               </div>
              <?php }}?>
               
     </div>
<a href="birthdaylist" class="btn btn-primary" style="float:right">All</a>
<?php }else{echo "Not Available";}?>

<form name="frm_birthday" id="frm_birthday" method="post">
	<input type="hidden" name="birthday_id" id="birthday_id" />
</form>
<script>
function gotolink_birthday(u,birthday_id)
{
	document.frm_birthday.birthday_id.value=birthday_id;
	document.frm_birthday.action = u;
	
	document.frm_birthday.submit();
}
</script>
<script type="text/javascript">
		$(document).ready(function()
		{
			$('#slider-code1').tinycarousel();
		});
	</script>