<table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
			<?php
			if(count($birthdays)>0){
			?>
			 <div id="slider-code1" style="padding-left:10px;">
				<div class="viewport">
					<ul class="overview">
					<?php 
						foreach($birthdays as $birthday){
			
					if($birthday->fullname!=''){?>
          		  <li>
           		    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-bordered">
                  <tr>
                    <td align="center"><?php if($birthday->simage!='' and file_exists('./static/uploadfiles/members/'.$birthday->simage)){?>
					<img src="./static/uploadfiles/members/<?php echo $birthday->simage?>" width="204px" height="137px" />
					<?php }else{
					?><img src="images/noimg.jpg" width="204px" height="137px" /><?php
					}?></td>
                  </tr>
                   <td align="center">&nbsp;</td>
                  </tr>
                  <tr>
                 
                  <tr>
                    <td height="49" align="center"><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 />
                      DOB: <?php echo date('d.m.Y',strtotime($birthday->dob))?> <br /></td>
                  </tr>
                </table>
			</li>
		<?php }
		}?>  
            </div>
			</div>
			<?php }else{echo "Not Available";}?>
		</td>
          </tr>
          <tr>
            <td style="text-align:left">&nbsp;&nbsp;<a href="birthdaylist" style="float:right" class="btn btn-primary">All&nbsp;&nbsp;</a></td>
          </tr>
        </table>
<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>