ÀÚÀ¯·Ó°Ô °Ô½Ã¹°À» ¿Ã¸±¼öÀÖ´Â °Ô½ÃÆÇÀÔ´Ï´Ù.
  • À¯³âÃß¾ï
  • Çб³»ýȰ
  • ÀÔ½ÃÁغñ
  • ´ëÇлýȰ
  • ±º»ýȰ
  • ¾Ë¹Ù»ýȰ
  • Ãë¾÷Áغñ
  • Á÷Àå»ýȰ
  • ¿ø·ë»ýȰ
  • ¿¬¾ÖÁß
  • °áÈ¥Áغñ
  • Áý¾È»ì¸²
  • Àڳ౳À°
  • â¾÷Áغñ
  • À̹ÎÀ¯ÇÐ
  • ³ëÈÄ»ýȰ
  • Àüüº¸±â


´Þ·Â ¸¸µå´Â ¼Ò½º ÀÔ´Ï´Ù

 
¿Ü±¹ ¼Ò½º ÀÔ´Ï´Ù.
À±´Þ À±³â È®½ÇÈ÷ Ç¥±âÇϸç, Á¤È®ÇÕ´Ï´Ù. mktime,date µî Áö½Ä¸¸ ÀÖ´Ù¸é °øºÎ ÇÏ½Ã¸é µË´Ï´ç^^

¼Ò½º Áß°£ Áß°£ÀÌ hard ¿É¼ÇÀ¸·Î Àß·Á ¾Æ·¡ÂÊÀ¸·Î µÈ°ÍÀÌ ÀÖ½À´Ï´Ù.
1ÁÙ·Î »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.

php¼Ò½ºÄÚµå & lib ¿¡ ¿Ã¸®°Ú½À´Ï´Ù.



<?
// below is the code snippet for the calendar() function which is located and
called from mainfile.php
function Calendar() {

// list of names for days and months
$days = array("ÀÏ", "¿ù", "È­", "¼ö", "¸ñ", "±Ý", "Åä");

$months = array
("", "January", "February", "March", "April", "May", "June", "July", "August", "Sep
tember", "October", "November", "December");

// number of days in each month
$totalDays = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

// set up some variables to identify the month, date and year to display
if(!$currYear) { $currYear = date("Y"); }
if(!$currMonth) { $currMonth = date("n"); }
if(!$currDay) { $currDay = date("j"); }

// if leap year, modify $totaldays array appropriately
if (date("L", mktime(0,0,0,$currMonth,1,$currYear)))
{
$totalDays[2] = 29;
}

// set up variables to display previous and next months correctly

// defaults for previous month
$prevMonth = $currMonth-1;
$prevYear = $currYear;

// if January, decrement year and set month to December
if ($prevMonth < 1)
{
$prevMonth=12;
$prevYear--;
}

// defaults for next month
$nextMonth = $currMonth+1;
$nextYear = $currYear;

// if December, increment year and set month to January
if ($nextMonth > 12)
{
$nextMonth=1;
$nextYear++;
}

// get down to displaying the calendar
// find out which day the first of the month falls on
$firstDayOfMonth = date("w", mktime(0,0,0,$currMonth,1,$currYear));

$x=0;
$dateList=array();

?>












<?
for ($x=0; $x

2003-02-05 18:46:50
807 ¹ø ÀÐÀ½
¢Ñ ·Î±×ÀÎ ÈÄ ÀǰßÀ» ³²±â½Ç ¼ö ÀÖ½À´Ï´Ù
 Ä³½Ã¼±¹°





365ch.com 128bit Valid HTML 4.01 Transitional and Valid CSS!
ű×
<< <? echo $months[$currMonth] . " " . $currYear; ?
>
>>