Просмотр файла cal.php

Размер файла: 35.11Kb
<?php
//====== =-WosT-= ======//
### НАСТРОЙКА СКРИПТА ###
$w = "bgcolor=\"#5D5D5D\"";  //фон чисел - будние дни
$ww = "bgcolor=\"#3D3D3D\""; //фон чисел - выходнае дни
$bg = "#ff0000"; // цвет подсветки числа
$rlc = "center";  //выравнивание таблиц - "right", "left", "center"
$b = "0";  //толщина бордюра таблиц
### ^НАСТРОЙКА СКРИПТА^ ###
//====== =-WosT-= ======//
$N = "<TR><td>Пн</td><td>Вт</td><td>Ср</td><td>Чт</td><td>Пт</td><td><font color=\"#ff0000\">Сб</font></td><td><font color=\"#ff0000\">Вс</font></td>";
//====== =-WosT-= ======//
$M = date('m');
$d = date('d');
if($M == 1){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $ww>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $ww>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td>
<TR><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $ww>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $ww>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td>
<TR><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $ww>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $ww>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td>
<TR><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $ww>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $ww>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td>
<TR><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 2){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $ww>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $ww>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td>
<TR><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $ww>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $ww>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td>
<TR><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $ww>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $ww>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td>
<TR><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $ww>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $ww>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td>
<TR><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td>
</table>";}
if($M == 3){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $ww>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $ww>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td>
<TR><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $ww>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $ww>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td>
<TR><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $ww>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $ww>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td>
<TR><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $ww>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $ww>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td>
<TR><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $ww>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 4){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td></td><td></td><td></td><td $ww>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td>
<TR><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $ww>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $ww>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td>
<TR><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $ww>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $ww>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td>
<TR><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $ww>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $ww>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td>
<TR><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $ww>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $ww>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td>
<TR><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td>
</table>";}
if($M == 5){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $ww>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $ww>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td>
<TR><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $ww>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $ww>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td>
<TR><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $ww>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $ww>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td>
<TR><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $ww>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $ww>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td>
<TR><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 6){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $ww>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $ww>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td>
<TR><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $ww>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $ww>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td>
<TR><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $ww>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $ww>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td>
<TR><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $ww>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $ww>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td>
<TR><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $ww>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td>
</table>";}
if($M == 7){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td></td><td></td><td></td><td $ww>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td>
<TR><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"
</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $ww>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $ww>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td>
<TR><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $ww>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $ww>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td>
<TR><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $ww>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $ww>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td>
<TR><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $ww>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $ww>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td>
<TR><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 8){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"
</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $ww>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $ww>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td>
<TR><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $ww>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $ww>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td>
<TR><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $ww>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $ww>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td>
<TR><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $ww>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $ww>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td>
<TR><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 9){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td></td><td></td><td $ww>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"
</td><td $ww>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td>
<TR><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $ww>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $ww>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td>
<TR><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $ww>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $ww>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td>
<TR><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $ww>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $ww>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td>
<TR><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $ww>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $ww>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td>
</table>";}
if($M == 10){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"
</td><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $ww>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $ww>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td>
<TR><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $ww>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $ww>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td>
<TR><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $ww>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $ww>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td>
<TR><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $ww>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $ww>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td>
<TR><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
if($M == 11){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td $w>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $w>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td><td $ww>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $ww>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td>
<TR><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $w>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $w>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td><td $ww>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $ww>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td>
<TR><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $w>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $w>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td><td $ww>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $ww>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td>
<TR><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $w>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $w>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td><td $ww>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $ww>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td>
<TR><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $w>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $w>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td>
</table>";}
if($M == 12){echo "
<table border=\"$b\" cellspacing=\"1\" align=\"$rlc\">
$N 
<TR><td></td><td></td><td></td><td></td><td></td><td $ww>";if ($d==1){echo"<font color=\"$bg\"><b>1</b></font>";}else{echo "1";}print"</td><td $ww>";if ($d==2){echo"<font color=\"$bg\"><b>2</b></font>";}else{echo "2";}print"</td>
<TR><td $w>";if ($d==3){echo"<font color=\"$bg\"><b>3</b></font>";}else{echo "3";}print"</td><td $w>";if ($d==4){echo"<font color=\"$bg\"><b>4</b></font>";}else{echo "4";}print"</td><td $w>";if ($d==5){echo"<font color=\"$bg\"><b>5</b></font>";}else{echo "5";}print"</td><td $w>";if ($d==6){echo"<font color=\"$bg\"><b>6</b></font>";}else{echo "6";}print"</td><td $w>";if ($d==7){echo"<font color=\"$bg\"><b>7</b></font>";}else{echo "7";}print"</td><td $ww>";if ($d==8){echo"<font color=\"$bg\"><b>8</b></font>";}else{echo "8";}print"</td><td $ww>";if ($d==9){echo"<font color=\"$bg\"><b>9</b></font>";}else{echo "9";}print"</td>
<TR><td $w>";if ($d==10){echo"<font color=\"$bg\"><b>10</b></font>";}else{echo "10";}print"</td><td $w>";if ($d==11){echo"<font color=\"$bg\"><b>11</b></font>";}else{echo "11";}print"</td><td $w>";if ($d==12){echo"<font color=\"$bg\"><b>12</b></font>";}else{echo "12";}print"</td><td $w>";if ($d==13){echo"<font color=\"$bg\"><b>13</b></font>";}else{echo "13";}print"</td><td $w>";if ($d==14){echo"<font color=\"$bg\"><b>14</b></font>";}else{echo "14";}print"</td><td $ww>";if ($d==15){echo"<font color=\"$bg\"><b>15</b></font>";}else{echo "15";}print"</td><td $ww>";if ($d==16){echo"<font color=\"$bg\"><b>16</b></font>";}else{echo "16";}print"</td>
<TR><td $w>";if ($d==17){echo"<font color=\"$bg\"><b>17</b></font>";}else{echo "17";}print"</td><td $w>";if ($d==18){echo"<font color=\"$bg\"><b>18</b></font>";}else{echo "18";}print"</td><td $w>";if ($d==19){echo"<font color=\"$bg\"><b>19</b></font>";}else{echo "19";}print"</td><td $w>";if ($d==20){echo"<font color=\"$bg\"><b>20</b></font>";}else{echo "20";}print"</td><td $w>";if ($d==21){echo"<font color=\"$bg\"><b>21</b></font>";}else{echo "21";}print"</td><td $ww>";if ($d==22){echo"<font color=\"$bg\"><b>22</b></font>";}else{echo "22";}print"</td><td $ww>";if ($d==23){echo"<font color=\"$bg\"><b>23</b></font>";}else{echo "23";}print"</td>
<TR><td $w>";if ($d==24){echo"<font color=\"$bg\"><b>24</b></font>";}else{echo "24";}print"</td><td $w>";if ($d==25){echo"<font color=\"$bg\"><b>25</b></font>";}else{echo "25";}print"</td><td $w>";if ($d==26){echo"<font color=\"$bg\"><b>26</b></font>";}else{echo "26";}print"</td><td $w>";if ($d==27){echo"<font color=\"$bg\"><b>27</b></font>";}else{echo "27";}print"</td><td $w>";if ($d==28){echo"<font color=\"$bg\"><b>28</b></font>";}else{echo "28";}print"</td><td $ww>";if ($d==29){echo"<font color=\"$bg\"><b>29</b></font>";}else{echo "29";}print"</td><td $ww>";if ($d==30){echo"<font color=\"$bg\"><b>30</b></font>";}else{echo "30";}print"</td>
<TR><td $w>";if ($d==31){echo"<font color=\"$bg\"><b>31</b></font>";}else{echo "31";}print"</td>
</table>";}
?>