<?php

	require_once('top.php'); 
	require_once('initialize.php'); 
	require_once('NewsManager.php');
	
	$newsManager = new NewsManager($databaseConnection);
	
?>
								<td align="center">
									<font class="largeFont">
										<br><br>
										
										 <?php echo $websiteInfo['organizationName']; ?> News
										
										<br><br>
									</font>
									
									<font class="normalFont">
									
										<?php

											$newsArray = $newsManager->getAllNews();
											foreach ($newsArray as $news) { ?>

											<table class="borderTable" border="0" cellspacing="0" cellpadding="0" width="100%">
												<tr>
													<td>

														<table border="0" cellspacing="1" cellpadding="5" width="100%">
															<tr class="tableTitleCell">
																<td class="normalFont">
																	<?php echo $news['date'] ?>
																</td>
															</tr>
															<tr bgcolor="#FFFFFF">
																<td class="normalFont">
																	<?php echo $news['body']; ?>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
											<br>
										<?php } ?>
				
									</font>
								</td>	
								
<?php require_once('bottom.php'); ?>	
