<?php ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT'].'/includes/connection.php');
$year=$_REQUEST['year'];
for($month=1;$month<=12;$month++)
{
	$month3=strtolower(date("F",strtotime($year."-".$month."-01")));
	$monthname=strtoupper(date("F",strtotime($year."-".$month."-01")));?> 
<h2 style="text-align:center; color:#CC9900;font-size:20px;"><a name="<?php echo $month3?>" id="<?php echo $month3?>" style="color: #CC9900;"></a><?php echo $monthname."&nbsp;".$year?></h2>
<div class="rTable">
  <div class="rTableRow" style="background: linear-gradient(to bottom, #b47100, #613600);">
	  <div class="rTableHead"><span class="brd1"><strong><B>Void Begins
	   </B></strong></span></div> 	
	  <div class="rTableHead"><span class="brd1"> <strong><B>Void Ends</B></strong></span></div>
  </div></div>
 <div class="rTable">
	<div class="rTableRow" style="background: linear-gradient(to bottom, #613600, #613600);">
		<div class="rTableHead"><span class="brd1"> <strong><B>Date</B></strong></span></div> 
		<div class="rTableHead"><span class="brd1"> <strong>Time</strong></span></div> 
		<div class="rTableHead"><span class="brd1"> <strong>Date</strong></span></div> 
		<div class="rTableHead"><span class="brd1"> <strong>Time</strong></span></div> 
	</div>
	
 <?php // view
$catquery = mysql_query("select * from voidofcourse where year(voidbg_date)=".$year." and month(voidbg_date)=".$month." order by voidbg_date asc");
$monthname=strtoupper(date("F",strtotime($year."-".$month."-01")));
while($noticia = mysql_fetch_array($catquery))
{ 
$timezone= $noticia['timezone'];
?> 
  <div class="rTableRow">
	  <div class="rTableCell" style="text-align:center; background-color:#000000;"><?php echo date('F',strtotime($noticia['voidbg_date']))." ".date('j',strtotime($noticia['voidbg_date']))?></div>
	  <div class="rTableCell" style="text-align:center; background-color:#000000;"><?php echo $noticia['voidbg_time']?></div>
	  <div class="rTableCell" style="text-align:center; background-color:#000000;"><?php echo date('F',strtotime($noticia['voided_date']))." ".date('j',strtotime($noticia['voided_date']))?></div>
	  <div class="rTableCell" style="text-align:center; background-color:#000000;"><?php echo $noticia['voided_time']?></div>
  </div> 
  
  <?php 
 }
?>
</div>  
	<br> <div style="float:right; font-size:large; color:#CC9900;"> <a href="#top"><b style="color:#CC9900;"><u>Top</u></b></a></div><br>  
<div style="text-align:center; vertical-align:top;"><img src="https://www.findyourfate.com/astrology/year2016/images/strip.png"  alt="" style="text-align:center;"></div>
<br>    
<?php
}
?>
<div style="color:#ddad58;"> Time Used: <?php echo $timezone; ?></div>

<?php
mysql_close($link);
?> 