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

📄 popset.asp

📁 学生档案与成绩管理(1)学生档案管理:记录每个学生的档案信息
💻 ASP
📖 第 1 页 / 共 2 页
字号:
	else if(RemindPlan==RemindPlan_BirthDay)
	{
		if(!CheckTime("BirthTime",true))
		{
			alert(ErrorMessage);
			return(false);
		}
	}
	return(true);
}

//检查日期/时间的设置是否有效
function CheckTime(objName,Required) 
{
	var Result;

	Result=true;
	ErrorMessage="";

	var TimeOffset;
	eval("TimeOffset=frmData." + objName + "Offset.value;");
	if (isEmpty(TimeOffset))
	{
		Result=false;
		ErrorMessage="之前/之后的时间数量未填写。"
	}
	else
	{
		if(!isNumber(TimeOffset))
		{
			Result=false;
			ErrorMessage="之前/之后的时间数量应填写数值,请更正。"
		}
		else if(TimeOffset<0)
		{
			Result=false;
			ErrorMessage="之前/之后的时间数量应填写正数,请更正。"
		}
	}
	return(Result);
}

function Save() {
	parent.window.returnValue = "1," + GetResults();
	parent.window.close();
}

//拼装提醒数据,格式为RemindPlan | TimeFrom | TimeTo | Days
function GetResults() 
{
	var RemindPlan,TimeFrom,TimeTo,Days;

	RemindPlan=frmData.RemindPlan.value; 
	TimeFrom="";
	TimeTo="";
	Days="";

	if(RemindPlan==RemindPlan_OnceOnly)
	{
		TimeFrom=GetTime("TimeFrom");
	}
	else if(RemindPlan==RemindPlan_PerHour)
	{
		TimeFrom=GetTime("TimeFrom");
		TimeTo=GetTime("TimeTo");
	}
	else if(RemindPlan==RemindPlan_PerDay)
	{
		TimeFrom=GetTime("TimeFrom");
		TimeTo=GetTime("TimeTo");
	}
	else if(RemindPlan==RemindPlan_PerWeek)
	{
		var WeekChecked;
		TimeFrom=GetTime("TimeFrom");
		TimeTo=GetTime("TimeTo");
		for(var i=1;i<=7;i++)
		{
			WeekChecked=false;
			eval("WeekChecked=frmData.WeekDays" + i + ".checked;");
			if(WeekChecked==true)
				if(Days=="")
					Days=JTrim(i.toString())
				else
					Days=Days + "," + JTrim(i.toString())
		}
	}
	else if(RemindPlan==RemindPlan_PerMonth)
	{
		var DayChecked;
		TimeFrom=GetTime("TimeFrom");
		TimeTo=GetTime("TimeTo");
		for(var i=1;i<=31;i++)
		{
			DayChecked=false;
			eval("DayChecked=frmData.MonthDays" + i + ".checked;");
			if(DayChecked==true)
				if(Days=="")
					Days=JTrim(i.toString())
				else
					Days=Days + "," + JTrim(i.toString())
		}
	}
	else if(RemindPlan==RemindPlan_BirthDay)
	{
		TimeFrom=GetTime("BirthTime");
	}
	return(RemindPlan + "|" + TimeFrom + "|" + TimeTo + "|" + Days)
}

function HasChange() {
//	HasChanged=true;	//pop式窗口,没必要提示保存
}


//-->
</script>

<%
	dim CurSettings
	CurSettings=Request.QueryString("CurSettings")
	
	dim WExcel
	set WExcel=server.CreateObject("WExcel.System")

	AllDateOption=WExcel.GetAllDateOption(MemoSheet_ID)

