Código PHP:
if($mesb=='022007')//febrero
{
echo "<tr bgcolor='#ffffff' align='center'><td></td><td></td><td></td>";if($dianumh==1){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=1&year=$anual' target='center'>1</a></td>";if($dianumh==2){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=2&year=$anual' target='center'>2</a></td>";if($dianumh==3){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=3&year=$anual' target='center'>3</a></td>";if($dianumh==4){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=4&year=$anual' target='center'>4</a></td></tr>";
echo "<tr bgcolor='#ffffff' align='center'>";if($dianumh==5){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=5&year=$anual' target='center'>5</a></td>";if($dianumh==6){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=6&year=$anual' target='center'>6</a></td>";if($dianumh==7){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=7&year=$anual' target='center'>7</a></td>";if($dianumh==8){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=8&year=$anual' target='center'>8</a></td>";if($dianumh==9){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=9&year=$anual' target='center'>9</a></td>";if($dianumh==10){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=10&year=$anual' target='center'>10</a></td>";if($dianumh==11){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=11&year=$anual' target='center'>11</a></td></tr>";
echo "<tr bgcolor='#ffffff' align='center'>";if($dianumh==12){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=12&year=$anual' target='center'>12</a></td>";if($dianumh==13){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=13&year=$anual' target='center'>13</a></td>";if($dianumh==14){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=14&year=$anual' target='center'>14</a></td>";if($dianumh==15){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=15&year=$anual' target='center'>15</a></td>";if($dianumh==16){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=16&year=$anual' target='center'>16</a></td>";if($dianumh==17){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=17&year=$anual' target='center'>17</a></td>";if($dianumh==18){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=18&year=$anual' target='center'>18</a></td></tr>";
echo "<tr bgcolor='#ffffff' align='center'>";if($dianumh==19){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=19&year=$anual' target='center'>19</a></td>";if($dianumh==20){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=20&year=$anual' target='center'>20</a></td>";if($dianumh==21){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=21&year=$anual' target='center'>21</a></td>";if($dianumh==22){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=22&year=$anual' target='center'>22</a></td>";if($dianumh==23){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=23&year=$anual' target='center'>23</a></td>";if($dianumh==24){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=24&year=$anual' target='center'>24</a></td>";if($dianumh==25){echo "<td bgcolor='#cbc029'>";}else{echo "<td bgcolor='#ccd7dc'>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=25&year=$anual' target='center'>25</a></td></tr>";
echo "<tr bgcolor='#ffffff' align='center'>";
if($dianumh==26){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=26&year=$anual' target='center'>26</a></td>";
[COLOR="Red"]//if($dianumh==27){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=27&year=$anual' target='center'>27</a></td>";
//if($dianumh==28){echo "<td bgcolor='#cbc029'>";}else{echo "<td>";}echo "<a href='calendariom.php?listado=1&mes=02&dia=28&year=$anual' target='center'>28</a></td>";[/COLOR]
echo "<td></td><td></td><td bgcolor='#ccd7dc'></td><td bgcolor='#ccd7dc'></td></tr>";
echo "<tr bgcolor='#ffffff' align='center'><td></td><td></td><td></td><td></td><td></td><td bgcolor='#ccd7dc'></td><td bgcolor='#ccd7dc'><font class='fest' size='1'> </td></tr>";
}