/* PHP ½ÃÀÛ */ extract($_REQUEST); extract($_SERVER); $date=01; $day=01; $off=0; if(!$year) {$year = date( 'Y');} // ³Ñ¾î¿À´Â ³âµµ°¡ ¾øÀ¸¸é ±âº»°ª Áö±Ý if(!$month) {$month = date( 'm');} // ³Ñ¾î¿À´Â ´ÞÀÌ ¾øÀ¸¸é ±âº»°ª Áö±Ý if (strlen($month) == 1) {$month="0".$month;} $toyear = date('Y'); // ¿À´ÃÀÇ ³âµµ $tomonth = date('m'); // ¿À´ÃÀÇ ´Þ $today = date('d'); // ¿À´ÃÀÇ ÀÏ /* ÀԷ°ª ¹üÀ§ üũ ½ÃÀÛ*/ if($year>9999 or $year<0){ echo " "; exit; } if($month>12 or $month<0){ echo " "; exit; } /* ÀԷ°ª ¹üÀ§ üũ ³¡*/ /*prev & next months ---¹ÚÇüÁ¾ */ $nyear = $year; $pyear = $year; $pmonth = $month -1 ; if($pmonth == 0){ $pyear--; $pmonth = 12 ;} $nmonth = $month +1 ; if($nmonth == 13){ $nyear++; $nmonth = 1 ;} while (checkdate($month,$date,$year)): $date++; endwhile; /* ´Þ·Â »ó´Ü */ echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "  
<<
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "  
>>
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "
ÀÏ
\n"; echo "
¿ù
\n"; echo "
È
\n"; echo "
¼ö
\n"; echo "
¸ñ
\n"; echo "
±Ý
\n"; echo "
Åä
\n"; echo "
\n"; echo "
\n"; /* ´Þ·Â ¸öü */ while ($day<$date): if($day == $today && $year == $toyear && $month == $tomonth) { $day_color = "blue"; } else { $day_color = "black"; } if ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Sunday'){ echo "
$day
\n"; $off = '01'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Monday'){ echo "
 
$day
\n"; $off= '02'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Tuesday'){ echo "
 
 
$day
\n"; $off= '03'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Wednesday'){ echo "
 
 
 
$day
\n"; $off= '04'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Thursday'){ echo "
 
 
 
 
$day
\n"; $off= '05'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Friday') { echo "
 
 
 
 
 
$day
\n"; $off= '06'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Saturday') { echo "
 
 
 
 
 
 
$day
\n"; $off= '07'; } else { echo "
$day
\n"; } $day++; $off++; if ($off>7) { echo "
\n"; $off= '01'; } else { echo ""; } endwhile; if ($off != '01') { for($i=$off ; $i<=7 ; $i++){ echo "
 
\n"; } } echo "
\n"; echo "
\n"; echo "
\n"; echo "