%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</head>
	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" LANGUAGE=javascript onload="return Init()">
		<form METHOD="post" name="frmData">
			<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
				<tr>
					<td bgcolor="#e0e0e0" width="17%">
						<p align="left">提醒频度</p>
					</td>
					<td colspan=4>
						<p align="left">
							<select name=RemindPlan style="WIDTH: 170px" LANGUAGE=javascript onchange="ChangeRemindPlan(frmData.RemindPlan.value);">
								<option value=1>仅提醒一次</option>
								<option value=2>每小时提醒</option>
								<option value=3>每日提醒</option>
								<option value=4>每周提醒</option>
								<option value=5>每月提醒</option>
								<option value=6>每年提醒(即生日提醒)</option>
							</select>
						</p>
					</td>
				</tr>
				<tr>
					<td colspan=5>
						<p align="left" id=CurSchedule></p>
					</td>
				</tr>
			</table>

			<div id=Schedule1>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">提醒时间<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTime1>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=Schedule2>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(从)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeFrom2>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(至)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeTo2>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=Schedule3>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(从)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeFrom3>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(至)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeTo3>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=Schedule4>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(从)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeFrom4>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(至)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeTo4>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">每逢周几提醒<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left">
								<table width="100%" border=0 align="center" CELLSPACING="0" CELLPADDING="0">
									<tr>
										<td width=14%><p align="left"><INPUT name=WeekDays2 type=checkbox>周一</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays3 type=checkbox>周二</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays4 type=checkbox>周三</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays5 type=checkbox>周四</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays6 type=checkbox>周五</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays7 type=checkbox>周六</p></td>
										<td width=14%><p align="left"><INPUT name=WeekDays1 type=checkbox>周日</p></td>
									</tr>
								</table>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=Schedule5>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(从)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeFrom5>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">时间范围(至)<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTimeTo5>
							</p>
						</td>
					</tr>
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">每逢几号提醒<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left">
								<table width="100%" border=0 align="center" CELLSPACING="0" CELLPADDING="0">
									<tr>
										<td width=9%><p align="left"><INPUT name=MonthDays1 type=checkbox>1</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays2 type=checkbox>2</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays3 type=checkbox>3</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays4 type=checkbox>4</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays5 type=checkbox>5</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays6 type=checkbox>6</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays7 type=checkbox>7</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays8 type=checkbox>8</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays9 type=checkbox>9</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays10 type=checkbox>10</p></td>
										<td width=9%></td>
									</tr>
									<tr>
										<td width=9%><p align="left"><INPUT name=MonthDays11 type=checkbox>11</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays12 type=checkbox>12</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays13 type=checkbox>13</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays14 type=checkbox>14</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays15 type=checkbox>15</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays16 type=checkbox>16</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays17 type=checkbox>17</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays18 type=checkbox>18</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays19 type=checkbox>19</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays20 type=checkbox>20</p></td>
										<td width=9%></td>
									</tr>
									<tr>
										<td width=9%><p align="left"><INPUT name=MonthDays21 type=checkbox>21</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays22 type=checkbox>22</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays23 type=checkbox>23</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays24 type=checkbox>24</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays25 type=checkbox>25</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays26 type=checkbox>26</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays27 type=checkbox>27</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays28 type=checkbox>28</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays29 type=checkbox>29</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays30 type=checkbox>30</p></td>
										<td width=9%><p align="left"><INPUT name=MonthDays31 type=checkbox>31</p></td>
									</tr>
								</table>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=Schedule6>
				<table width="100%" border=0 align="center" CELLSPACING="1" CELLPADDING="0">
					<tr>
						<td bgcolor="#e0e0e0" width="17%">
							<p align="left">提醒时间<FONT color=red>*</FONT></p>
						</td>
						<td colspan=4>
							<p align="left" id=ScheduleTime6>
							</p>
						</td>
					</tr>
				</table>
			</div>
			<div id=DivTimeFrom>
				<select name=TimeFromStyle style="width:170px">
					<%=AllDateOption%>
				</select>
				<select name=TimeFromPrefix style="width:50px;">
					<option value=1>之前</option>
					<option value=2>之后</option>
				</select>
				<input TYPE="input" NAME=TimeFromOffset style="width:30px;" maxLength=3>
				<select name=TimeFromUnit style="width:50px;">
					<option value=2>个月</option>
					<option value=3 selected>日</option>
					<option value=4>小时</option>
					<option value=5>分钟</option>
				</select>
				<br>
			</div>
			<div id=DivTimeTo>
				<select name=TimeToStyle style="width:170px">
					<%=AllDateOption%>
				</select>
				<select name=TimeToPrefix style="width:50px;">
					<option value=1>之前</option>
					<option value=2>之后</option>
				</select>
				<input TYPE="input" NAME=TimeToOffset style="width:30px;" maxLength=3>
				<select name=TimeToUnit style="width:50px;">
					<option value=2>个月</option>
					<option value=3 selected>日</option>
					<option value=4>小时</option>
					<option value=5>分钟</option>
				</select>
				<br>
			</div>
			<div id=DivBirthTime>
				<select name=BirthTimeStyle style="width:170px">
					<%=AllDateOption%>
				</select>
				为生日
				<select name=BirthTimePrefix style="width:100px;">
					<option value=1>每逢生日之前</option>
					<option value=2>每逢生日之后</option>
				</select>
				<input TYPE="input" NAME=BirthTimeOffset style="width:30px;" maxLength=3>
				<select name=BirthTimeUnit style="width:50px;">
					<option value=2>个月</option>
					<option value=3 selected>日</option>
					<option value=4>小时</option>
					<option value=5>分钟</option>
				</select>
				<br>
			</div>
			<input TYPE="hidden" NAME="CurSettings" value="<%=CurSettings%>">
		</form>
	</body>                                                                                                           
</html>

⌨️ 快捷键说明

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