¾È³çÇϼ¼¿ä.HappycgiÆÀÀÇ ¾ß´ÏÀÔ´Ï´Ù.
1Àϳ¯ ¹è°æ»ö µé¾î°©´Ï´Ù..^^
±Û±¸ Á¶±ÝÀÇ ¼öÁ¤ÀÌ ÇÊ¿äÇϳ׿ä..
if (!$year){$year=date("Y");}
if (!$month){$month=date("m");}
if (!$today){$today=date("j");}
function car($year, $month, $today){
$tday2=date("D",mktime(0,0,0,$month,1,$year));
//ƯÁ¤ ³â¿ùÀ» ³ÖÀ¸¸é ù³¯ ¿äÀÏ Ç¥½Ã
$lastday=date("t",mktime(0,0,0,$month,date("d"),$year));
//ƯÁ¤ ³â¿ùÀÏÀ» ³ÖÀ¸¸é ±×´ÞÀÇ ¸¶Áö¸· ³¯ Ç¥½Ã
switch($tday2)
{
case "sun";
$a=1;
break;
case "Mon";
$a=2;
break;
case "Tue";
$a=3;
break;
case "Wed";
$a=4;
break;
case "Thu";
$a=5;
break;
case "Fri";
$a=6;
break;
case "Sat";
$a=7;
break;
}
//´Þ·Â Å×ÀÌºí ½ÃÀÛ
echo "
";
for($k=1;$k<=6;$k++)
{
echo "";
//¿©±âºÎÅÍ °¡·Î
for($i=1;$i<=7;$i++)
{
//¿©±âºÎÅÍ ¹è°æ »ö±ò
static $s=0;
static $b=1;
if($b==$today){
$tdbg="#7C96F4";
}else{
$tdbg="#f7f7f7";
}
$s++;
//¿©±â±îÁö ¹è°æ »ö±ò
echo "";
echo "";
//¿©±âºÎÅÍ ³¯Â¥ÇÔ¼ö
if($a==$s||$a<$s)
{
if($b<$lastday){
static $b=1;
echo "";
echo "$b";
echo "";
$b++;
}
else{
echo "";
}
}
else
{
echo "";
}
//¿©±â±îÁö ³¯Â¥ÇÔ¼ö
echo " | ";
}
//¿©±â±îÁö °¡·Î
echo "
";
}
echo " |
";
}
car($year, $month, $today);
?>
¸¹Àº µµ¿ò µÇ¼Ì³ª¿ä?^^
¿½ÉÈ÷ Çϼ¼¿ä..