|
°Á Àü Å¿ÀÀÇ Àâ´ã>
.NET 2.0ÀÇ º»°ÝÀûÀÎ ¸ð½ÀÀÌ ¸ð½ÀÀ» µå·¯³»±â ½ÃÀÛÇϰí Àֳ׿ä ^^.
¾ðÁ¦³ª »õ·Î¿î ±â¼ú¿¡ µµÀüÇØ¾ß¸¸ ÇÏ´Â »î... ¿ä±¸µÇ´Â °ÍÀº ÁöÄ¡Áö ¾Ê´Â PassionÀ̶ø´Ï´Ù.
°Á ½ÃÀÛ >
´ë´Ï Àλçµå¸³´Ï´Ù. (^^) (__) (^^) ²Ù¹÷~
ÀÏÁ¤°ü¸® ½Ã½ºÅÛ(?) ÀÌ ¾ðÁ¦ ¸¸µé¾îÁúÁö ¸ð¸£Áö¸¸ ¿½ÉÈ÷ ¸¸µé´Ùº¸¸é ¸ÚÁø(?) ±× ¹«¾ùÀΰ¡°¡ ³ª¿ÀÁö ¾ÊÀ»±î ½Í´Ù´Â »ý°¢ÀÌ µå³×¿ä.(¹¹ ±×·¸°Ô »ý°¢ÇØ ÁÖ¼ÌÀ¸¸é.. ^^;)
½ÇÁ¦ µû¶óÇϱâ Á¤µµ ÀÛ¼ºÀ» ÇÏ·Á¸é Äڵ带 ¼¼ºÎÀûÀ¸·Î Â÷±ÙÂ÷±Ù ¼³¸íÇØ¾ßÇϴµ¥ ±×·¸Áö ¸øÇÏ°í ³Ê¹« »¡¸® ÁøÇุ ÇÑ´Ù´Â »ý°¢ÀÌ °©Àڱ⠵é¾ú½À´Ï´Ù. ±×·¡¼, ´ë´Ï°¡ ÇÏ´Â ¹æ½ÄÀ» Àá±ñ(!) ¼³¸í µå¸®°íÀÚ ÇÕ´Ï´Ù.
±× ¹æ¹ýÀ̶õ ÀÏ´Ü ¹«¾ùÀΰ¡¸¦ ¸¸µé¸é(Å« ±×¸²ÀÌ ±×·ÁÁö¸é) ¼¼ºÎÀûÀÎ ºÎºÐÀº °Ô½ÃÆÇµµ ã¾Æº¸°í ÀÎÅͳݵµ ã¾Æº¸°í, ã¾Æº¸°í ¹°¾îº¸°í ÇØ¼ ÃæºÐÈ÷ Ä¿¹ö°¡ µÉ¼öÀÖ´Ù°í »ý°¢µÇ¹Ç·Î ÀÏ´Ü ¿Ï¼ºÀÌ µÉ¶§±îÁö´Â ÃʽºÇǵå·Î ÁøÇàÀ» ÇÏ°í ¸¶Áö¸·¿¡ ¸¸µé¾îÁ®ÀÖ´Â ÇÁ·Î±×·¥À» °¡Áö°í Á¶±Ý ´õ ¼¼ºÎÀûÀ¸·Î Á¢±ÙÇÏ´Â ÇüÅ·ΠÁøÇàÇϰڽÀ´Ï´Ù.^-^ (Å¿ÀÇü´ÔÀÌ ÀÚ¼¼ÇÏ°Ô ½áµµ ÁÁ´Ù°í ÇÏ´Ï, ½Ã¼±À» ´Ù¸¥µ¥·Î µ¹¸± ¼ö ¹Û¿¡.. --;;)
±×·³ ´Þ·Â¸¸µé±â #2 ½ÃÀÛÇÕ´Ï´Ù.^-^v
¸¸µé±â Àü¿¡ ¸ÕÀú Àú¹ø¿¡ ¸¸µé¾ú´ø ¸î¸îÀÇ Function ÆÄÀϵéÀ» ´Ù½Ã Á¤¸®ÇØ ºÁ¾ßÇҰͰ°½À´Ï´Ù.
|
/calendar/cal_logic.asp
À̹ø´Þ, ´ÙÀ½´Þ, ÀÌÀü´ÞÀÇ ¿ù¸»°ª, ¿äÀÏ, À±´Þ µîµîÀ» °è»êÇÔ.
/calendar/cal_lunartosol.asp
À½·Â=>¾ç·Â, ¾ç·Â=>À½·Â ÀÏÀ» °è»êÇÔ.
/calendar/cal_holiday.asp
ÆÄÀϸíÀÌ ºüÁ®¼ È¥¶õ½º·¯¿üÀ» ±â³äÀÏ Á¤ÀÇ |
Á» »ÑµíÇÏÁÒ? ¹º°¡ ÀÖÀ¸´Ï ÀÌÁ¦ À̰ɰ¡Áö°í ´«¿¡ º¸ÀÌ´Â ¹º°¡(?)¸¦ ¸¸µé
Â÷·ÊÀÔ´Ï´Ù. ¸ÕÀú Áö±Ý ¸¸µå´Â ´Þ·ÂÀº ÀÏÀü¿¡ ¸¸µé¾ú´ø DB¿Í ¿¬µ¿ÀÌ µÇ¾î¾ß ÇϹǷΠconfig.asp ÆÄÀÏÀ» Çϳª ¸¸µé¾îº¸µµ·Ï ÇϰڽÀ´Ï´Ù.
/calendar/config.asp
<%
DSNName = "Provider=SQLOLEDB;Data Source=¾ÆÀÌÇÇ;Initial Catalog= µðºñ¸í;userID=¾ÆÀ̵ð;password=ºñ¹Ð¹øÈ£;"
%> |
ÀÌÁ¦ ´«¿¡º¸ÀÌ´Â ¹º°¡¸¦ ¸¸µé¾î¾ß ÇϰÚÁÒ? Áï, ´Þ·ÂÀÌÁÒ.
| ÀÏ |
¿ù |
È |
¼ö |
¸ñ |
±Ý |
Åä |
| |
|
1 |
2 |
3 |
4 |
5 |
| 6 |
7 |
8 |
9 |
10 |
11 |
12 |
| 13 |
14 |
15 |
16 |
17 |
18 |
19 |
| 20 |
21 |
22 |
23 |
24 |
25 |
26 |
| 27 |
28 |
29 |
30 |
|
|
|
6¿ù ´Þ·ÂÀº ÀÌ·¸°Ô »ý°å³×¿ä.
¸î°¡Áö Å×½ºÆ®¸¦ ÇØº¸±âÀ§Çؼ Àá½Ã temp.asp ÆÄÀÏÀ» ¸¸µé¾î¼ »ç¿ë¹ýÀ».... ¾î¶»°Ô Function µéÀ» ÀÌ¿ëÇÒÁö »ìÆìº¸°Ù½À´Ï´Ù.
|
<!-- #include file = "config.asp" -->
<!--#include file="cal_logic.asp"-->
<!--#include file="cal_lunartosol.asp" -->
<!--#include file="cal_holiday.asp" -->
<%
'¿À´Ã³¯Â¥ ±¸Çϱâ
intThisYear = mid(date(),1,4)
ThisMonth = mid(date(),5,2)
ThisDay = mid(date(),9,2)
'À½·Â±¸Çϱâ
gf_lun2sol intThisYear,ThisMonth,ThisDay,0
lunardate =
exyear&"-"&exmonth&"-"&exday 'À½·Â³¯Â¥
Response.write "¿À´ÃÀº À½·ÂÀ¸·Î " & lunardate & "ÀÔ´Ï´Ù."
%> |
À½... Á¦´ë·Î ³¯Â¥°¡ Ãâ·ÂµÇ¾ú´Ù¸é ¼º°øÀÔ´Ï´Ù. (À§¿¡ ´Þ·ÂÀº ¿Ö±×·ÈÁÒ? ÇϽôºеé Á¶±Ý¸¸ ´õ ÀÐÀ¸½Ã´Ùº¸¸é ÀÌÇØÇϽǰſ¡¿ä~~^^;) ´Þ·Â ¼³¸í µé¾î°©´Ï´Ù.
/calendar/cal_diary.asp
<!--#include file="cal_logic.asp"-->
<%
if intThisDay >= intPrevLastDay then
intPrevDay=intPrevLastDay
else
intPrevDay=intThisDay
end if
if intThisDay >= intNextLastDay then
intNextDay=intNextLastDay
else
intNextDay=intThisDay
end if
if request("date") = "" then
today = date()
else today =
request("date")
end if
%>
<html>
<head>
<title>³¯Â¥</title>
</head>
<body leftmargin="0" topmargin="0">
<center>
<table border="1" width="100" cellspacing="0" cellpadding="0" bordercolor="#ffffff" bordercolorlight="#000000">
<tr bgcolor="#cbe4fc" valign="bottom">
<td width="77" height="20" align="center"><font color="red" face="µ¸¿ò" size="2"><B>ÀÏ</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¿ù</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>È</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¼ö</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¸ñ</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>±Ý</B></font></td>
<td width="77" height="20" align="center"><font color="black" face="µ¸¿ò" size="2"><B>Åä</B></font></td>
</tr>
<%
for intLoopWeek=1 to 6 'ÁÖ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÃÖ´ë 6ÁÖ
Response.Write "<tr>"&vbCR
'/////////////////// ³¯Â¥ Ãâ·Â /////////////////////
for intLoopDay=1 to 7 '¿äÀÏ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÀÏ¿äÀϺÎÅÍ
Response.Write "<td valign=top align=left> "
if intFirstWeekDay > 1 then 'ùÁÖ½ÃÀÛÀÏÀÌ 1º¸´Ù Å©¸é
Response.Write "<font size=2 color=white>.</font>"&vbCR
intFirstWeekDay=intFirstWeekDay-1
else
if intPrintDay > intLastDay then 'ÀԷ³¯Â¥°¡ ¿ù¸»º¸´Ù Å©´Ù¸é
Response.Write "<font size=2 color=white> </font>"&vbCR
else 'ÀԷ³¯Â¥°¡ ÇöÀç¿ù¿¡ ÇØ´çµÇ¸é
if len(intThisMonth) = 1 then
ThisMonth = "0"&intThisMonth
else
ThisMonth = intThisMonth
end if
if len(intPrintDay) = 1 then
ThisDay = "0"&intPrintDay
else
ThisDay = intPrintDay
end if
currentday =
intThisYear&"-"&ThisMonth&"-"&ThisDay
currentdayconfirm =
NowThisYear&"-"&NowThisMonth&"-"&ThisDay
if intThisYear-NowThisYear=0 and intThisMonth-NowThisMonth=0
and
intPrintDay- NowThisDay=0 then '¿À´Ã ³¯Â¥À̸éÀº ±Û¾¾ÆùÆ®¸¦ ´Ù¸£°Ô
date_font = "<b><font size = 2 color=green>"
font_end = "</font></b><br>"
elseif intLoopDay=1 then 'ÀÏ¿äÀÏÀÌ¸é »¡°£ »öÀ¸·Î
date_font = "<font size = 2 color=red>"
font_end = "</font><br>"
elseif intLoopDay=7 then 'Åä¿äÀÏÀÌ¸é ÆÄ¶õ»ö
date_font = "<font size = 2 color=blue>"
font_end = "</font><br>"
else ' ±×¿ÜÀÇ °æ¿ì
date_font = "<font size = 2 color=black>"
font_end = "</font><br>"
end if %><br><ahref="javascript:opener.memo.condition.value='<%=currentday%>';window.close();"> <%=date_font%><%=intPrintDay%><%=font_end%></a><%=vbCR%>
<%
end if
intPrintDay=intPrintDay+1 '³¯Â¥°ªÀ» 1 Áõ°¡
if intPrintDay>intLastDay then '¸¸¾à ³¯Â¥°ªÀÌ ¿ù¸»°ªº¸´Ù Å©¸é ·çÇÁ¹® Å»Ãâ
Stop_Flag=1
end if
end if
Response.Write "</td>"
Next
Response.Write "</tr>"
if Stop_Flag=1 then
exit for
end if
next
%>
<tr>
<td colspan="7" align="left" height="30" align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0" valign="center"> <tr>< br><tdalign="center"><fontcolor="black"face="µ¸¿ò"size="2"><ahref="./cal_diary.asp?mode=day&date=<%=request("date")%>&d=m&F_Year=<%=intPrevYear%> &F_Month=<%=intPrevMonth%>&F_Day=<%=intPrevDay%>">¢¸<%= intPrevMonth%></a> <ahref="./cal_diary.asp?mode=day"><%=intThisYear%>/<%=intThisMonth%></a><ahref="./cal_diary.asp?mode=day&date=<%=request("date")%>&d=m &F_Year=<%=intNextYear%>&F_Month=<%=intNextMonth%>&F_Day=<%=intNextDay%>">
<%=intNextMonth%>¢º</a></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html> |
Äڵ尡 Á¶±Ý ±æ±º¿ä. ¸»¾¸µå¸®°í ½ÍÀº°ÍÀº ÀÌ·¸°Ô loop¸¦ ÀÌ¿ëÇØ¼ À§ÀÇ 6¿ù´Þ
´Þ·Â¸ð¾çÀ» ¸¸µå¼Å¾ß ÇѴٴ°̴ϴÙ.(¹¹ ²À 6¿ù´Þ ´Þ·Â ¾Æ´Ï¾îµµ µÈ´ä´Ï´Ù.--;)
TRÀº ÃÖ´ë6ÁÖ¸¸Å 6¹ø, ±× TR¾È¿¡ ´Ù½ÃÇѹø 1ÁÖ¸¸Å 7¹ø À» loop¸¦ µ¹·Á¼ À§ÀÇ ´Þ·ÂÀ» ¸¸µå¼Å¾ß ÇÑ´Ù´Â °ÍÀÌÁö¿ä. (6ÁÖ¸¦ ÃʰúÇÏ´Â ´ÞÀº ¾ø´ä´Ï´Ù.)
½ÇÁ¦ ÄÚµå À§¿¡ ÆÄÀϸíÀÌ ÀÖ´Â °ÍÀº Å×½ºÆ®¿ë Äڵ尡 ¾Æ´Ñ °Á°¡ ³¡³ª¸é¼ ¹Ù·Î
»ç¿ëµÉ ¼Ò½ºÄÚµåÀÔ´Ï´Ù.
ÀÌ·¸°Ô ¸¸µé¾ú´Âµ¥ ¾Æ±î¿ì´Ï ³ªÁß¿¡ ³¯Â¥ ÀÔ·ÂÇÒ¶§ Àڱ׸¶ÇÑ ´Þ·ÂÀ¸·Î Ȱ¿ëÇϵµ·Ï ÇÏÁö¿ä^^
ÀÌ Äڵ带 ±×´ë·Î µ¹·Áº¸½Ã¸é ´Þ·ÂÀÌ ¸¸µé¾îÁý´Ï´Ù.(¾ÆÁÖ Âɲô¸Å¼ ±Í¿±ÁÒ^^)
´ÙÀ½´ÞÀ» ´©¸£¸é ´ÙÀ½´ÞÀÌ ³ª¿À±¸¿ä. ÀÌÀü´ÞÀ» ´©¸£¸é ÀÌÀü´ÞÀÌ ³ª¿ÀÁö¿ä.
¾î¶² ÇÑ ³¯Â¥¸¦ ´©¸£¸é....... ?
¿¡·¯°¡ ³³´Ï´Ù.--;(ÀÌ´Â ÀÚ¹Ù½ºÅ©¸³Æ®·Î ³¯Â¥ÀÔ·Â ÅØ½ºÆ®¹Ú½º¿¡ ³Ö´Â ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ´Âµ¥ ½ÇÁ¦ ÀÔ·ÂÆûÀº ¾ÆÁ÷ ¾È¸¸µé¾úÀݾƿä! ÁÖÀú¸®~ÁÖÀú¸®~--;)
cal_logic.asp À» ¹Ì¸® ¸¸µé¾îµÎ¾ú±â¶§¹®¿¡ ¹Ù·Î À¥¿¡ ¶ç¿ì¼Åµµ Àß
µ¹¾Æ°£´ä´Ï´Ù.^^;(ÀÌÂêÀ½ ÇØ¼ ¹º°¡ »â~ ÀÌ ¿ÀÁö ¾Ê³ª¿ä?) ¾î¶² ÀÌ»óÇÑ »â~ ÀÌ ¿Í¾ßÇÕ´Ï´Ù. ±×·¡¾ß Å« ´Þ·ÂÀ» ¸¸µé¼öÀÖ¾î¿ä. --;
³Ê¹« ÀÛ±äÇÏÁö¸¸ ±×·¡µµ ¹º°¡ ´«¿¡ º¸¿´À¸´Ï ÀÌ°É Á» Ű¿öºÃÀ¸¸é ÁÁ°Ú³×¿ä.
À̹ø¿£ Å« ´Þ·ÂÀ» ¸¸µé¾îº¸µµ·Ï ÇÏÁö¿ä. Áï cal_month.asp ÆÄÀÏÀÌÁÒ.
ÀÏÁ¤°ü¸®ÀÇ ÇÙ½ÉÀ̶ó ÇÒ ¼ö ÀÖ°Ú½À´Ï´Ù. HTML ¿¡¼ width ¿Í height ¸¦ Ű¿ì¸é ´Þ·ÂÀº Ä¿Áö´Ï±î, ÇѴܰè
¶Ù¾î³Ñ¾î¼ Áö±Ý²¯ ¸¸µé¾ú´ø °¢Á¾ Function À» ÀÌ¿ëÇϰí, DB¿¬°á±îÁö ÇÑ Å©~~Àº ´Þ.
·Â. À». ¸¸µé¾îº¸°Ú½À´Ï´Ù.
/calendar/cal_month.asp
|
<!-- #include file = "config.asp" -->
<!--#include file="cal_logic.asp"-->
<!--#include file="cal_lunartosol.asp" -->
<!--#include file="cal_holiday.asp" -->
<%
Set DbCon =
Server.CreateObject("ADODB.Connection")
DbCon.Open DSNName
%>
<p align=center><span style='font-size:9pt'>
<%
if intThisDay >= intPrevLastDay then
intPrevDay=intPrevLastDay
else
intPrevDay=intThisDay
end if
if intThisDay >= intNextLastDay then
intNextDay=intNextLastDay
else
intNextDay=intThisDay
end if
sbcut = 7 'Á¦¸ñ ÀÚ¸£´Â ±âÁØ
%>
<br>
<object RUNAT=server PROGID=ADODB.Recordset id=sel></object>
<table width="100%" border="0" cellspacing="0" cellpadding="0" valign="center">
<form name="dannyform">
<tr valign="center">
<td valign="left"><table border="0" width="100%"><tr><td>¡á<a href="./cal_main.asp">[À̹ø´Þ]</a>
<input type="checkbox" name="dannycheck" onClick="dannyclick()">À½·ÂÇ¥±â <br><fontcolor="gainsboro">¢¸¢¸</font><ahref="./cal_main.asp?d=m&F_Year=<%=intPrevYear-1%>&F_Month=<%=intThisMonth%>&F_Day=<%=intThisDay%>">[<%=intThisYear-1%>³â]</a><fontcolor="silver">¢¸</font><ahref="./cal_main.asp?d=m&F_Year=<%=intPrevYear%>&F_Month=<%=intPrevMonth%>&F_Day=<%=intPrevDay%>">ÀÌÀü´Þ[<%= intPrevMonth%>¿ù]</a> <B>
<%=intThisYear%>³â <%=intThisMonth%>¿ù</B> <ahref="./cal_main.asp?d=m&F_Year=<%=intNextYear%>&F_Month=<%=intNextMonth%>&F_Day=<%=intNextDay%>">´ÙÀ½´Þ<br>[<%=intNextMonth%>¿ù]</a><fontcolor="silver">¢º</font><ahref="./cal_main.asp?d=m&F_Year=<%=intNextYear+1%>&F_Month=<%=intThisMonth%>&F_Day=<%=intThisDay%>">[<%=intThisYear+1%>³â]</a><font color="gainsboro">¢º¢º</font>
</td>
<td align= "right"><ahref="cal_main.asp?mode= month">[¿ù°£]</a> <ahref="cal_main.asp?mode= week">[ÁÖ°£]</a> <ahref="cal_main.asp?mode=day">[Àϰ£]</a></td>
</tr></table>
</td>
</tr>
</form>
</table>
<table border="0" width="99%" cellspacing="0" height="90%" cellpadding="0" bordercolor="#000000" bordercolorlight="#CCCCCC" >
<tr>
<td>
<table border="1" width="100%" height="90%" cellspacing="0" cellpadding="0" bordercolor="#ffffff" bordercolorlight="#000000">
<tr bgcolor="#cbe4fc" valign="bottom" height="4%">
<td width="14%" align="center"><font color="red" face="µ¸¿ò" size="2"><B>ÀÏ(ìí)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¿ù(êÅ)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>È(ûý)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¼ö(â©)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>¸ñ(ÙÊ)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>±Ý(ÐÝ)</B></font></td>
<td width="14%" align="center"><font color="black" face="µ¸¿ò" size="2"><B>Åä(÷Ï)</B></font></td>
</tr>
<%
for intLoopWeek=1 to 6 'ÁÖ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÃÖ´ë 6ÁÖ
Response.Write "<tr>"&vbCR
'/////////////////// ³¯Â¥ Ãâ·Â /////////////////////
for intLoopDay=1 to 7 '¿äÀÏ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÀÏ¿äÀϺÎÅÍ
if intFirstWeekDay > 1 then 'ùÁÖ½ÃÀÛÀÏÀÌ 1º¸´Ù Å©¸é
Response.Write "<td height=50 valign=top align=left bgcolor=#EFEFEF> "
Response.Write "<font size=2 color=white> </font>"&vbCR
intFirstWeekDay=intFirstWeekDay-1
else
if intPrintDay > intLastDay then 'ÀԷ³¯Â¥°¡ ¿ù¸»º¸´Ù Å©´Ù¸é
Response.Write "<td height=50 valign=top align=left bgcolor=#EFEFEF> "
Response.Write "<font size=2 color=white> </font>"&vbCR
else 'ÀԷ³¯Â¥°¡ ÇöÀç¿ù¿¡ ÇØ´çµÇ¸é
if len(intThisMonth) = 1 then
ThisMonth = "0"&intThisMonth
else
ThisMonth = intThisMonth
end if
if len(intPrintDay) = 1 then
ThisDay = "0"&intPrintDay
else
ThisDay = intPrintDay
end if
'¿À´Ã³¯Â¥ ±¸Çϱâ
currentday =
intThisYear&"-"&ThisMonth&"-"&ThisDay
currentdayconfirm =
NowThisYear&"-"&NowThisMonth&"-"&ThisDay
'À½·Â±¸Çϱâ
gf_lun2sol intThisYear,ThisMonth,ThisDay,0
'±¹°æÀÏ ±¸Çϱâ
danny_today = ""
danny_lunar = ""
holiday ThisMonth,ThisDay
holiday_lunar exmonth,exday
if intThisYear-NowThisYear=0 and intThisMonth-NowThisMonth=0
and
intPrintDay- NowThisDay=0 then '¿À´Ã ³¯Â¥À̸éÀº ±Û¾¾ÆùÆ®¸¦ ´Ù¸£°Ô
Response.Write "<td height=50 valign=top align=left bgcolor= #FFEEEE onMouseOver=this.bgColor= '#E9EEFE';onMouseOut=this.bgColor='#FFEEEE';><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#EFEFEF> "
date_font =
"<b><font size = 2 color=green>"
font_end =
"</font></b>"
elseif intLoopDay=1 then 'ÀÏ¿äÀÏÀÌ¸é »¡°£ »öÀ¸·Î
Response.Write "<td height=50 valign=top align= leftonMouseOver=this.bgColor= '#E9EEFE';onMouseOut=this.bgColor='white';><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#EFEFEF> "
date_font =
"<font size = 2 color=red><b>"
font_end =
"</b></font>"
elseif intLoopDay=7 then 'Åä¿äÀÏÀÌ¸é ÆÄ¶õ»ö
Response.Write "<td height=50 valign=top align= leftonMouseOver=this.bgColor= '#E9EEFE';onMouseOut=this.bgColor='white';><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#EFEFEF> "
date_font =
"<font size = 2 color=blue><b>"
font_end =
"</b></font>"
else ' ±×¿ÜÀÇ °æ¿ì
Response.Write "<td height=50 valign=top align= leftonMouseOver=this.bgColor= '#E9EEFE';onMouseOut=this.bgColor='white';><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#EFEFEF> "
date_font =
"<font size = 2 color=black><b>"
font_end =
"</b></font>"
end if
'µåµð¾î ³¯Â¥Ãâ·Â
lunardate = exyear&"-"&exmonth&"-"&exday 'À½·Â³¯Â¥
%> <%=date_font%><%= intPrintDay%><%=font_end%><ahref="javascript:winopen('<%=strgroup%>','<%=currentday%>','calendar/cal_input.asp?')"><img src="calendar/cal_img/edit.gif" border="0" width="12" alt="ÀÏÁ¤Ãß°¡"></a></td><td bgcolor="#EFEFEF"><div id="dannya" style= "display:none"><fontcolor=#777777>(À½)<%=lunardate%></font></div></td></tr><tr><td height=1 bgcolor="black" colspan="2"></td></tr><tr><td height=5 colspan="2"></td></tr></table> <%=danny_today%><%=danny_lunar%>
<%
todayweek =
round(datediff("d",mid(currentday,1,7)&"-01",currentday)/7 -0.49)+1 '¿À´ÃÀÌ ¸î°ÁÖ?
if ThisMonth&todayweek&weekday(currentday)="0532"
then '5¿ù 3°ÁÖ ¿ù¿äÀÏÀÌ¿¬ ¼º³âÀdz¯
response.write " <img src=calendar/cal_img/koreanflag.jpg border=0 width=12 alt='±â³äÀÏ'><font color=black> ¼º³âÀdz¯</font><br>"
end if
'¸Þ½ÃÁö Äõ¸®
SQL = "select * from cal_table where
(id = '"&id&"' or
mode = 'A') and (convert(char(10),inputdate,120) = '"¤tday&"' or recycle=1 or convert(char(10),inputdate,120) = '"&lunardate&"')"
sel.Open SQL,DbCon,1
'³»¿ë Ãâ·Â
if sel.eof or sel.bof then
else 'ÇØ´ç³¯Â¥¿¡ ¿¹¾àÀÌ °É·ÈÀ»¶§
do until sel.eof
if sel("datetype") = false then '¾ç·Â, À½·Â Á¶°Ç
printdate = lunardate
lunsolra = "-"
else
printdate = currentday
lunsolra = "+"
end if
if sel("recycleopt")="¸ÅÀÏ" then '¹Ýº¹µÈ ¸Þ½ÃÁö ó¸®
if trim(sel("inputdate")) <= trim(printdate) and trim(sel("condition")) >= trim(printdate) then
'¸ÅÀÏ Ã³¸®
SQL = "select * from cal_condition where fid='"&sel("seq")&"' and inputdate='"&printdate&"' and id='"&session("id")&"'"
set rs_cd = DbCon.Execute(SQL)
if rs_cd.EOF or rs_cd.BOF then '¸ÅÀϹݺ¹ ¿¹¿Üó¸®
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>"
end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script> <%end if%><br> <imgsrc="calendar/cal_img/rep.gif"border="0"width="12"alt="¹Ýº¹ÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?datetype=<%=sel("datetype")%>&')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
else
'¸ÅÀϹݺ¹Á¶°Ç°ú ¿¹¿ÜÁ¶°ÇÀ¸·Î Ãâ·ÂµÇ¾î¾ß Çϳª Ãß°¡µÈ Á¶°ÇÀ¸·Î Ãâ·ÂÇÏÁö ¾ÊÀ½.
end if
rs_cd.close
end if
elseif sel("recycleopt")="¸ÅÁÖ" then
if weekday(sel("inputdate")) = weekday(printdate) and trim(sel("inputdate")) <= trim(printdate) and trim(sel("condition")) >= trim(printdate) then
todayweek =
round(datediff("d",mid(currentday,1,7)&"-01",currentday)/7 -0.49)+1 '¿À´ÃÀÌ ¸î°ÁÖ?
alternate_week = split(sel("alternate_week"),"/")
if trim(alternate_week(todayweek)) = trim(todayweek) then
'¸ÅÁÖ Ã³¸®
SQL = "select * from cal_condition where fid='"&sel("seq")&"' and inputdate='"&printdate&"' and id='"&session("id")&"'"
set rs_cd = DbCon.Execute(SQL)
if rs_cd.EOF or rs_cd.BOF then '¸ÅÁֹݺ¹ ¿¹¿Üó¸®
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>" end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script> <%end if%><br> <imgsrc="calendar/cal_img/rep.gif"border="0"width="12"alt="¹Ýº¹ÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?datetype=<%=sel("datetype")%>&')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
else
'¸ÅÁֹݺ¹Á¶°Ç°ú ¿¹¿ÜÁ¶°ÇÀ¸·Î Ãâ·ÂµÇ¾î¾ß Çϳª Ãß°¡µÈ Á¶°ÇÀ¸·Î Ãâ·ÂÇÏÁö ¾ÊÀ½.
end if
rs_cd.close
else
'¸ÅÁÖ ¹Ýº¹ ¿¹¿ÜÁ¶Ç×
end if
end if
elseif sel("recycleopt")="°ÝÁÖ" then
if weekday(sel("inputdate")) = weekday(printdate) and trim(sel("inputdate")) <= trim(printdate) and trim(sel("condition")) >= trim(printdate) then
if (datediff("d",sel("inputdate"),printdate) mod 14) = 0 then
'°ÝÁÖ Ã³¸®
SQL =
"select * from cal_condition where fid='"&sel("seq")&"' and inputdate='"&printdate&"' and id='"&session("id")&"'"
set rs_cd = DbCon.Execute(SQL)
if rs_cd.EOF or rs_cd.BOF then '°ÝÁֹݺ¹ ¿¹¿Üó¸®
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>"
end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script> <%end if%><br> <imgsrc="calendar/cal_img/rep.gif"border="0"width="12"alt="¹Ýº¹ÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?datetype=<%=sel("datetype")%>&')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
else
'°ÝÁֹݺ¹Á¶°Ç°ú ¿¹¿ÜÁ¶°ÇÀ¸·Î Ãâ·ÂµÇ¾î¾ß Çϳª Ãß°¡µÈ Á¶°ÇÀ¸·Î Ãâ·ÂÇÏÁö ¾ÊÀ½.
end if
else
'°ÝÁÖ ¹Ýº¹ ¿¹¿Ü Á¶Ç×
end if
end if
elseif sel("recycleopt")="¸Å¿ù" then
if mid(sel("inputdate"),9,2) =
mid(printdate,9,2) and
trim(sel("inputdate")) < =
trim(printdate) and trim(sel("condition")) >=
trim(printdate) then
todaymonth =
int(mid(printdate,6,2)) '¿À´ÃÀÌ ¸î¿ù?
alternate_month =
split(sel("alternate_month"),"/")
if trim(alternate_month(todaymonth)) = trim(todaymonth) then
'¸Å¿ù ó¸®
SQL =
"select * from cal_condition where fid='"&sel("seq")&"' and inputdate='"&printdate&"' and id='"&session("id")&"'"
set rs_cd = DbCon.Execute(SQL)
if rs_cd.EOF or rs_cd.BOF then '¸Å¿ù¹Ýº¹ ¿¹¿Üó¸®
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>"
end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script> <%end if%><br> <imgsrc="calendar/cal_img/rep.gif"border="0"width="12"alt="¹Ýº¹ÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?datetype=<%=sel("datetype")%>&')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
else
'¸Å¿ù¹Ýº¹Á¶°Ç°ú ¿¹¿ÜÁ¶°ÇÀ¸·Î Ãâ·ÂµÇ¾î¾ß Çϳª Ãß°¡µÈ Á¶°ÇÀ¸·Î Ãâ·ÂÇÏÁö ¾ÊÀ½.
end if
else
'¸Å¿ù ¹Ýº¹ ¿¹¿ÜÁ¶Ç×
end if
end if
elseif sel("recycleopt")="¸Å³â" then
if mid(sel("inputdate"),6,5) = mid(printdate,6,5) and trim(sel("inputdate")) <= trim(printdate) and trim(sel("condition")) >= trim(printdate) then
'¸Å³âó¸®
SQL =
"select * from cal_condition where fid='"&sel("seq")&"' and inputdate='"&printdate&"' and id='"&session("id")&"'"
set rs_cd = DbCon.Execute(SQL)
if rs_cd.EOF or rs_cd.BOF then '¸Å³â¹Ýº¹ ¿¹¿Üó¸®
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>"
end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script> <%end if%><br> <imgsrc="calendar/cal_img/rep.gif"border="0"width="12"alt="¹Ýº¹ÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?datetype=<%=sel("datetype")%>&')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
else
'¸Å³â¹Ýº¹Á¶°Ç°ú ¿¹¿ÜÁ¶°ÇÀ¸·Î Ãâ·ÂµÇ¾î¾ß Çϳª Ãß°¡µÈ Á¶°ÇÀ¸·Î Ãâ·ÂÇÏÁö ¾ÊÀ½.
end if
end if
else '¹Ýº¹ ¾ÈµÈ ¸Þ½ÃÁö ó¸®
if trim(sel("inputdate")) =
trim(printdate) then
if sel("important") = "3" then 'Áß¿ä ¸Þ½ÃÁö °Á¶Ã³¸®
response.write "<b>"
end if
if sel("important") <> "1" then
%>
<script>
setInterval("chcolor('imp_<%=sel("seq")%>_<%=printdate%>')",1010);
</script>
<%end if%><
br> <img src="calendar/cal_img/i_memo.gif" border="0" width="12" alt="ÀϹÝÀÏÁ¤"><ahref="javascript:winopen('<%=sel("seq")%>','<%=printdate%>','calendar/cal_view.asp?')"> <spanid="imp_<%=sel("seq")%>_<%=printdate%>"><%=lunsolra%> <%=mid(sel("subject"),1,sbcut)%></span></a></b><br></center>
<%
end if
end if
sel.MoveNext
loop
end if
sel.Close
end if
intPrintDay=intPrintDay+1 '³¯Â¥°ªÀ» 1 Áõ°¡
if intPrintDay>intLastDay then '¸¸¾à ³¯Â¥°ªÀÌ ¿ù¸»°ªº¸´Ù Å©¸é ·çÇÁ¹® Å»Ãâ
Stop_Flag=1
end if
end if
Response.Write "</td>"
Next
Response.Write "</tr>"
if Stop_Flag=1 then
exit for
end if
next
%>
</table>
</td>
</tr>
</table>
<script>
function winopen(groupcode,senddate,movepage){
var groupcode = groupcode;
var senddate = senddate;
var movepage = movepage;
window.open(movepage+"senddate= "+senddate+"&groupcode="+groupcode,"window_reg","width=640,height=450,scrollbars=yes");
}
function dannyclick(){<
br >
var
dannyck=dannyform.dannycheck.checked;<br>for(i=0;i<=<%=int(ThisDay)-1%>;i++){
if(dannyck == true){
document.all.dannya[i].style.display =
"";
}else{
document.all.dannya[i].style.display =
"none";
}
}
}
</script> |
´Þ·ÂÀÌ Å«¸¸Å ¼Ò½ºµµ ±â³×¿ä..(±ÄÀÌ ±æ´Ù°í ¸»¾¸µå¸®±ä ½ÈÁö¸¸..)
¹ú½á ´«Ä¡ ä½ÅºÐÀÌ ÀÖÀ¸½Ç°Í °°½À´Ï´Ù. »ðÁúÄÚµåÀÇ ÇѰ踦....^^;
°°ÀºÄڵ尡 ¿©·¯Â÷·Ê ¹Ýº¹µÇ±â¶§¹®¿¡ ÀÌ·¸°Ô ¼Ò½º°¡ ±æ¾îÁö°Ô µÇ¾ú½À´Ï´Ù.
ÀÌÀ¯ÀÎÁï, ¿¹¿ÜÁ¶Ç×ÀÌ µé¾î°¡±â¶§¹®ÀÔ´Ï´Ù.(Äڵ忡 ÁÖ¼®À» Àß Âü°íÇϼ¼¿ä)
SQL½ºÅ©¸³Æ® »ý¼º½Ã Àá½Ã ¾ð±ÞÇß´ø, ¹Ù·Î ¹Ýº¹¹® ó¸® ¿¹¿ÜÁ¶Ç×ÀÔ´Ï´Ù. ¸Å¿ù
1Àϳ¯ Á¤±â¸ðÀÓ ÀÌÁö¸¸ 8¿ù°ú 12¿ùÀº Á¦¿Ü!!
Áï,¹Ýº¹¹®ÀÌ µ¹´Ù°¡ ¿¹¿ÜÀϰæ¿ì¿¡´Â ÀÏÁ¤¿¡¼ Á¦¿Ü°¡ µÇÁö¿ä.
±×·¯´Ùº¸´Ï ¿¹¿ÜÁ¶Ç× Ã³¸®ÇÏ¸é¼ °°Àº ¼Ò½ºµµ ÇÔ²² ¹Ýº¹Àû¿ëµÉÁÙÀ̾ß...(¹ú½á ³»°øÀÌ ÀÖÀ¸½ÅºÐµéÀº À̺¸´Ù 5ºÐÀÇ 1Á¤µµ Äڵ带 ÁÙÀϼöÀÖÀ»µí.. (¸Å³â,¸Å¿ù,°ÝÁÖ,¸ÅÁÖ,¸ÅÀÏ ¹Ýº¹ Äڵ尡 ÄÚµå±îÁö ÇÔ²² ¹Ýº¹µÇ±â¶§¹®ÀÌÁÒ..¤Ì.¤Ñ)
ÀÌ·¸µí Æ©´×Àº ¼¹ö°¡ ´Ù¿îµÇÁö ¾Ê´ÂÇÑ Àڱ⠸¾´ë·Î ÇØºÁµµ ÁÁ´Ù!! »ý°¢ÇÕ´Ï´Ù.(¹°·Ð ÁÁÀºÂÊÀ¸·Î~)
Àڱ׸¶ÇÑ ´Þ·ÂÄڵ带 ÀÌÇØÇϼÌÀ¸¸é ÀÌ·¸°Ô ´öÁö´öÁö ºÙÈ÷´Â°Ç ¾Æ¸¶µµ ÀÐÀ¸½Ã´Â ¿©·¯ºÐµéµµ ½Ã°£¹®Á¦ÀϰͰ°½À´Ï´Ù.(Çϱä Àúµµ ½Ã°£¶§¹®¿¡ °ø°³¼Ò½º °¡Á®´Ù ¾¹´Ï´Ù.) ½ÇÁ¦ ½ÇÇàÇØº¸¸é ÀÚÀßÇÑ ±â´ÉµéÀÌ ¸¹ÀÌ µé¾î°¡ÀÖ´ä´Ï´Ù.
Á߿䵵¿¡µû¶ó ¸Þ½ÃÁö°¡ ¹Ý¦°Å¸®±âµµ Çϸç, ¹Ýº¹°ú ¿¹¿ÜÀû¿ëµµµÇ¸ç, À½·Â,¾ç·Â º¯È¯µµ µÈ´ä´Ï´Ù. Áï, Á¶±×¸¶ÇÑ ´Þ·ÂÀ» ¸¸µå½ÅÈķδ ¿©·¯ºÐµéÀÌ ÇÊ¿ä·Î ÇÏ´Â ¸ðµç ±â´ÉµéÀ» ³Ö¾î¼ ÇϳªÀÇ »õ·Î¿î cal_month.asp ¸¦ ¸¸µå½Ã¸é µÈ´Ù´Â ³»¿ëÀ̾ú½À´Ï´Ù.
Áö±Ý±îÁö ¿©·¯ ¹°¹ØÀÛ¾÷À» ÅëÇØ Function µéÀ» ¸¸µé¾îº¸°í ½ÇÁ¦ ´Þ·ÂÀ»
¸¸µé¾î¼ Àû¿ëÇØº¸±âµµ Çß½À´Ï´Ù. ±â´ëµµ Á¶±ÝÇßÁö¸¸ ¿ª½Ã ÄÚµå´Â ±æ¾îÁ® ¹ö·È±º¿ä. --; ÀÌ ºÎºÐ¿¡ À־ ´ÙÀ½¿¡ ¿©·¯Â÷·Ê ¾ð±ÞµÇ°Ú½À´Ï´Ù.
±×¸¸Å Áß¿äÇϸç À̺κÐÀ» ÀÌÇØÇϼ̴ٸé, ³ª¸ÓÁö´Â DB¿¡ ÀÔ·Â,¼öÁ¤,»èÁ¦ µîÀÇ
±âº» ¹®¹ýÀ» ÀÌ¿ëÇÑ ºÎ¼öÀûÀÎ ÄÚµåµéÀÌ °è¼Ó ¸¸µé¾îÁö°Ô µÈ´ä´Ï´Ù. »õº® 2½Ã°¡ ´ÙµÇ°¡³×¿ä. ¾ß±ÙÇϰí Áý¿¡¿Í¼ ÀḸÀÚ´Ù°¡ ¹º°¡ »ÑµíÇÑ ÀÏÀ» ÇѰͰ°ÀÌ ´À²¸Áý´Ï´Ù. .(»ç½ÇÀº ³»ÀϽ®´ä´Ï´Ù. --;)
´ÙÀ½¿¡´Â ½ÇÁ¦ ÀÌ ´Þ·Â¿¡ °ªÀ» ÀÔ·ÂÇÏ´Â ºÎºÐ¿¡ ´ëÇØ¼ »ìÆìº¸µµ·Ï ÇϰڽÀ´Ï´Ù. ÀÌ
ºÎºÐµµ ´Ü¼ø ÀÔ·ÂÀÌ ¾Æ´Ñ, À½·Â¹Ýº¹, ¾ç·Â¹Ýº¹, Á߿䵵, °ø°³, ºñ°ø°³ µîÀÇ ¸¹Àº ±â´ÉµéÀÌ ¼û¾îÀֱ⶧¹®¿¡ Æ©´×À» ÁÁ¾ÆÇϽô ºÐµéÀº ±â´ëÇϼŵµ ÁÁ½À´Ï´Ù.
Ä¿¹Ö¾§~!!
Âü°í·Î ÇöÀç »ç¿ëµÇ´Â ¼Ò½º ±Ü¾î°¡´Ù ¸¸µé¸é¼ ¶ç¿ö¾²±â¹®Á¦µîÀ¸·Î ÀÎÇØ¼ ¿À·ù°¡ »ý±â´Â Çö»óÀÌ ÀÖ½À´Ï´Ù.
´Ù½ÃÇѹø Àß »ìÆìº¸½Ã±¸¿ä, ¿øº»¼Ò½º ³»³ö¶ó! Çù¹ÚÇϽôºеé... ¸ÞÀÏ·Î ¸¹ÀÌ ¹®ÀÇÇØÁֽôµ¥ ¿øº»¼Ò½º´Â °Á³¡³ª°í Äڵ带 Á¶±Ý´õ ¼öÁ¤ÇÑÈÄ Å¿ÀÇü´Ô ÀÚ·á½Ç¿¡ ¿Ã¸®µµ·Ï ÇϰڽÀ´Ï´Ù.
±×·¡µµ ±ÞÇϽźеéÀº http://sanso.pe.kr ASP¸Þ´º ASPÀÚ·á½Ç¿¡ ¾ÆÁ÷ ´Ùµë¾îÁöÁö¾ÊÀº °Á¼ҽº ¿Ã·ÁµÎ¾úÀ¸´Ï ¹Þ¾Æ°¡¼ÅµµµË´Ï´Ù.(Àº±Ù½½Àû ±¤°í¸ðµå..) ±ÞÈ÷ ÀÚÁ߸ðµå...( --) º¯È¯Áß.
Àú´Â ±×·³ ´ÙÀ½°Á ¿¡¼ ÀÔ·ÂÀ» °¡Áö°í ÄĹéÇϰڽÀ´Ï´Ù.^^ ¤³¤³~~~¤¸
Back
|