Wages/DateSelect.htm

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<HTML>
	<HEAD>
		<title>Time</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<style> .tdToday{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: #669AC1;VISIBILITY: visible}
	.tdLastSelect{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: #669AC1;VISIBILITY: visible}
	.tdDayOff{CURSOR:hand;COLOR:red; BACKGROUND-COLOR: buttonface;VISIBILITY: visible}
	.tdMonth{CURSOR:hand;COLOR: black; BACKGROUND-COLOR: buttonface;VISIBILITY: visible}
	.tdOther{CURSOR:default;COLOR: black; BACKGROUND-COLOR:buttonface ;VISIBILITY: visible}
	.tdTime{COLOR: yellow; BACKGROUND-COLOR: background;VISIBILITY: visible}
	.tdPrior{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: #669AC1;VISIBILITY: visible; TEXT-ALIGN: right}
	.tdNext{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: #669AC1;VISIBILITY: visible; TEXT-ALIGN: left}
	.tdMouseOver{CURSOR:hand;COLOR:green;VISIBILITY: visible}
	.tdMonthOver{CURSOR:hand; BACKGROUND-COLOR: white;VISIBILITY: visible}
	.tdDayOffOver{CURSOR:hand;COLOR:red; BACKGROUND-COLOR: white;VISIBILITY: visible}
	.tdLastSelectOver{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: white;VISIBILITY: visible}
	.tdTodayOver{CURSOR:hand;COLOR: yellow; BACKGROUND-COLOR: white;VISIBILITY: visible}
		</style>
		<script language="javascript">
			var idLastSelect;                        //*上次输入的日期
			var ilHeadRow= 2                         //*日期上的抬头行数
			var idToday = new Date();                //*获取当前日期
			
			var ilYear  = idToday.getFullYear();     //*日历年度
			var ilMonth = idToday.getMonth();        //*日历月份
			var ilDate  = idToday.getDate();         //*日历日期
			var ilHour  = idToday.getHours();        //*日历时
			var ilMin   = idToday.getMinutes();      //*日历分
			
			var ibDate  = false;
			function Compute()		                 //*计算月份数据并填入
			{
				var lDates,lWeeks;				      //*当前月天数,礼拜数
				var lFirstDay,lLastDay;               //*获取当前月份第一天和最后一天的礼拜几
				var i = 1,lWeek,lDay;                 //*第几天、礼拜数、礼拜几 
				
				var dDate;                            //*日期(临时)
				
				lDates = GetDates();
				
				dDate = new Date(ilYear,ilMonth,1);
				lFirstDay = dDate.getDay();           
				
				dDate = new Date(ilYear,ilMonth,lDates);
				lLastDay = dDate.getDay();
				
				lWeeks = (lDates + lFirstDay + (6 - lLastDay))/7;
				
				
				document.all("sp_year").innerText = ilYear + "年"; //*设置年度
				document.all("ddl_year").value=ilYear;
				
				document.all("sp_month").innerText = ( 1 + ilMonth) + "月";//*设置月份
				document.all("ddl_month").value=ilMonth
				
				for(lWeek = 0;lWeek < 6 ;lWeek++)          //*按礼拜数进行循环处理
后面还有 421 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。