"; if ($month == '01') { echo "Enero, $year"; } elseif ($month == '02') { echo "Febrero, $year"; } elseif ($month == '03') { echo "Marzo, $year"; } elseif ($month == '04') { echo "Abril, $year"; } elseif ($month == '05') { echo "Mayo, $year"; } elseif ($month == '06') { echo "Junio, $year"; } elseif ($month == '07') { echo "Julio, $year"; } elseif ($month == '08') { echo "Agosto, $year"; } elseif ($month == '09') { echo "Septiembre, $year"; } elseif ($month == '10') { echo "Octubre, $year"; } elseif ($month == '11') { echo "Noviembre, $year"; } else { echo "Deciembre, $year"; } echo "



"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; /* Start the table data and make sure the number of days does not exceed the total for the month - $date will always be one more than the total number of days in the momth */ echo ""; while ($day<$date): /* Figure what day of the week the first falls on and set the number of preceding and trailing cells accordingly */ if ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Sunday') { echo ""; $off = '01'; } elseif ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Monday') { echo ""; $off= '02'; } elseif ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Tuesday') { echo ""; $off= '03'; } elseif ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Wednesday') { echo ""; $off= '04'; } elseif ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Thursday') { echo ""; $off= '05'; } elseif ($day == '01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Friday') { echo ""; $off= '06'; } elseif ($day =='01' and date('l', mktime(0,0,0,$month,$day,$year)) == 'Saturday') { echo ""; $off= '07'; } else { echo ""; } /* Increment the day and the cells to go before the end of the row and end the row when appropriate */ $day++; $off++; if ($off>7) { echo ""; $off='01'; } else { echo ""; } endwhile; echo "
DomingoLunesMartesMiércolesJuevesViernesSábado
$day$day$day$day$day$day$day$day
"; echo "
"; $lm = $month - 1; $ly = $year - 1; if ($month == '01') { echo "Ver Mes Anterior"; } elseif ($month > 1 AND $month < 11) { echo "Ver Mes Anterior"; } else { echo "Ver Mes Anterior"; } echo "   "; $nm = $month + 1; $ny = $year + 1; if ($month == '12') { echo "Ver Mes Siguiente"; } elseif ($month >= 1 AND $month <= 8) { echo "Ver Mes Siguiente"; } else { echo "Ver Mes Siguiente"; } echo "   "; $NumMonth =date("m"); $NameMonth=date("F"); $NumYear =date("Y"); echo "
"; echo ""; echo "   "; echo ""; echo "   "; echo ""; echo "
"; commonFooter(); ?>