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"; /* ´Þ·Â ¸öü */ 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 " \n"; $off = '01'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Monday'){ echo " \n"; $off= '02'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Tuesday'){ echo " \n"; $off= '03'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Wednesday'){ echo " \n"; $off= '04'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Thursday'){ echo " \n"; $off= '05'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Friday') { echo " \n"; $off= '06'; } elseif ($day == '01' and date( 'l', mktime(0,0,0,$month,$day,$year)) == 'Saturday') { echo " \n"; $off= '07'; } else { echo " \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 " \n"; echo " \n"; echo " \n"; echo "   >> \n"; echo "
ÀÏ¿ùÈ­¼ö¸ñ±ÝÅä
$day $day  $day   $day    $day     $day      $day$day
 
\n"; echo "
\n"; echo " \n"; echo " \n"; /* PHP ³¡ */ ?>