<?php 
foreach($birthdays as $birthday){
if($birthday->firstname!=''){?>
 <div style="padding-top:40px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="orange-box">Happy Birthday</td>
          </tr>
          <tr>
            <td class="space">&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
              <tr>
                <td align="center" class="box-brd"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <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>
                  <tr>
                    <td align="center" class="brd-top">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="49" align="center" class="td"><?php echo $birthday->firstname?><br />
                      DOB: <?php echo date('d-m-Y',strtotime($birthday->dob))?> <br /></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
       </div>
<?php }
}?>
