Volevo proporvi un calendario fatto da me per chi può ritenere di aiuto ecco il codice...

codice:
<?php
block_begin("Calendario");
?>
<?php


$bgcolor = "#000000";
$tablecolor = "#1E90FF";
$fontcolor = "#E3F70A";


$today = getdate();

$mon = $today['mon']; 
$year = $today['year']; 
$day = $today['mday']; 
$monnn = $today['month']; 

$day1 = $day -1;

$my_time = mktime(0, 0, 0, $mon, 1, $year);
$start_mon = date('d', $my_time); 
$start_day = date('D', $my_time); 
$start_daynum = date('w', $my_time);

$daysIM = DayInMonth($mon, $year); 

function DayInMonth($month, $year)
{
    $daysInMonth = array (
        31,
        28,
        31,
        30,
        31,
        30,
        31,
        31,
        30,
        31,
        30,
        31
    );
    if ($month != 2)
    {
        return $daysInMonth[$month -1];
    } else
    {
        return (checkdate($month, 29, $year)) ? 29 : 28;
    }
}
?>

<table width=50 height=50 border=1 bgcolor=<?php echo $bgcolor; ?> cellpadding=0 cellspacing=1 border=0 color=#446655>
<tr width=50 height=25>
<td align=center>
<?php
    echo "<font color=#c9c9c9>";
    echo $monnn;
    echo " , ";
    echo $year;
    echo "</font>";
?>
</td>
</tr>
<tr width=50 height=50>
<td width=50 height=50>
<table width=50 height=50 border=0 bgcolor=<?php echo $bgcolor; ?> cellpadding=0 cellspacing=1 border=0 color=#446655>
<tr bgcolor=#505050>
    <td><font size=-1>Lun</font></td><td><font size=-1>Mar</font></td>
    <td><font size=-1>Mer</font></td>
    <td><font size=-1>Gio</font></td><td><font size=-1>Ven</font></td>
    <td><font size=-1>Sab</font></td><td><font size=-1>Dom</font></td>
</tr>
<?php

$dd = 0;
$daye = 1;
echo "<tr bgcolor=$tablecolor>";
while ($dd < $start_daynum)
{
    echo "<td></td>";
    $dd = $dd +1;
}

while ($dd < 7)
{
    if ($daye == $day)
    {
        echo "<td bgcolor=#001100 align=center><font size=-1 color=$fontcolor>" . $daye++ . "</font></td>";
        $dd++;
    } else
    {
        echo "<td align=center><font size=-1 color=$fontcolor>" . $daye++ . "</font></td>";
        $dd++;
    }
}
echo "</tr>";

while ($daye < $daysIM)
{
    echo "<tr bgcolor=$tablecolor>";
    $dd = 0;
    while ($dd < 7)
    {
        if ($daye <= $daysIM)
        {
            if ($daye == $day)
            {
                echo "<td bgcolor=#001100 align=center><font size=-1 color=$fontcolor>" . $daye++ . "</font></td>";
                $dd++;
            } else
            {
                echo "<td align=center><font size=-1 color=$fontcolor>" . $daye++ . "</font></td>";
                $dd++;
            };
        } else
        {
            echo "<td></td>";
            $dd++;
        }

    }
    echo "</tr>";
}
?>
</table>
</td>
</tr>
</table>
<?php
block_end();
?>