<html>
<body>
tttttttttttttttttttttttttt
<script language=javascript type=text/javascript src="calendar.js"></script>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="Last_Update_Date" size="20" onclick="show_cele_date(Last_Update_Date,'','',Last_Update_Date)">
</form>
</body></html>
<body>
tttttttttttttttttttttttttt
<script language=javascript type=text/javascript src="calendar.js"></script>
<form method="POST" action="--WEBBOT-SELF--">
<input type="text" name="Last_Update_Date" size="20" onclick="show_cele_date(Last_Update_Date,'','',Last_Update_Date)">
</form>
</body></html>
<!--//ÓÐЧµÄʱ¼ä·¶Î§
var date_start,date_end,g_object
var today = new Date();
var separator="-";
var inover=false;//mode :ʱ¼ä±ä»»µÄÀàÐÍ0-Äê 1-Ô 2-Ö±½ÓÑ¡ÔñÔÂ
function change_date(temp,mode)
{
var t_month,t_year
if (mode){
if(mode==1)
t_month=parseInt(cele_date_month.value,10)+parseInt(temp,10);
else
t_month=parseInt(temp)
if (t_month<cele_date_month.options(0).text) {
cele_date_month.value=cele_date_month.options(cele_date_month.length-1).text;
change_date(parseInt(cele_date_year.value,10)-1,0);
}
else{
if (t_month>cele_date_month.options(cele_date_month.length-1).text){
cele_date_month.value=cele_date_month.options(0).text;
change_date(parseInt(cele_date_year.value,10)+1,0);
}
else
{cele_date_month.value=t_month;
set_cele_date(cele_date_year.value,cele_date_month.value);
}
}
}
else{
t_year=parseInt(temp,10);
if (t_year<cele_date_year.options(0).text) {
cele_date_year.value=cele_date_year.options(0).text;
set_cele_date(cele_date_year.value,1);
}
else{
if (parseInt(t_year,10)>parseInt(cele_date_year.options(cele_date_year.length-1).text,10)){
cele_date_year.value=cele_date_year.options(cele_date_year.length-1).text;
set_cele_date(cele_date_year.value,12);
}
else
{cele_date_year.value=t_year;
set_cele_date(cele_date_year.value,cele_date_month.value);
}
}
}
window.cele_date_iframe.focus();
}//³õʼ»¯ÈÕÀú
function init(d_start,d_end)
{
var temp_str;
var i=0
var j=0
date_start=new Date(1990,7,1)
date_end=new Date(2050,8,1)
document.writeln("<div name=\"cele_date_iframe\" id=\"cele_date_iframe\" style=\"display:none\"><div name=\"cele_date\" id=\"cele_date\" style=\"display:none\" style=\"LEFT: 69px; POSITION: absolute; TOP: 159px;Z-INDEX:99\" onblur='hilayer();'></div></div>"); window.cele_date.innerHTML="";
temp_str="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" bordercolor=\"black\" bordercolorlight=\"#000000\" style=\"border-color:black; border-style:solid;\" onBlur='hilayer();'><tbody><tr>";
temp_str+="<td nowrap onmouseover=\"overcolor(this)\"><input type=\"Button\" value=\"<\" onclick=\"change_date(-1,1)\" onmouseover=\"getlayerfocus()\" style=\"color: #FFFFFF; background-color: #5d7790; cursor: hand\"></td><td nowrap colspan=5 align=center onmouseover=\"overcolor(this)\">";//×óÃæµÄ¼ýÍ·
temp_str+=""//Äê
temp_str+="<select name=\"cele_date_year\" id=\"cele_date_year\" language=\"javascript\" onchange=\"change_date(this.value,0)\" onmouseover=\"getlayerfocus()\" style=\"font-size: 9pt; border: 1px #666666 outset; background-color: #F4F8FB\">" /**************************2002-02-01 MODIFY BY WING ********************************************************************************/
/*temp_str+="<select name=\"cele_date_year\" id=\"cele_date_year\" language=\"javascript\" onchange=\"change_date(this.value,0)\">" */
/************************************************************************************************************************************/ for (i=1990;i<=2050;i++)
{
temp_str+="<OPTION value=\""+i.toString()+"\">"+i.toString()+"</OPTION>";
}
temp_str+="</select>";
temp_str+="Äê"//ÔÂ
temp_str+="<select name=\"cele_date_month\" id=\"cele_date_month\" language=\"javascript\" onchange=\"change_date(this.value,2)\" onmouseover=\"getlayerfocus()\" style=\"font-size: 9pt; border: 1px #666666 outset; background-color: #F4F8FB\">" /**************************2002-02-01 MODIFY BY WING **********************************************************************************/
/*temp_str+="<select name=\"cele_date_month\" id=\"cele_date_month\" language=\"javascript\" onchange=\"change_date(this.value,2)\">" */
/**************************************************************************************************************************************/ for (i=1;i<=12;i++)
{
temp_str+="<OPTION value=\""+i.toString()+"\">"+i.toString()+"</OPTION>";
}
temp_str+="</select>";
temp_str+="ÔÂ";
temp_str+="<select name=\"cele_date_hour\" id=\"cele_date_hour\" language=\"javascript\" onmouseover=\"getlayerfocus()\" style=\"font-size: 9pt; border: 1px #666666 outset; background-color: #F4F8FB\">"
for (i=0;i<=23;i++)
{
temp_str+="<OPTION value=\""+i.toString()+"\">"+i.toString()+"</OPTION>";
}
temp_str+="</select>";
temp_str+="ʱ"; temp_str+="<select name=\"cele_date_minute\" id=\"cele_date_minute\" language=\"javascript\" onmouseover=\"getlayerfocus()\" style=\"font-size: 9pt; border: 1px #666666 outset; background-color: #F4F8FB\">" for (i=0;i<=59;i++)
{
temp_str+="<OPTION value=\""+i.toString()+"\">"+i.toString()+"</OPTION>";
}
temp_str+="</select>";
temp_str+="·Ö"; //ÓÒ¼ýÍ·
temp_str+="<input type=\"checkbox\" name=\"timeselect\">";
temp_str+="</td><td nowrap align=right><input type=\"Button\" value=\">\" onclick=\"change_date(1,1)\" onmouseover=\"getlayerfocus()\" style=\"color: #FFFFFF; background-color: #5d7790; cursor: hand\"></td>"; /**************************2002-02-01 MODIFY BY WING ********************************************************************************/
/*temp_str+="<input type=\"Button\" value=\">>\" onclick=\"change_date(1,1)\">"; */
/************************************************************************************************************************************/ temp_str+="</tr><tr><td nowrap onmouseover=\"overcolor(this)\" style=\"border-bottom-color:black; border-bottom-style:solid;\">"
temp_str+="<font color=red>ÐÇÆÚÈÕ</font></td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">";temp_str+="ÐÇÆÚÒ»</td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">"; temp_str+="ÐÇÆÚ¶þ</td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">"; temp_str+="ÐÇÆÚÈý</td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">"
temp_str+="ÐÇÆÚËÄ</td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">";temp_str+="ÐÇÆÚÎå</td><td nowrap style=\"border-bottom-color:black; border-bottom-style:solid;\">"; temp_str+="ÐÇÆÚÁù</td></tr>";
for (i=1 ;i<=6 ;i++)
{
temp_str+="<tr>";
for(j=1;j<=7;j++){
temp_str+="<td align=center name=\"c"+i+"_"+j+"\"id=\"c"+i+"_"+j+"\" style=\"CURSOR: hand\" style=\"COLOR:#000000\" language=\"javascript\" onmouseover=\"overcolor(this)\" onmouseout=\"outcolor(this)\" onclick=\"td_click(this)\">?</td>"
}
temp_str+="</tr>"
}
temp_str+="</td></tr></tbody></table>";
window.cele_date.innerHTML=temp_str;}
function set_cele_date(year,month)
{
var i,j,p,k
var nd=new Date(year,month-1,1);
event.cancelBubble=true;
cele_date_year.value=year;
cele_date_month.value=month;
k=nd.getDay()-1
var temp;
for (i=1;i<=6;i++)
for(j=1;j<=7;j++)
{
eval("c"+i+"_"+j+".innerHTML=\"\"");
eval("c"+i+"_"+j+".bgColor=\"white\"");
eval("c"+i+"_"+j+".style.cursor=\"hand\"");
}
while(month-1==nd.getMonth())
{ j=(nd.getDay() +1);
p=parseInt((nd.getDate()+k) / 7)+1;
eval("c"+p+"_"+j+".innerHTML="+"\""+nd.getDate()+"\"");
if ((nd.getDate()==today.getDate())&&(cele_date_month.value==today.getMonth()+1)&&(cele_date_year.value==today.getYear())){
eval("c"+p+"_"+j+".bgColor=\"#EFFB64\"");
}
if (nd>date_end || nd<date_start)
{
eval("c"+p+"_"+j+".bgColor=\"#FF9999\"");
eval("c"+p+"_"+j+".style.cursor=\"text\"");
}
nd=new Date(nd.valueOf() + 86400000)
}}//s_object£ºµã»÷µÄ¶ÔÏó£»d_start-d_endÓÐЧµÄʱ¼äÇø¶Î£»ÐèÒª´æ·ÅÖµµÄ¿Ø¼þ£»
function show_cele_date(eP,d_start,d_end,t_object)
{
window.cele_date.style.display="";
window.cele_date.style.zIndex=99;
var s,cur_d;
var eT = eP.offsetTop;
var eH = eP.offsetHeight+eT;
var dH = window.cele_date.style.pixelHeight;
var sT = document.body.scrollTop;
var sL = document.body.scrollLeft; event.cancelBubble=true;
window.cele_date.style.posLeft = event.clientX-event.offsetX+sL-5;
window.cele_date.style.posTop = event.clientY-event.offsetY+eH+sT-5;
if (window.cele_date.style.posLeft+window.cele_date.clientWidth>document.body.clientWidth) window.cele_date.style.posLeft+=eP.offsetWidth-window.cele_date.clientWidth;
if (d_start!=""){
if (d_start=="today"){
date_start=new Date(today.getYear(),today.getMonth(),today.getDate());
}else{
s=d_start.split(separator);
date_start=new Date(s[0],s[1]-1,s[2]);
}
}else{
date_start=new Date(1900,1,1);
}