½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 88 | Á¶È¸¼ö 669 | µî·ÏÀÏ 2001-04-26 14:04:52

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

[´äº¯] [´äº¯] ´Ù½Ã ¼öÁ¤Çß¾î¿ä^^.
³»¿ë
´äº¯ °¨»çÇÕ´Ï´Ù...


Ãß°¡ ºÎºÐÀº
¾Æ·¡ºÎºÐÀÇ ############ºÎºÐÀ» Ãß°¡ ÇÏ¿´À¾´Ï´Ù. ##############

ÀÌÄÉÇϴϱñ µË´Ï´Ù..^^
¹°·Ð Á¶±Ý ¼öÁ¤À» ÇßÁö¸¸¿ä....

°í¸¿½À´Ï´Ù...^^

¿À´Ãµµ Áñ°Ì°Ô º¸³»¼¼¿ä...^0^


########## Çش翬¿ùÀÇ Àϼö¸¦ °è»êÇÑ´Ù.
function get_totaldays($year,$month)
{

$date = 1;
while(checkdate($month,$date,$year))
{
$date++;
}
$date--;
return $date;
}

########## Çش翬¿ùÀÇ ´Þ·ÂÀ» Ãâ·ÂÇÑ´Ù.
function showCalendar($year,$month,$total_days,$today)
{
$first_day = date('w', mktime(0,0,0,$month,$today,$year));

echo("

${year}³â ${month}¿ù ´Þ·Â








");

$col = 0;
for($i = 0; $i < $first_day; $i++)
{
echo("  ");     
$col++;
}

for($j = $today; $j <= $total_days; $j++)
{
echo("  ");
$col++;

if($col == 7)
{
echo("");
if($j != $total_days)
{
echo("");
}
$col = 0;
}
}
###############################Ãß°¡½ÃÀÛ
$month++;
if($month=="13")
{
$month="1";
}
for($n = 1; $n< $today; $n++)
{
echo("  ");
$col++;

if($col == 7)
{
echo("");
if($n != $today)
{
echo("");
}
$col = 0;
}
}

#############################Ãß°¡³¡

while($col > 0 && $col < 7)
{
echo("  ");
$col++;
}
}
echo("

ÀÏ
¿ù
È­
¼ö
¸ñ
±Ý
Åä
${month}¿ù ${j}ÀÏ
${month}¿ù ${n}ÀÏ


");
?>



PHP·Î ±¸ÇöÇÏ´Â ´Þ·ÂÇÁ·Î±×·¥






$inputY = date('Y');  // ¿À´ÃÀÇ ³âµµ
$inputM = date('m'); // ¿À´ÃÀÇ ´Þ
$today = date('d'); // ¿À´ÃÀÇ ÀÏ
$inputM =$inputM*1;

$totaldays = get_totaldays($inputY,$inputM);
showCalendar($inputY,$inputM,$totaldays,$today);
?>



Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Àß ¾ÈµÇ´Â±º¿ä 2001-04-26 13:47:04
´ÙÀ½°Ô½Ã±Û [Áú¹®]¾Æ·¡2785´äº¯°¨»ç ±×·±µ¥¿ä? 2001-04-26 16:09:39