⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 right.asp

📁 企业办公自动化管理系统 asp+sql server 2005
💻 ASP
字号:

<!--#include file="include/opendb.asp"-->
<%
oabusysuid=request.cookies("oabusysuid")
if oabusysuid="" then response.redirect "default.asp"

mymonth=month(now())
if mymonth<10 then mymonth="0" & mymonth
myyear=year(now())
myday=day(now())
if myday<10 then myday="0" & myday
%>
<HTML xmlns:IE>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css" type="text/css">
<TITLE>Calendar</TITLE>
<STYLE>
@media all
{
  IE\:Calendar
  {
	behavior: url(class/calendarForWorkplan.htc) ; //引入calendar的html组件
  }
}
</STYLE>
</HEAD>

<BODY scroll="no" onload="doSetCalendar('<%=myyear & "-" & mymonth & "-" & myday%>')" topmargin="0" leftmargin="0">
<FORM name="frmmain" method="post" action="" target="mainFrame">
<INPUT type="hidden" name="selectdate" value="<%=myyear & "-" & mymonth & "-" & myday%>">
<INPUT type="hidden" name="selectuser" value="3">
<INPUT type="hidden" name="viewtype" value="2">
<INPUT type="hidden" name="method" value="">

<IE:Calendar id="cal" style="height:140;width:200;border:1px solid black;" ></IE:Calendar><BR>

</FORM>

<SCRIPT language="JavaScript">
function doSetCalendar(date) {
	day = date.substring(8,10);
	month = date.substring(5,7);
	cal.year = date.substring(0,4);

	if (month=="08") cal.month = 08;  //??非常奇怪当为08号或09号就不行
	else if (month=="09") cal.month = 09;
		 else cal.month = month;

	if (day=="08") cal.day = 08;  //??非常奇怪当为08号或09号就不行
	else if (day=="09") cal.day = 09;
		 else cal.day = day;

	document.frmmain.selectdate.value=date;
}

function doSubmit() {
	themonth = cal.month;
	theday = cal.day;
	if (themonth < 10)
		themonth = "0" + themonth;

	if (theday < 10)
		theday = "0" + theday;

	//document.frmmain.submit();
	document.frmmain.action = "displayworkrec.asp?suid=<%=oabusysuid%>&superior=&recdate="+cal.year + '-' + themonth + '-' + theday;
	document.frmmain.target = "mainFrame";
	document.frmmain.submit();
	document.frmmain.selectdate.value = cal.year + '-' + themonth + '-' + theday;
}

</SCRIPT>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -