최초등록

This commit is contained in:
sp1000je
2026-02-23 10:01:00 +09:00
commit 7bc9767bf4
3120 changed files with 198447 additions and 0 deletions
+171
View File
@@ -0,0 +1,171 @@
<!--#include virtual="/include/lib/dbcon.asp"-->
<!--#include virtual="/include/function/default_func.asp"-->
<%
tmonth = request("tmonth")
tyear = request("tyear")
if tmonth = "" then
tmonth = cstr(datepart( "M" , now()))
end if
if tyear = "" then
tyear = cstr(datepart( "YYYY" , now()))
end if
prevm = cint(tmonth) - 1
nextm = cint(tmonth) + 1
prevy = cint( tyear )
nexty = cint( tyear )
if cint( tmonth ) = 12 then
nextm = 1
nexty = nexty + 1
tempmonth = 1
tempyear = cint( tyear ) + 1
elseif cint( tmonth ) = 1 then
prevm = 12
prevy = prevy - 1
tempmonth = cint( tmonth ) + 1
tempyear = cint( tyear )
else
tempmonth = cint( tmonth ) + 1
tempyear = cint( tyear )
end if
tempdate = tempyear &"-"& tempmonth &"-01"
tdate = cdate( tempdate )
endday = day( tdate - 1 )
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/include/css/default.css">
<style type="text/css">
.normalday{color:#6C6C6C}
.holiday{color:#E3714E;}
.sholiday{color:#556AD6;}
.today{color:#FFFFFF; font-weight:bold }
</style>
<script language="javascript">
<!--
function over2(obj){
obj.style.backgroundColor="#FFFEF1";
}
function out(obj){
obj.style.backgroundColor="#FFFFFF";
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" onClick="parent.parent.nd();" scroll="no" style="background-color:transparent" >
<!--
<DIV ID='overDiv' STYLE='position: absolute; z-index: 1; width: 160; visibility: hidden'></DIV>
-->
<!--<script language="JavaScript" src="layer.js"></script>-->
<table border="0" width="147" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="7" height="30" valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><font color="FFFFF" size="3"><b><%=tyear%></b></font></td>
<td style="padding-left:30;padding-top:2;"><a href="date.asp?tyear=<%=prevy%>&tmonth=<%=prevm%>"><img src="image/content_week_month_move_ic_01.gif" border="0" align="absmiddle"></a><font color="0F67A4"><b><%=tmonth%>월</font></b></font><a href="date.asp?tyear=<%=nexty%>&tmonth=<%=nextm%>"><img src="image/content_week_month_move_ic_02.gif" border="0" align="absmiddle"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="7" style="padding-top:4;"><img src='image/month_top.gif'></td></td>
</tr>
<%
d = 0
syoil = datepart("W" ,cdate(tyear &"-"& tmonth &"-01"))
for i = 1 to 42 step 1
if i mod 7 = 1 then
response.write "<tr height=16>"
end if
if syoil <= i then
d = d + 1
end if
if d > 0 and d <= endday then
if cint(d) = day( now() ) and cint(tyear) = year( now() ) and cint(tmonth) = month( now()) then
dtext = "<font color='#FFFFFF'><b>"& d &"</b></font>"
overout = "bgcolor=#60D4D5"
else
dtext = d
overout = "onmouseover='over2(this)' onmouseout='out(this)'"
end if
if i mod 7 = 1 then
response.write "<td class='holiday' "&overout&" align='center'><font class=''>"& toDay &"</font></td>"
elseif i mod 7 = 0 then
response.write "<td class='sholiday' "&overout&" align='center'><font class=''>"& toDay &"</font></td>"
else
response.write "<td class='normalday' "&overout&" align='center'><font class=''>"& toDay &"</font></td>"
end if
else
response.write "<td>&nbsp;</td>"
end if
if i mod 7 = 0 then
response.write "</tr>"
end if
next
%>
</table>
</body>
</html>
<%
Dbcon.close
Set Dbcon = Nothing
Function toDay()
table = "bbs_15" '테이블명
a_num = "19113837"
DayColor = "#FF9900" '일정등록된 날짜 색
If Len(tmonth) = 1 Then
tmon = "0" & tmonth
Else
tmon = tmonth
End If
If Len(d) = 1 Then
tday = "0" & dtext
Else
tday = d
End If
toDayInfo = tyear & "-" & tmon & "-" & d
sql = "select b_num, b_subject from "&table&" where b_regdate = '"&toDayInfo&"'"
'response.write sql
Set rs = Dbcon.Execute(sql)
If rs.bof Or rs.eof Then
toDay = dtext
Else
dtext = "<font color="&DayColor&" class='curHand'><b>"& dtext & "</b></font>"
Do Until rs.eof
linkUrl = "<a href=/program/bbs/view.asp?a_num="&a_num&"&b_num="&rs("b_num")&"&p_click_date="&toDayInfo&" target=_parent>"
subject = subject &linkUrl & StringToHTML(rs("b_subject"), 20, fale) & "</a><br>"
rs.movenext
Loop
toDay = "<p onClick='' onMouseOver='parent.nd();parent.drs(""▷ <b>" & subject & "</b>"","""",window.event.x+280,window.event.y+670);return true;'>" 'onMouseOut="parent.nd();"
toDay = toDay & dtext & "</p>"
End If
Set rs = nothing
End function
%>
+184
View File
@@ -0,0 +1,184 @@
<!--#include virtual="/include/lib/dbcon.asp"-->
<!--#include virtual="/include/function/default_func.asp"-->
<%
tmonth = request("tmonth")
tyear = request("tyear")
if tmonth = "" then
tmonth = cstr(datepart( "M" , now()))
end if
if tyear = "" then
tyear = cstr(datepart( "YYYY" , now()))
end if
prevm = cint(tmonth) - 1
nextm = cint(tmonth) + 1
prevy = cint( tyear )
nexty = cint( tyear )
if cint( tmonth ) = 12 then
nextm = 1
nexty = nexty + 1
tempmonth = 1
tempyear = cint( tyear ) + 1
elseif cint( tmonth ) = 1 then
prevm = 12
prevy = prevy - 1
tempmonth = cint( tmonth ) + 1
tempyear = cint( tyear )
else
tempmonth = cint( tmonth ) + 1
tempyear = cint( tyear )
end if
tempdate = tempyear &"-"& tempmonth &"-01"
tdate = cdate( tempdate )
endday = day( tdate - 1 )
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/include/css/default.css">
<style type="text/css">
.normalday{color:#000000}
.holiday{color:#F11903;}
.sholiday{color:#0062C8;}
.today{color:#FFFFFF; font-weight:bold }
</style>
<script language="javascript">
<!--
function over2(obj){
obj.style.backgroundColor="#FFFEF1";
}
function out(obj){
obj.style.backgroundColor="#FFFFFF";
}
function dateClick(subject){
subject = subject.split('|').join('\'');
subject = subject.split('^').join('\"');
//alert(subject);
parent.nd();
parent.drs("▷ <b>"+subject+"</b>","",window.event.x+250,window.event.y+200);
return true;
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" onClick="parent.parent.nd();" scroll="no">
<!--
<DIV ID='overDiv' STYLE='position: absolute; z-index: 1; width: 160; visibility: hidden'></DIV>
-->
<!--<script language="JavaScript" src="layer.js"></script>-->
<table border="0" width="164" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="23" background="image/calendar_bg.gif">
<Table width="100%" cellspacing="0" cellpadding="0">
<tr>
<Td style="padding-left:7;"><font color="FFFFFF"><b><%=tyear%>년 <%=tmonth%>월</b></font></td>
<td align="right" style="padding-right:10;"><a href="date.asp?tyear=<%=prevy%>&tmonth=<%=prevm%>"><img src="image/calendar_left.gif" width="6" height="7" border="0"></a><a href="date.asp?tyear=<%=nexty%>&tmonth=<%=nextm%>"><img src="image/calendar_right.gif" width="6" height="7" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding-top:6;"><img src="image/calendar_tit.gif" width="164" height="21" border="0" alt=""></td>
</tr>
</table>
<table border="0" width="164" bgcolor="F3F3F3" cellspacing="2" cellpadding="0" align="center">
<%
d = 0
syoil = datepart("W" ,cdate(tyear &"-"& tmonth &"-01"))
for i = 1 to 42 step 1
if i mod 7 = 1 then
response.write "<tr height=16 bgcolor=ffffff>"
end if
if syoil <= i then
d = d + 1
end if
if d > 0 and d <= endday then
if cint(d) = day( now() ) and cint(tyear) = year( now() ) and cint(tmonth) = month( now()) then
dtext = "<font color='#FFFFFF'><b>"& d &"</b></font>"
overout = "bgcolor=D56090"
else
dtext = d
overout = "onmouseover='over2(this)' onmouseout='out(this)'"
end if
if i mod 7 = 1 then
response.write "<td class='holiday' "&overout&" align='center'>"& toDay &"</td>"
elseif i mod 7 = 0 then
response.write "<td class='sholiday' "&overout&" align='center'>"& toDay &"</td>"
else
response.write "<td class='normalday' "&overout&" align='center'>"& toDay &"</td>"
end if
else
response.write "<td>&nbsp;</td>"
end if
if i mod 7 = 0 then
response.write "</tr>"
end if
next
%>
</table>
</body>
</html>
<%
Dbcon.close
Set Dbcon = Nothing
Function toDay()
table = "bbs_12" '테이블명
DayColor = "#FF9900" '일정등록된 날짜 색
If Len(tmonth) = 1 Then
tmon = "0" & tmonth
Else
tmon = tmonth
End If
If Len(d) = 1 Then
tday = "0" & d
Else
tday = d
End If
toDayInfo = tyear & "-" & tmon & "-" & tday
'response.write toDayInfo
'response.end
sql = "select b_num, b_subject from "&table&" where b_regdate = '"&toDayInfo&"'"
'response.write sql
Set rs = Dbcon.Execute(sql)
If rs.bof Or rs.eof Then
toDay = dtext
Else
dtext = "<font color="&DayColor&" class='curHand'><b>"& dtext & "</b></font>"
Do Until rs.eof
linkUrl = "<a href=^javascript:;^ onClick=|window.open(^/program/bbs/view.asp?a_num=6310458&b_num="&rs("b_num")&"&p_click_date="&toDayInfo&"^,^^,^fullscreen=no,width=750,height=450,scrollbars=yes^)|>"
subject = subject &linkUrl & StringToHTML(rs("b_subject"), 20, false) & "</a><br>"
rs.movenext
Loop
toDay = "<p onClick='' onMouseOver='dateClick("""&subject&""")'>" 'onMouseOut="parent.nd();"
toDay = toDay & dtext & "</p>"
End If
Set rs = nothing
End function
%>
+250
View File
@@ -0,0 +1,250 @@
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="/include/css/default.css">
<script language="JavaScript">
var calndardoc='';
var mbtnmenu=1;
var mhostname="";
var form1;
function day_title(day_name)
{
if (day_name=="ÀÏ")
calendardoc +="<td align=center height=18 class=verdana bgcolor=#9ABFBE><font color=#ffffff><b>"+day_name+"</b></font></td>";
else
{
if (day_name=="Åä")
calendardoc +="<td align=center height=18 class=verdana bgcolor=#9ABFBE><font color=#ffffff><b>"+day_name+"</b></font></td>";
else
calendardoc +="<td align=center height=18 class=verdana bgcolor=#9ABFBE><font color=#ffffff><b>"+day_name+"</b></font></td>";
}
}
/*
function day_titlexxxx(day_name)
{
if (day_name=="ÀÏ")
calendardoc +="<td align=center height=18 class=verdana bgcolor=#9ABFBE><font color=F11903>"+day_name+"</font></td>";
else
{
if (day_name=="Åä")
calendardoc +="<td align=center height=18 class=verdana>"+day_name+"</td>";
else
calendardoc +="<td align=center height=18 class=verdana>"+day_name+"</td>";
}
}
*/
function fill_table(Y,M,D)
{
opendiv = true;
selectday= new Date(Y,M-1,1);
today=new Date()
todayMonth=today.getMonth()+1;
todayYear=today.getYear();
todayDay=today.getDate();
cMonth=selectday.getMonth()+1;
cYear=selectday.getYear();
if(cYear==100)cYear=2000;
selectdate=D;
start_day = selectday.getDay()+1;
month_length=valDate(M, selectdate, cYear);
if((todayYear==cYear)&&(todayMonth==cMonth))
{
selectdate=todayDay
todayselect="True";
}
else todayselect="False"
if(M==1){
preYear=cYear-1;
preMonth=12;
}
else{
preYear=Y;
preMonth=M-1;
}
predate=valDate(preMonth, selectdate, cYear)
if(M==12){
nextYear=Y+1;
if(nextYear==100)nextYear=2000;
nextMonth=1;
}
else{
nextYear=Y;
nextMonth=M+1;
}
nextdate=valDate(nextMonth, selectdate, cYear)
calendardoc='';
day=1;
calendardoc +="<table width=155 border=0 cellspacing=0 cellpadding=0>";
calendardoc +="<tr>";
calendardoc +="<td align='center'>";
calendardoc +="<table width=155 border=0 cellspacing=0 cellpadding=0>";
calendardoc +="<tr> ";
calendardoc +="<td colspan=7 align=center> ";
calendardoc +="<table border=0 cellspacing=0 cellpadding=0>";
calendardoc +="<tr>";
calendardoc +="<td height=18 align=right><!--a href=JavaScript:calendarbtn("+(Y-1)+",12,1)><img src=image/date_prev_icon2.gif width=19 height=12 border=0></a--><a href=JavaScript:calendarbtn("+preYear+","+preMonth+","+predate+")><img src=image/content_week_month_move_ic_01.gif border=0 align=absmiddle></a></td>";
calendardoc +="<td height=18>";
calendardoc +="<div align=center><span ><a href=JavaScript:calendarbtn("+todayYear+","+todayMonth+","+todayDay+")><font color=7A7A7A><b>"+cYear+"³â "+cMonth+"¿ù</b></font></a></span></div>";
calendardoc +="</td>";
calendardoc +="<td height=18><a href=JavaScript:calendarbtn("+nextYear+","+nextMonth+","+nextdate+")><img src=image/content_week_month_move_ic_02.gif border=0 align=absmiddle></a><!--a href=JavaScript:calendarbtn("+(Y+1)+",1,1)><img src=image/date_next_icon2.gif width=19 height=12 border=0></a--></td>";
calendardoc +="</tr>";
calendardoc +="</table>";
calendardoc +="</td>";
calendardoc +="</tr>";
calendardoc +="</table>";
calendardoc +="<table width='155' cellspacing='0' cellpadding='0' bgcolor='FFFFFF'>";
calendardoc +="<tr>";
calendardoc +="<td colspan='7'><img src='image/month_top.gif'></td>";
/* day_title("S");
day_title("M");
day_title("T");
day_title("W");
day_title("T");
day_title("F");
day_title("S"); */
calendardoc +="</tr><tr height=16>";
for (var i=1;i<start_day;i++)
{
calendardoc +="<td bgcolor=ffffff></td>";
}
for (var i=start_day;i<8;i++)
{
if ((day==selectdate)&&(todayselect=="True"))
calendardoc +="<td class=tah8 align=center height=16 bgcolor=D56090><font color=FFFFFF class='tah8'>"+day+"</font></a></td>";
else
{
if (i==1)
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font color=F11903 class='tah8'>"+day+"</font></a></td>";
else
{
if (i==7)
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font color=#0062C8 class='tah8'>"+day+"</font></a></td>";
else
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font class='tah8'>"+day+"</font></a></td>";
}
}
day++
}
calendardoc +="</TR>";
while (day <= month_length)
{
calendardoc +="<TR bgcolor=#ffffff height=16>";
for (var i=1;i<=7 && day<=month_length;i++)
{
if ((day==selectdate)&&(todayselect=="True"))
calendardoc +="<td class=tah8 align=center height=16 bgcolor=D56090><font color=FFFFFF>"+day+"</font></a></div></td>";
else
{
if (i==1)
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font color=F11903 class='tah8'>"+day+"</font></a></div></TD>";
else
{
if (i==7)
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font color=#0062C8 class='tah8'>"+day+"</font></a></td>";
else
calendardoc +="<td class=tah8 align=center height=16 bgcolor=#ffffff><font class='tah8'>"+day+"</font></a></td>";
}
}
day++
}
calendardoc +="</tr>";
start_day=i
}
calendardoc +="</table>";
return calendardoc
}
function valDate(M, D, Y)
{
Months= new Array(31,28,31,30,31,30,31,31,30,31,30,31);
Leap = false;
if((Y % 4 == 0) && ((Y % 100 != 0) || (Y %400 == 0)))
{
Leap = true;
if(M==2) return(29);
else
return(Months[M-1]);
}
else
return(Months[M-1]);
}
function calendarbtn(cYear,cMonth,cDay)
{
if(cYear=="0"){
today= new Date();
cMonth=today.getMonth()+1;
cYear=today.getYear();
cDay=today.getDate();
}
calendardiv.innerHTML = fill_table(cYear,cMonth,cDay);
}
function dayteselect(nyear,nmonth,nday,nweek)
{
if(nmonth < 10) {
nmonth = "0" + nmonth
}
if(nday < 10) {
nday = "0" + nday
}
form1.value = nyear+"-"+nmonth+"-"+nday;
parent.MM_showHideLayers('ifrmcal','','hide');
return;
}
function buttonmenu(form)
{
form1=form;
}
function init(){
today = new Date()
todayMonth=today.getMonth()+1;
todayYear=today.getYear();
todayDay=today.getDate();
stday = today.getDay()+1;
calendarbtn(todayYear,todayMonth,todayDay);
}
</script>
</head>
<body bgcolor="FFFFFF" text="#000000" topmargin="0" leftmargin="0" onload="init()" id="boardid" scroll="no">
<form name="cform">
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id="calendardiv"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
+225
View File
@@ -0,0 +1,225 @@
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="myb.css">
<script language="JavaScript">
var calndardoc='';
var mbtnmenu=1;
var mhostname="";
var form1;
function day_title(day_name)
{
if (day_name=="ÀÏ")
calendardoc +="<td align=center height=17 class=verdana><font color=F11903>"+day_name+"</font></td>";
else
{
if (day_name=="Åä")
calendardoc +="<td align=center height=17 class=verdana>"+day_name+"</td>";
else
calendardoc +="<td align=center height=17 class=verdana>"+day_name+"</td>";
}
}
function fill_table(Y,M,D)
{
opendiv = true;
selectday= new Date(Y,M-1,1);
today=new Date()
todayMonth=today.getMonth()+1;
todayYear=today.getYear();
todayDay=today.getDate();
cMonth=selectday.getMonth()+1;
cYear=selectday.getYear();
if(cYear==100)cYear=2000;
if(String(cYear).length == 2){cYear = "19"+cYear;}
selectdate=D;
start_day = selectday.getDay()+1;
month_length=valDate(M, selectdate, cYear);
if((todayYear==cYear)&&(todayMonth==cMonth))
{
selectdate=todayDay
todayselect="True";
}
else todayselect="False"
if(M==1){
preYear=cYear-1;
preMonth=12;
}
else{
preYear=Y;
preMonth=M-1;
}
predate=valDate(preMonth, selectdate, cYear)
if(M==12){
nextYear=Y+1;
if(nextYear==100)nextYear=2000;
nextMonth=1;
}
else{
nextYear=Y;
nextMonth=M+1;
}
nextdate=valDate(nextMonth, selectdate, cYear)
calendardoc='';
day=1;
calendardoc +="<table width=121 border=0 cellspacing=0 cellpadding=0 bgcolor=C9C9C9>";
calendardoc +="<tr>";
calendardoc +="<td bgcolor=#FFFFFF>";
calendardoc +="<table width=119 border=0 cellspacing=0 cellpadding=0>";
calendardoc +="<tr> ";
calendardoc +="<td colspan=7> ";
calendardoc +="<table width=119 border=0 cellspacing=0 cellpadding=0>";
calendardoc +="<tr bgcolor=E1E1E1>";
calendardoc +="<td height=20 width=38><a href=JavaScript:calendarbtn("+(Y-1)+",12,1)><img src=image/date_prev_icon2.gif width=19 height=12 border=0></a><a href=JavaScript:calendarbtn("+preYear+","+preMonth+","+predate+")><img src=image/date_prev_icon.gif width=19 height=12 border=0></a></td>";
calendardoc +="<td height=20 width=81>";
calendardoc +="<div align=center><span class=verdana_bold><a href=JavaScript:calendarbtn("+todayYear+","+todayMonth+","+todayDay+")>"+cYear+"."+cMonth+"</a></span></div>";
calendardoc +="</td>";
calendardoc +="<td height=20 width=38><a href=JavaScript:calendarbtn("+nextYear+","+nextMonth+","+nextdate+")><img src=image/date_next_icon.gif width=19 height=12 border=0></a><a href=JavaScript:calendarbtn("+(Y+1)+",1,1)><img src=image/date_next_icon2.gif width=19 height=12 border=0></a></td>";
calendardoc +="</tr>";
calendardoc +="</table>";
calendardoc +="</td>";
calendardoc +="</tr>";
calendardoc +="<tr class=verdana>";
day_title("S");
day_title("M");
day_title("T");
day_title("W");
day_title("T");
day_title("F");
day_title("S");
calendardoc +="</tr><tr>";
for (var i=1;i<start_day;i++)
{
calendardoc +="<td></td>";
}
for (var i=start_day;i<8;i++)
{
if ((day==selectdate)&&(todayselect=="True"))
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=green>"+day+"</font></a></td>";
else
{
if (i==1)
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=F11903>"+day+"</font></a></td>";
else
{
if (i==7)
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=#0062C8>"+day+"</font></a></td>";
else
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")>"+day+"</font></a></td>";
}
}
day++
}
calendardoc +="</TR>";
while (day <= month_length)
{
calendardoc +="<TR>";
for (var i=1;i<=7 && day<=month_length;i++)
{
if ((day==selectdate)&&(todayselect=="True"))
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=green>"+day+"</font></a></div></td>";
else
{
if (i==1)
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=F11903>"+day+"</font></a></div></TD>";
else
{
if (i==7)
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")><font color=#0062C8>"+day+"</font></a></td>";
else
calendardoc +="<td class=verdana align=center><a href=javascript:dayteselect("+cYear+","+cMonth+","+day+","+i+")>"+day+"</a></td>";
}
}
day++
}
calendardoc +="</tr>";
start_day=i
}
calendardoc +="</table>";
return calendardoc
}
function valDate(M, D, Y)
{
Months= new Array(31,28,31,30,31,30,31,31,30,31,30,31);
Leap = false;
if((Y % 4 == 0) && ((Y % 100 != 0) || (Y %400 == 0)))
{
Leap = true;
if(M==2) return(29);
else
return(Months[M-1]);
}
else
return(Months[M-1]);
}
function calendarbtn(cYear,cMonth,cDay)
{
if(cYear=="0"){
today= new Date();
cMonth=today.getMonth()+1;
cYear=today.getYear();
cDay=today.getDate();
}
calendardiv.innerHTML = fill_table(cYear,cMonth,cDay);
}
function dayteselect(nyear,nmonth,nday,nweek)
{
if(nmonth < 10) {
nmonth = "0" + nmonth
}
if(nday < 10) {
nday = "0" + nday
}
if(nyear < 2000){
nyear = "19" + nyear;
}
form1.value = nyear+"-"+nmonth+"-"+nday;
parent.MM_showHideLayers('ifrmcal','','hide');
return;
}
function buttonmenu(form)
{
form1=form;
}
function init(){
today = new Date()
todayMonth=today.getMonth()+1;
todayYear=today.getYear();
todayDay=today.getDate();
stday = today.getDay()+1;
calendarbtn(todayYear,todayMonth,todayDay) ;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" onload="init()" id="boardid">
<form name="cform">
<table width="121" height="80" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="center">
<div id="calendardiv"></div>
</td>
</tr>
</form>
</table>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

+64
View File
@@ -0,0 +1,64 @@
var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
var offsetx = 3;
var offsety = 3;
var width = 150;
var height = 50;
var doc = .bbb;
over = overDiv.style; //ÇöÀçâ
bbb.onmousemove = mouseMove;
function drs(text, title,z,k) {dts(1,text,z,k); }
function nd() {
if ( cnt >= 1 ) { sw = 0 };
if ( sw == 0 ) { snow = 0; hideObject(over); }
else { cnt++; }
}
function dts(d,text,z,k) {
//alert(z);
txt = "<TABLE WIDTH=180 STYLE=\"border:1 #D9CEA5 solid\" CELLPADDING=5 CELLSPACING=0 BORDER=0><TR><TD BGCOLOR=#ffffff CLASS=cal>"+text+"</TD></TR></TABLE>"
layerWrite(txt);
dir = d;
x = z;
y = k;
disp();
}
function disp() {
if (snow == 0) {
if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
showObject(over);
snow = 1;
}
}
function mouseMove(e) {
x=event.x + doc.body.scrollLeft+10
y=event.y + doc.body.scrollTop
if (x+width-doc.body.scrollLeft > doc.body.clientWidth) x=x-width-25;
if (y+height-doc.body.scrollTop > doc.body.clientHeight) y=y-height;
if (snow) {
if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
}
}
function cClick() { hideObject(over); sw=0; }
function layerWrite(txt) { document.all["overDiv"].innerHTML = txt } //ÇöÀçâ
function showObject(obj) { obj.visibility = "visible" }
function hideObject(obj) { obj.visibility = "hidden" }
function moveTo(obj,xL,yL) { obj.left = xL; obj.top = yL; }
+78
View File
@@ -0,0 +1,78 @@
IINPUT { background-color:#ffffff; border-bottom:#9E9D9D 1px solid; border-left:#9E9D9D 1px solid; border-right:#9E9D9D 1px solid; border-top: #9E9D9D 1px solid; font-size:9pt; color:#666666; font-family:"±¼¸²" "µ¸¿ò";}
SELECT {background-color : #ffffff; border-width:1px; border-color:rgb(198,199,198);line-height:130%; font-family:±¼¸²,µ¸¿ò, verdana, arial; font-size: 9pt; color: black;}
body, table, tr, td,div {
font-family:±¼¸²,µ¸¿ò, verdana, arial;
font-size: 9pt;
color: #666666;
}
A:link {color: #666666; text-decoration: none}
A:active {color: #0062C8; text-decoration: none}
A:visited {color: #666666; text-decoration: none}
A:hover {color: #0062C8; text-decoration: underline}
//class list : button ---------------------------------------------------------------------
.btn {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
div.btn {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
td.btn {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
a.btn {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
a.btn:link {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
a.btn:active {font: 9pt; color:#444444; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
a.btn:visited {font: 9pt; color:#666666; font-weight=bold; text-decoration:none; font-family: "µ¸¿ò";}
a.btn:hover {font: 9pt; color:#444444; font-weight=bold; text-decoration:underline; font-family: "µ¸¿ò";}
BODY {
SCROLLBAR-FACE-COLOR: #f7f7f7;
SCROLLBAR-HIGHLIGHT-COLOR: #C7C7C7;
SCROLLBAR-SHADOW-COLOR: #C7C7C7;
SCROLLBAR-3DLIGHT-COLOR: #ffffff;
SCROLLBAR-ARROW-COLOR: #00A0E8;
SCROLLBAR-TRACK-COLOR: #ffffff;
SCROLLBAR-DARKSHADOW-COLOR: #ffffff; }
.blue_bold {font-family:"±¼¸²", "µ¸¿ò"; font-weight:bold; font-size: 9pt; color:#006498; text-decoration:none;}
.blue_bold div {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold td {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold a {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold a:link {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold a:active {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold a:visited {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#006498; text-decoration:none;}
.blue_bold a:hover {font-family: "±¼¸²", "µ¸¿ò"; font-weight:bold; font-size:9pt; color:#0062c8; text-decoration:underline;}
.gray {font-family:"±¼¸²", "µ¸¿ò"; font-size: 9pt; color:#666666; text-decoration:none;}
.gray div {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#666666; text-decoration:none;}
.gray td {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#666666; text-decoration:none;}
.gray a {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#666666; text-decoration:none;}
.gray a:link {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#666666; text-decoration:none;}
.gray a:active {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#666666; text-decoration:none;}
.gray a:visited {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#000000; text-decoration:none;}
.gray a:hover {font-family: "±¼¸²", "µ¸¿ò"; font-size:9pt; color:#000000; text-decoration:underline;}
.verdana {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana a:link {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana a:visited {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana a:active {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana a:hover {font-family:Verdana; font-size: 7pt; text-decoration:underline;}
.verdana td {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana div {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana_bold {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.verdana_bold a:link {font-family:Verdana; font-size: 7pt; text-decoration:none;}
.verdana_bold a:visited {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.verdana_bold a:active {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.verdana_bold a:hover {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.verdana_bold td {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.verdana_bold div {font-family:Verdana; font-size: 7pt; font-weight: bold; text-decoration:none;}
.input { background-color:#ffffff; border-bottom:#9E9D9D 1px solid; border-left:#9E9D9D 1px solid; border-right:#9E9D9D 1px solid;
border-top: #9E9D9D 1px solid; font-size:9pt; color:#000000; font-family:"±¼¸²" "µ¸¿ò";}
.input_gray { background-color:#ffffff; border-bottom:#9E9D9D 1px solid; border-left:#9E9D9D 1px solid; border-right:#9E9D9D 1px solid;
border-top: #9E9D9D 1px solid; font-size:9pt; color:#666666; font-family:"±¼¸²" "µ¸¿ò";}
.bt { border-left:#818181 1px solid; border-right:#818181 1px solid;
border-top: #818181 1px solid; border-bottom:#818181 1px solid; font-family:Verdana; font-size:9pt; color:#ffffff; background-color:#949494}
+51
View File
@@ -0,0 +1,51 @@
var x,y;
document.onclick = MouseDown;
function MouseDown() {
menuLocBod = window.document.body;
x = window.event.x - 30;
y = window.event.y + menuLocBod.scrollTop - 10;
}
document.onmousedown = doDown;
function doDown() {
MM_showHideLayers('ifrmcal','','hide');
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
if ((obj=MM_findObj(args[i]))!=null) {
v=args[i+2];
if (obj.style) {
obj=obj.style;
v=(v=='show')?'visible':(v='hide')?'hidden':v;
}
obj.visibility=v;
}
}
function calendarBtn(form1){
document.getElementById("resOrNot").checked = true;
if ((obj=MM_findObj('ifrmcal'))!=null) {
if (obj.style) {
obj=obj.style;
}
obj.left=x;
obj.top=y;
}
calendarfrm.buttonmenu(form1);
MM_showHideLayers('ifrmcal','','show')
}
function MM_findObj(n, d) { //v3.0
var p,i,x;
if (!d) d=document;
if ((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if (!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for (i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
return x;
}