최초커밋
This commit is contained in:
267
contact/include/calendar.html
Normal file
267
contact/include/calendar.html
Normal file
@@ -0,0 +1,267 @@
|
||||
<!-- #include file = "../include/default_values.asp" -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>KRI WEB CALENDAR</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<link rel="StyleSheet" href="lucis.css" type="text/css">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if (document.all) {
|
||||
docObj = "document.all."
|
||||
styleObj = ".style"
|
||||
} else {
|
||||
docObj = "document."
|
||||
styleObj = ""
|
||||
}
|
||||
var icount = 0;
|
||||
function parseUrl() {
|
||||
var myValueIn = unescape(location.search.replace(/\+/g,' '));
|
||||
|
||||
myValueIn = myValueIn.substring(1).split('&');
|
||||
|
||||
var year = 0;
|
||||
var month = 0;
|
||||
var actval = "";
|
||||
|
||||
for(i=0;i<myValueIn.length;i++)
|
||||
myValueIn[i] = myValueIn[i].split('=');
|
||||
|
||||
for(i=0;i<myValueIn.length;i++){
|
||||
if(myValueIn[i][0] == "year") year = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "month") month = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "actval") actval = myValueIn[i][1];
|
||||
if(myValueIn[i][0] == "icount") icount = myValueIn[i][1];
|
||||
}
|
||||
setCal(year,month,actval);
|
||||
}
|
||||
|
||||
function leapYear(year) {
|
||||
if (year % 4 == 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDays(month, year) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = 31; ar[1] = (leapYear(year)) ? 29 : 28; ar[2] = 31; ar[3] = 30; ar[4] = 31; ar[5] = 30;
|
||||
ar[6] = 31; ar[7] = 31; ar[8] = 30; ar[9] = 31; ar[10] = 30; ar[11] = 31;
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function getMonthName(month) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = "1<><31>"; ar[1] = "2<><32>"; ar[2] = "3<><33>"; ar[3] = "4<><34>"; ar[4] = "5<><35>"; ar[5] = "6<><36>";
|
||||
ar[6] = "7<><37>"; ar[7] = "8<><38>"; ar[8] = "9<><39>"; ar[9] = "10<31><30>"; ar[10] = "11<31><31>"; ar[11] = "12<31><32>";
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function setCal(year,month,actval) {
|
||||
var now = new Date();
|
||||
month = month - 1;
|
||||
var curyear = now.getFullYear();
|
||||
var curmonth = now.getMonth();
|
||||
if(year==0) year = now.getFullYear();
|
||||
if(month<0||month>11) month = now.getMonth();
|
||||
|
||||
var monthName = getMonthName(month);
|
||||
var date = now.getDate();
|
||||
now = null;
|
||||
|
||||
var firstDayInstance = new Date(year, month, 1);
|
||||
var firstDay = firstDayInstance.getDay();
|
||||
firstDayInstance = null;
|
||||
|
||||
var days = getDays(month, year);
|
||||
|
||||
drawCal(firstDay + 1, days, date, monthName, year, month, curyear, curmonth, actval);
|
||||
}
|
||||
|
||||
function drawCal(firstDay, lastDate, date, monthName, year, month, curyear, curmonth, actval) {
|
||||
var headerHeight = " "; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var border = 0; // <20><><EFBFBD>̺<EFBFBD> <20>θ<D7B5>
|
||||
var cellspacing = "1"; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerColor = "black"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerSize = "2"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var colWidth = "27"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var dayCellHeight = "22";// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var dayColor = "white"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var cellHeight = "20"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var todayColor = "red"; // <20><><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
var timeColor = "blue"; // <20>ð<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
var text = "";
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' align=\'center\'>';
|
||||
text += '<TR COLSPAN=1 HEIGHT=' + headerHeight + ' bgcolor="#FFFFFF"><td>';
|
||||
text += '<FONT COLOR="' + headerColor + '" SIZE=' + headerSize + '>';
|
||||
text += '<a href="calendar.html?year=' + ((month==0) ? year-1 : year) + '&month=' + ((month==0) ? 12 : month )
|
||||
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/source/imgs/business/rec_blue1.gif border=0 align=absmiddle ></a></td>';
|
||||
/*<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD>*/
|
||||
text += '<td>'+
|
||||
'<table border="0" width=\' \' height=\' \' >'+
|
||||
'<form name=\'date_list\'>'+
|
||||
'<input type=\'hidden\' name=\'actval\' value='+actval+'><tr>'+
|
||||
'<td align=center>'+
|
||||
'<select name=\'year\' onchange=\'change_year();\'>';
|
||||
|
||||
for(i=1950; i<(curyear+2); i++) {
|
||||
if(year != i) {
|
||||
text += '<option value='+i+' >'+i;
|
||||
} else {
|
||||
text += '<option value='+i+' selected>'+i;
|
||||
}
|
||||
}
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'<td>'+
|
||||
'<select name="month" onchange="change_month(this.options.selectedIndex);">';
|
||||
|
||||
for(i=0; i < 12; i++) {
|
||||
if(month != i) {
|
||||
text += '<option value="'+(i+1)+'">'+ (i+1);
|
||||
} else {
|
||||
text += '<option value="'+(i+1)+'" selected>'+(i+1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'</tr></table></td>';
|
||||
|
||||
text += '<td><a href="calendar.html?year=' + ((month==11) ? year+1 : year) + '&month=' + ((month==11) ? 1 : month + 2)
|
||||
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/source/imgs/business/rec_blue2.gif border=0 align=absmiddle ></a> ';
|
||||
text += '<img src=/source/imgs/business/rec_purple.gif border=0 align=absmiddle OnClick="window.close()" style="cursor:hand" >';
|
||||
text += '</FONT></td>';
|
||||
|
||||
text += '</TR></form>';
|
||||
text += '</TABLE>';
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' bgcolor="#977BD0" ALIGN="center">';
|
||||
|
||||
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>';
|
||||
openCol += '<FONT COLOR="' + dayColor + '">';
|
||||
var closeCol = '</FONT></TD>';
|
||||
|
||||
var weekDay = new Array(7);
|
||||
weekDay[0] = "<22><>"; weekDay[1] = "<22><>"; weekDay[2] = "ȭ"; weekDay[3] = "<22><>";
|
||||
weekDay[4] = "<22><>"; weekDay[5] = "<22><>"; weekDay[6] = "<22><>";
|
||||
|
||||
text += '<TR ALIGN="center">';
|
||||
for (var dayNum = 0; dayNum < 7; ++dayNum) {
|
||||
text += openCol + "<b>" +weekDay[dayNum] + closeCol;
|
||||
}
|
||||
text += '</TR>';
|
||||
|
||||
var digit = 1;
|
||||
var curCell = 1;
|
||||
|
||||
for (var row = 1; row <= Math.ceil((lastDate + firstDay - 1) / 7); ++row) {
|
||||
text += '<TR bgcolor="white" ALIGN="center">';
|
||||
for (var col = 1; col <= 7; ++col) {
|
||||
if (digit > lastDate) break;
|
||||
if (curCell < firstDay) {
|
||||
text += '<TD bgcolor="white" ></TD>';
|
||||
curCell++;
|
||||
} else {
|
||||
if (digit == date && year == curyear && month == curmonth ) {
|
||||
text += '<TD bgcolor=yellow style=\'cursor:hand\' HEIGHT=' + cellHeight;
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\'' + (month + 1) + '\',\''+ digit + '\',\'' + actval + '\');">';
|
||||
text += '<FONT COLOR="' + todayColor + '">';
|
||||
text += digit;
|
||||
text += '</FONT><BR>';
|
||||
text += '</TD>';
|
||||
} else {
|
||||
text += '<TD bgcolor="white" style=\'cursor:hand\' HEIGHT=' + cellHeight;
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\''+ (month + 1) + '\',\'' + digit + '\',\'' + actval + '\');">' + digit + '</TD>';
|
||||
}
|
||||
digit++;
|
||||
}
|
||||
}
|
||||
text += '</TR>';
|
||||
}
|
||||
text += '</TABLE>';
|
||||
document.write(text);
|
||||
}
|
||||
|
||||
function sendVal(year, mon, day, actval) {
|
||||
|
||||
var dateStr = "";
|
||||
|
||||
if (mon <10) mon = 0+mon;
|
||||
if (day <10) day = 0+day;
|
||||
|
||||
dateStr = year+ '-' + mon + '-' + day;
|
||||
|
||||
if((actval!=""||actval!= null)&&opener) {
|
||||
//alert(actval+" : "+dateStr+" // "+opener);
|
||||
//alert("eval : "+"opener.document.forms[0]." + actval);
|
||||
//alert("[0] : "+(opener.document.forms[0][actval] != null));
|
||||
//alert("[1] : "+(opener.document.forms[1][actval] != null));
|
||||
|
||||
if(opener.document.forms[0][actval] != null){
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
}else if(opener.document.forms[1][actval] != null){
|
||||
if(eval("opener.document.forms[1]." + actval)) {
|
||||
eval("opener.document.forms[1]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[1]." + actval).focus();
|
||||
}
|
||||
}else{
|
||||
//alert("<22><><EFBFBD><EFBFBD> : "+actval+" : "+dateStr+" // "+opener.document.forms.length);
|
||||
//for(var i = 0; i<opener.document.forms.length; i++){
|
||||
//alert("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i]);
|
||||
//console.log("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i].txt_date[1]+"//actval : "+actval);
|
||||
//}
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
alert(dateStr);
|
||||
}
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function change_year() {
|
||||
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
|
||||
}
|
||||
function change_month() {
|
||||
//alert(window.event.clientX);
|
||||
//alert(window.event.clientY);
|
||||
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
|
||||
}
|
||||
function SetInit()
|
||||
{ var ileft = new Number;
|
||||
var itop = new Number;
|
||||
ileft = window.event.clientX;
|
||||
itop = window.event.clientY;
|
||||
|
||||
//alert(ileft + " : " + itop);
|
||||
window.resizeTo(245,245);
|
||||
if((ileft) < 0 ) ileft = 0;
|
||||
if((itop) < 0 ) itop = 0;
|
||||
if(icount == 0){
|
||||
icount++;
|
||||
window.moveBy(ileft-50, itop-50);
|
||||
}
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EEEEFF" leftmargin="0" topmargin="8" marginwidth="0" marginheight="0" OnLoad="SetInit()">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
parseUrl();
|
||||
icount++;
|
||||
//alert(icount);
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
111
contact/include/calendar2.asp
Normal file
111
contact/include/calendar2.asp
Normal file
@@ -0,0 +1,111 @@
|
||||
<%@ Language=VBScript%>
|
||||
<%
|
||||
''<27><EFBFBD><E2B5B5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̱<EFBFBD><CCB1><EFBFBD> <20><EFBFBD>..
|
||||
|
||||
Response.Buffer = true
|
||||
|
||||
target = request("x")
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="cfg/text.css">
|
||||
<form name="caleder2" method="post">
|
||||
<input type="hidden" name="target" value="<%=target%>">
|
||||
</form>
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
|
||||
var today = new Date(); real_year = today.getYear(); str = null; month_value = 0;
|
||||
var lastday = null; firstweek = null;
|
||||
var wid = 4; hei = 12/wid; big_wid = 600;
|
||||
var small_wid = (big_wid / wid) - 10;
|
||||
var week_day = new Array('<27><>','<27><>','ȭ','<27><>','<27><>','<27><>','<27><>');
|
||||
|
||||
//var x = document.forms[0].element[x].value;
|
||||
|
||||
document.write("<style>");
|
||||
document.write(".a { font-family: 'Arial', '<27><><EFBFBD><EFBFBD>'; color: white; font-size: 13px}");
|
||||
document.write("</style>");
|
||||
document.write("<body onselectstart='return false' onload='start()'>");
|
||||
document.write("<center>");
|
||||
document.write("<table><form name='calendar'>");
|
||||
document.write("<tr>");
|
||||
document.write("<td onClick='year_(true)' style='cursor:hand'><3E><></td>");
|
||||
document.write("<td>");
|
||||
document.write("<select name = 'year_name' onchange='year_change();'>");
|
||||
for (var i=real_year+1; i>=1950;--i)
|
||||
{
|
||||
document.write("<option value = '" + i + "'>" + i);
|
||||
}
|
||||
document.write("</select>");
|
||||
document.write("<td onClick='year_(false)' style='cursor:hand'><3E><></td>");
|
||||
document.write("</tr>");
|
||||
document.write("</form></table>");
|
||||
document.write("<div id=taewan style='visibility:visible'>");
|
||||
document.write("<table><tr><td><q id='calendars'></q></td></tr></table>");
|
||||
document.write("</div>");
|
||||
|
||||
function start() {
|
||||
str = "<table border='1'>";
|
||||
for(j = 1; j < hei+1; j++) {
|
||||
str = str + "<tr height='10' align='center' valign='top' class='a'>";
|
||||
for(n = 1; n < wid+1; n++) {
|
||||
str = str + "<td>" + month_(month_value) + "</td>";
|
||||
if(n != wid) { str = str + "<td><3E><></td>"; } }
|
||||
str = str + "</tr>"; }
|
||||
str = str + "</table>";
|
||||
calendars.innerHTML = str;
|
||||
}
|
||||
|
||||
function on_m(x,y) {
|
||||
if(y) { x.style.cursor='hand'; x.style.backgroundColor='pink'; }
|
||||
else { x.style.cursor = ''; x.style.backgroundColor=''; }
|
||||
}
|
||||
|
||||
|
||||
function year_(x) {
|
||||
if(x) { today.setYear(today.getYear()-1); }
|
||||
else { today.setYear(today.getYear()+1); }
|
||||
if (today.getYear() < 2000){
|
||||
document.calendar.year_name.value = 1900 + today.getYear();
|
||||
}else{
|
||||
document.calendar.year_name.value = today.getYear();
|
||||
}
|
||||
month_value = 0;
|
||||
start();
|
||||
}
|
||||
|
||||
function year_change(){
|
||||
today.setYear(document.calendar.year_name.value);
|
||||
month_value = 0;
|
||||
start();
|
||||
}
|
||||
|
||||
function popup(tmp_z) {
|
||||
var target = document.caleder2.target.value;
|
||||
opener.document.forms[0].elements[eval(target)].value=tmp_z;
|
||||
self.close();
|
||||
}
|
||||
|
||||
function month_(x) {
|
||||
month_value = month_value + 1;
|
||||
imsi_0 = new Date (today.getYear(),today.getMonth(),1);
|
||||
imsi_1 = new Date (today.getYear(),today.getMonth()+1);
|
||||
lastday = (imsi_1 - imsi_0)/1000/60/60/24;
|
||||
var y = today.getYear(); m = x; d = 1;
|
||||
var week = new Date(y,m,d);
|
||||
var target = document.c
|
||||
firstweek = week.getDay();
|
||||
firstweek = firstweek - (firstweek * 2 - 1);
|
||||
tmp_m = m + 1;
|
||||
if (tmp_m < 10) {
|
||||
tmp_m = '0' + tmp_m;
|
||||
}
|
||||
y = document.calendar.year_name.value;
|
||||
tmp_tmp = y + '-' + tmp_m;
|
||||
gap = "<table width='60' border='1'>";
|
||||
gap = gap + "<tr align='center'><td onmouseover='on_m(this,true)' onmouseout='on_m(this,false)' onClick=popup('"+tmp_tmp+"')>" + eval(x+1) + " <20><></td></tr>";
|
||||
gap = gap + "</table>";
|
||||
return gap;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
198
contact/include/calendar_month.html
Normal file
198
contact/include/calendar_month.html
Normal file
@@ -0,0 +1,198 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>KRI WEB CALENDAR</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<link rel="StyleSheet" href="lucis.css" type="text/css">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if (document.all) {
|
||||
docObj = "document.all."
|
||||
styleObj = ".style"
|
||||
} else {
|
||||
docObj = "document."
|
||||
styleObj = ""
|
||||
}
|
||||
var icount = 0;
|
||||
function parseUrl() {
|
||||
var myValueIn = unescape(location.search.replace(/\+/g,' '));
|
||||
|
||||
myValueIn = myValueIn.substring(1).split('&');
|
||||
|
||||
var year = 0;
|
||||
var month = 0;
|
||||
var actval = "";
|
||||
|
||||
for(i=0;i<myValueIn.length;i++)
|
||||
myValueIn[i] = myValueIn[i].split('=');
|
||||
|
||||
for(i=0;i<myValueIn.length;i++){
|
||||
if(myValueIn[i][0] == "year") year = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "month") month = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "actval") actval = myValueIn[i][1];
|
||||
if(myValueIn[i][0] == "icount") icount = myValueIn[i][1];
|
||||
}
|
||||
setCal(year,month,actval);
|
||||
}
|
||||
|
||||
function leapYear(year) {
|
||||
if (year % 4 == 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDays(month, year) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = 31; ar[1] = (leapYear(year)) ? 29 : 28; ar[2] = 31; ar[3] = 30; ar[4] = 31; ar[5] = 30;
|
||||
ar[6] = 31; ar[7] = 31; ar[8] = 30; ar[9] = 31; ar[10] = 30; ar[11] = 31;
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function getMonthName(month) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = "1<><31>"; ar[1] = "2<><32>"; ar[2] = "3<><33>"; ar[3] = "4<><34>"; ar[4] = "5<><35>"; ar[5] = "6<><36>";
|
||||
ar[6] = "7<><37>"; ar[7] = "8<><38>"; ar[8] = "9<><39>"; ar[9] = "10<31><30>"; ar[10] = "11<31><31>"; ar[11] = "12<31><32>";
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function setCal(year,month,actval) {
|
||||
var now = new Date();
|
||||
month = month - 1;
|
||||
var curyear = now.getYear();
|
||||
var curmonth = now.getMonth();
|
||||
if(year==0) year = now.getYear();
|
||||
if(month<0||month>11) month = now.getMonth();
|
||||
|
||||
var monthName = getMonthName(month);
|
||||
var date = now.getDate();
|
||||
now = null;
|
||||
|
||||
var firstDayInstance = new Date(year, month, 1);
|
||||
var firstDay = firstDayInstance.getDay();
|
||||
firstDayInstance = null;
|
||||
|
||||
var days = getDays(month, year);
|
||||
|
||||
drawCal(firstDay + 1, days, date, monthName, year, month, curyear, curmonth, actval);
|
||||
}
|
||||
|
||||
function drawCal(firstDay, lastDate, date, monthName, year, month, curyear, curmonth, actval) {
|
||||
var headerHeight = " "; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var border = 0; // <20><><EFBFBD>̺<EFBFBD> <20>θ<D7B5>
|
||||
var cellspacing = "1"; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerColor = "black"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerSize = "2"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var colWidth = "27"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var dayCellHeight = "22";// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var dayColor = "white"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var cellHeight = "20"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var todayColor = "red"; // <20><><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
var timeColor = "blue"; // <20>ð<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
var text = "";
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' align=\'center\'>';
|
||||
text += '<TR COLSPAN=1 HEIGHT=' + headerHeight + ' bgcolor="#FFFFFF">';
|
||||
/*<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD>*/
|
||||
text += '<td>'+
|
||||
'<table border="0" width=\' \' height=\' \' >'+
|
||||
'<form name=\'date_list\'>'+
|
||||
'<input type=\'hidden\' name=\'actval\' value='+actval+'><tr>'+
|
||||
'<td align=center>'+
|
||||
'<select name=\'year\' onchange=\'change_year();\'>';
|
||||
|
||||
for(var i=1950; i<(curyear+2); i++) {
|
||||
if(year != i) {
|
||||
text += '<option value='+i+' >'+i;
|
||||
} else {
|
||||
text += '<option value='+i+' selected>'+i;
|
||||
}
|
||||
}
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'</tr></table></td>';
|
||||
|
||||
text += '<td>';
|
||||
text += '<img src="../imgs/common/rec_purple.gif" border=0 align=absmiddle OnClick="window.close()" style="cursor:hand" >';
|
||||
text += '</FONT></td>';
|
||||
|
||||
text += '</TR></form>';
|
||||
text += '</TABLE>';
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' bgcolor="#977BD0">';
|
||||
|
||||
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>';
|
||||
openCol += '<FONT COLOR="' + dayColor + '">';
|
||||
var closeCol = '</FONT></TD>';
|
||||
|
||||
var digit = 0;
|
||||
for (var row = 1; row <=3; ++row){
|
||||
text += '<TR bgcolor="white" ALIGN="center">';
|
||||
for(var col = 1; col <= 4; ++col){
|
||||
digit++;
|
||||
text += '<TD bgcolor=yellow style=\'cursor:hand\' HEIGHT=50 width=50';
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\''+ digit + '\',\'' + actval + '\');">';
|
||||
text += digit + " <20><>";
|
||||
text += '</TD>';
|
||||
}
|
||||
text += '</TR>';
|
||||
}
|
||||
|
||||
|
||||
text += '</TABLE>';
|
||||
document.write(text);
|
||||
}
|
||||
|
||||
function sendVal(year, mon, actval) {
|
||||
|
||||
var dateStr = "";
|
||||
|
||||
if (mon <10) mon = 0+mon;
|
||||
|
||||
dateStr = year+ '-' + mon;
|
||||
|
||||
if((actval!=""||actval!= null)&&opener) {
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
} else alert(dateStr);
|
||||
|
||||
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function change_year() {
|
||||
location.href = "calendar_month.html?year=" + date_list.year.value + "&actval=" + date_list.actval.value + "&icount="+icount; //+ "&month=" + date_list.month.value
|
||||
}
|
||||
|
||||
|
||||
|
||||
function SetInit()
|
||||
{ var ileft = new Number;
|
||||
var itop = new Number;
|
||||
ileft = window.event.clientX;
|
||||
itop = window.event.clientY;
|
||||
|
||||
//alert(ileft + " : " + itop);
|
||||
window.resizeTo(200,300);
|
||||
if((ileft) < 0 ) ileft = 0;
|
||||
if((itop) < 0 ) itop = 0;
|
||||
if(icount == 0){
|
||||
icount++;
|
||||
window.moveBy(ileft-50, itop-50);
|
||||
}
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EEEEFF" leftmargin="0" topmargin="8" marginwidth="0" marginheight="0" OnLoad="SetInit()">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
parseUrl();
|
||||
icount++;
|
||||
//alert(icount);
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user