<?php ob_start();

 session_start();

include($_SERVER['DOCUMENT_ROOT'].'/includes/connection.php');

//mysql_query("delete from moon_calendar");



   

  



$year=$_REQUEST['year'];

$month=$_REQUEST['month'];

$monthname=strtoupper(date("F",strtotime($year."-".$month."-01")));



 ?>

 <style type="text/css">

  

 .rTable2 {   	display: table;table-layout: fixed;    	width:100%; max-width:100%; height:100%;text-align:center; border: 1px solid #766e6e; } .rTableRow2 {   	display: table-row; overflow: hidden;

  clear: both;   }  .rTableHead2 {  text-align:center;   	display: table-cell;border: 1px solid #766e6e;     	 vertical-align:middle; padding-top:5px; padding-bottom:5px; }

   .rTableCell2 {  text-align:left;padding-left:3px; display: table-cell; color:#000000; font-weight:bold;   text-transform:capitalize;     	border: 1px solid #766e6e; vertical-align:middle; padding-top:3px; padding-bottom:3px;}  </style>



<p style="text-align:center; font-size:x-large; color:#ebb85d;"><b>POWER DAYS - <?php echo $monthname.'&nbsp;'.$year?> </b></p>

  <div class="rTable2">

			  <div class="rTableRow2" style="text-align:center;">

			    <div class="rTableCell2" style="text-align:center; background-color:#282828; color:#ebb85d;"><b>Days</b></div> 

				<div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyar.jpg" alt="Aries" title="Aries" width="32" height="32"></div> 

                <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyta.jpg" alt="Taurus" title="Taurus" width="32" height="32"></div> 

                <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyge.jpg" alt="Gemini" title="Gemini" width="32" height="32"></div> 

                <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdycn.jpg" alt="Cancer" title="Cancer" width="35" height="35"></div> 

                <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyle.jpg" alt="Leo" title="Leo" width="35" height="35"></div> 

				<div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyvi.jpg" alt="Virgo" title="Virgo" width="35" height="35"></div> 

                <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyli.jpg" alt="Libra" title="Libra" width="35" height="35"></div> 

				 <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdysc.jpg" alt="Scorpio" title="Scorpio" width="35" height="35"></div> 

				  <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdysg.jpg" alt="Sagittarius" title="Sagittarius" width="35" height="35"></div> 

				   <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdycp.jpg" alt="Capricorn" title="Capricorn" width="35" height="35"></div> 

				    <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdyaq.jpg" alt="Aquarius" title="Aquarius" width="35" height="35"></div> 

					 <div class="rTableCell2" style="text-align:center; background-color:#282828;"><img src="https://www.findyourfate.com/astrology/year2016/images/pwdypi.jpg" alt="Pisces" title="Pisces" width="35" height="35"></div> 

					  									  

   </div>

		 

		<?php

		 

		

		 $catquery=mysql_query("select * from powerdays where  month(powerdate)=".$month." and year(powerdate)=".$year."    order by powerdate asc");

  $linktxt="";

 	while($noticia = mysql_fetch_array($catquery))

 	{ 

 

	 $date=date('j',strtotime($noticia['powerdate']));  

	     

  ?>

  

   <div class="rTableRow2" style="text-align:center;">

   

   <div class="rTableCell2" style="text-align:center; background-color:#282828; color:#ebb85d;"><b><?php echo $date;?></b></div>

   <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['ariesaspects']=="Positive")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php 

	 

	  } elseif ($noticia['ariesaspects']=="Harsh")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php 

	  } elseif ($noticia['ariesaspects']=="Moon")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php 

	 }?>

	 

	  </div>

	  <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

	    <?php   if ($noticia['taurusaspects']=="Positive") 

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['taurusaspects']=="Harsh")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['taurusaspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div>

   <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['geminiaspects']=="Positive") 

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['geminiaspects']=="Harsh")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['geminiaspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div>

	   <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['canceraspects']=="Positive") 

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['canceraspects']=="Harsh")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['canceraspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div>

	   <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['leoaspects']=="Positive") 

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['leoaspects']=="Harsh")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['leoaspects']=="Moon")

   {?>

   <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div>

	   <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['virgoaspects']=="Positive") 

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['virgoaspects']=="Harsh")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['virgoaspects']=="Moon")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['libraaspects']=="Positive") 

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['libraaspects']=="Harsh")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['libraaspects']=="Moon")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['scorpioaspects']=="Positive") 

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['scorpioaspects']=="Harsh")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['scorpioaspects']=="Moon")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['sagittariusaspects']=="Positive") 

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['sagittariusaspects']=="Harsh")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['sagittariusaspects']=="Moon")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['capricornaspects']=="Positive") 

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['capricornaspects']=="Harsh")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['capricornaspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['aquariusaspects']=="Positive") 

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['aquariusaspects']=="Harsh")

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['aquariusaspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> <div class="rTableCell2" style="text-align:center; background:linear-gradient(to bottom, #b47100, #613600);">

   <?php   if ($noticia['piscesaspects']=="Positive") 

   {?>

     <img src="https://www.findyourfate.com/astrology/year2017/images/pl.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['piscesaspects']=="Harsh")

   {?>

      <img src="https://www.findyourfate.com/astrology/year2017/images/mns.png" alt="" width="35" height="35">

	 <?php  } elseif ($noticia['piscesaspects']=="Moon")

   {?>

    <img src="https://www.findyourfate.com/astrology/year2017/images/pls.png" alt="" width="35" height="35">

	 <?php }?>

	 

	  </div> 

  

 </div>

  <?php 

 }

mysql_close($link);

?>

		  

		 

		 

					  

 

 

  

</div> 

		 

   

