Sites Grátis no Comunidades.net Criar um Site Grátis Fantástico

Euderlane


oi pessoal em breve o meu site
Total de visitas: 3050
Euderlane

print date('d/m/y'); $now = getdate(time());
$time = mktime(0,0,0, $now['mon'], 1, $now['year']);
$date = getdate($time);
$dayTotal = cal_days_in_month(0, $date['mon'], $date['year']);
//Print the calendar header with the month name.
print '';
for ($i = 0; $i < 6; $i++) {
print '';
for ($j = 1; $j <= 7; $j++) {
$dayNum = $j + $i*7 - $date['wday'];
//Print a cell with the day number in it. If it is today, highlight it.
print ' if ($dayNum > 0 && $dayNum <= $dayTotal) {
print ($dayNum == $now['mday']) ? ' style="background: #ccc;">' : '>';
print $dayNum;
}
else {
//Print a blank cell if no date falls on that day, but the row is unfinished.
print '>';
}
print '';
}
print '
';
if ($dayNum >= $dayTotal && $i != 6)
break;
}
print '
' . $date['month'] . '
';
?>