±â³äÀÏ °è»ê ÇÁ·Î±×·¥ (PHP) |
|
|
|
17³â Àü |
<style type='text/css'>
BODY
{scrollbar-face-color: #ffffff; scrollbar-shadow-color: #849CBD;
scrollbar-highlight-color: #849CBD; scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: #ffffff; scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #849CBD}
<!--
A:link {color:black;text-decoration:none;}
A:visited {color:black;text-decoration:none;}
A:active {color:red;text-decoration:none;}
A:hover {color:blue;text-decoration:none;}
.ver8 {font-family:Verdana,Arial,µ¸¿ò;font-size:8pt}
p,br,body,td,select,input,form,textarea,option {font-size:9pt;}
.ad{border:1 solid black}
.cont{line-height:140%}
.editbox {border:1 solid black; background-color:white;}
-->
</style>
<html>
<head>
<title>xtx.kr</title>
</head>
<body bgcolor=#f7f7f7>
<center>
<?
function theday($s_year, $s_month, $s_day, $e_year, $e_month, $e_day) {
$start = mktime(0, 0, 0, $s_month, $s_day, $s_year);
$end = mktime(0, 0, 0, $e_month, $e_day, $e_year);
$whole = $end - $start;
$days_whole = $whole/(60*60*24);
return $days_whole;
}
$theweek = array("ÀÏ", "¿ù", "È", "¼ö", "¸ñ", "±Ý", "Åä");
echo("<b>±â³äÀÏ °è»ê µµ¿ì¹Ì</b><br><br>n");
echo("<table bordercolor=white bordercolorlight=silver border cellpadding=3 cellspacing=0 bgcolor=#e0e0e0>n");
$temp = theday(2000, 5, 5, date("Y", mktime()), date("m", mktime()), date("j", mktime()));
echo("<tr><td><b>¿À´Ã³¯Â¥</b></td><td>".date("Y", mktime())."³â ".date("m", mktime())."¿ù ".date("d", mktime())."ÀÏ ÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center>ȨÆäÀÌÁö°¡ ¹®À» ¿¬Áö ".$temp."ÀÏ Áö³µ½À´Ï´Ù.</td></tr>n");
echo("<tr><td><b>±â³äÀÏ</b></td><td><form name=adate><select name=a_year size=1>");
for($i=1990;$i<2011;++$i) {
echo("<option value=$i");
if($a_year == "") {
$a_year = 2000;
}
if($i == $a_year) {
echo(" selected");
}
echo(">$in");
}
echo("</select>³â ");
echo("<select name=a_month size=1>");
for($i=1;$i<13;++$i) {
echo("<option value=$i");
if($a_month == "") {
$a_month = 1;
}
if($i == $a_month) {
echo(" selected");
}
echo(">$in");
}
echo("</select>¿ù ");
echo("<select name=a_day size=1>");
for($i=1;$i<32;++$i) {
echo("<option value=$i");
if($a_day == "") {
$a_day = 1;
}
if($i == $a_day) {
echo(" selected");
}
echo(">$in");
}
echo("</select>ÀÏ</td></tr>n");
echo("<tr><td colspan=2 align=center><input type=submit value="¿À´ÃÀº ¸çĥ°?"</form></td></tr>n");
$temp = theday($a_year, $a_month, $a_day, date("Y", mktime()), date("m", mktime()), date("j", mktime()));
echo("<tr><td><b>°è»ê°á°ú</b></td><td>".$a_year."³â ".$a_month."¿ù ".$a_day."ÀϷκÎÅÍ ".$temp."ÀÏ° ³¯ÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center><b>±â³äÀϷκÎÅÍ ¸çĥ° ³¯À» ¾Ë°í ½ÍÀ¸¼¼¿ä?</b></td></tr>n");
if($count == "") {
$count = 100;
}
echo("<tr><td><form name=daycount><input type=text name=count size=2 maxlength=5 value=$count>ÀÏ° µÇ´Â³¯Àº</td>");
$temp = mktime(0, 0, 0, $a_month, $a_day, $a_year) + 86400*$count;
echo("<td>".date("Y", $temp)."³â ".date("m", $temp)."¿ù ".date("d", $temp)."ÀÏ ".$theweek[date("w", $temp)]."¿äÀÏÀÔ´Ï´Ù.</td></tr>n");
echo("<tr><td colspan=2 align=center><input type=submit value="±×³¯Àº ¾ðÁ©±î?"</form></td></tr></table>n<br>n");
?>
</body>
</html>
|
|
̵̧ : 264 |
̵̧
¸ñ·Ï
|
|