$this->load->view("tpl/top"); ?>
Astronomy Picture of the Day Calendar
$labels = array(
"00" => "Year",
"01" => "Jan",
"02" => "Feb",
"03" => "Mar",
"04" => "Apr",
"05" => "May",
"06" => "Jun",
"07" => "Jul",
"08" => "Aug",
"09" => "Sep",
"10" => "Oct",
"11" => "Nov",
"12" => "Dec"
);
foreach($labels as $n => $m) {
echo '';
$i = 0;
foreach($calendar as $year => $month) {
if($n == "00") {
if($i % 2 == 0)
$alt = ' class="alt"';
else
$alt = '';
echo "".$year." | ";
$i++;
} else {
if(isset($calendar[$year][$n])) {
echo ''.$m.' | ';
} else {
echo " | ";
}
}
}
echo "
";
}
?>
$this->load->view("tpl/menu"); ?>
$this->load->view("tpl/footer"); ?>
$this->load->view("tpl/bottom"); ?>