"; 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 "Diciembre, $year"; } $tDate = mktime(0,0,0,$month,1,$year); # echo date('m', $tDate) . ", $year\n"; 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') { $off = date('w',mktime(0,0,0,$month,$day,$year)); for ($i=0; $i<$off; $i++) echo "\n"; $off++; } if ($ver >= 4) { echo ""; } 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
\n"; $result = mysql("cuitlahuac_org","SELECT Event,Event_ID from Contents WHERE Month='$month' AND Day='$day' and Year='$year' ORDER BY Start_Period,Start_Time"); while($row = mysql_fetch_row($result)) { $Ev = $row[0]; $EID = $row[1]; echo "
  • $Ev
    "; $Ev=""; $EID=""; } echo "
  • $day
    \n"; $result = mysql("cuitlahuac_org","SELECT Event,Event_ID from Contents WHERE Month='$month' AND Day='$day' and Year='$year' ORDER BY Start_Period,Start_Time"); while($row = mysql_fetch_row($result)) { $Ev = $row[0]; $EID = $row[1]; echo "
  • $Ev
    "; $Ev=""; $EID=""; } echo "
  • "; 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(); ?>