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

📄 edit.asp

📁 学生档案与成绩管理(1)学生档案管理:记录每个学生的档案信息
💻 ASP
字号:
<!-- #include file = "../../../include/asphead.asp" -->
<!-- #include file = "../../../include/function.asp" -->
<%CheckUser()%>
<link href="../../../include/main.css" rel="stylesheet" type="text/css">
<script src="../../../include/function.js" type="text/javascript"></script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--

function GoToRole()
{
	var discard;
	discard=true;
	if(HasChanged==true)
	{
		discard=confirm("您已经输入了一些信息,但尚未保存。放弃您所作的输入吗?");
	}
	if(discard==true)
	{
		document.frmData.target ="_self";
		document.frmData.action="role.asp?RowID=" + frmData.RowID.value ;
		document.frmData.submit();
	}
}

function GoToAdmin()
{
	var discard;
	discard=true;
	if(HasChanged==true)
	{
		discard=confirm("您已经输入了一些信息,但尚未保存。放弃您所作的输入吗?");
	}
	if(discard==true)
	{
		document.frmData.target ="_self";
		document.frmData.action="admin.asp?RowID=" + frmData.RowID.value ;
		document.frmData.submit();
	}
}

function GoToInfo()
{
	var discard;
	discard=true;
	if(HasChanged==true)
	{
		discard=confirm("您已经输入了一些信息,但尚未保存。放弃您所作的输入吗?");
	}
	if(discard==true)
	{
		document.frmData.target ="_self";
		document.frmData.action="info.asp?RowID=" + frmData.RowID.value ;
		document.frmData.submit();
	}
}

function LocalDC() 
{
	var PWD,PWDReEnter;
	PWD=document.frmData.PWD.value;
	PWDReEnter=document.frmData.PWDReEnter.value;
	PWD=PWD.toUpperCase();
	PWDReEnter=PWDReEnter.toUpperCase();
	if (PWD!=PWDReEnter)	//密码不区分大小写
	{
		alert("密码填写不一致,请重填。")
		return false;
	}
	else
		return true;
}

function CloseMe()
{
	parent.window.returnValue =false;
	parent.window.close();
}

function SavePrompt() 
{
	frmData.btnSave.disabled =true;
	frmData.btnCancel.disabled =true;
}

function EnableButton() 
{
	frmData.btnSave.disabled =false;
	frmData.btnCancel.disabled =false;
}

//-->
</script>
<%

	dim WExcel
	set WExcel=server.CreateObject("WExcel.System")
	
	dim RowID,NewRecord,strBody,strScript,Success
	RowID=Request.QueryString("RowID")
	NewRecord="0"
	dim Exist
	Exist=WExcel.UserExist(cint(UserID),clng(RowID))
	CheckErr
	if Exist=false then
		Response.Redirect "/hcgis/notfound.asp?Name=用户账号&Depth=2"
	end if
	dim ButtonOn
	ButtonOn=Request.Cookies("Temp")("ButtonOn")
	Success=WExcel.GetUserEditPage(cint(UserID),cstr(NewRecord),cstr(ButtonOn),strBody,strScript,clng(RowID))
	Response.Write strScript
	CheckErr
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</head>
	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<form METHOD="post" name="frmData">
			<table width="100%" border=0 CELLSPACING=0 CELLPADDING="0">
				<tr height="35">
					<td colspan=5>
						<table width="100%" border=0 CELLSPACING=0 CELLPADDING="0">
							<%if Request.Cookies("Temp")("ButtonOn")="system" then%>
								<tr>
									<td height=1 rowspan="3" valign="bottom" width="10%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>

									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/lefton.gif" width=11></td>
									<td height=1 valign="center" width="12%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/righton.gif" width=11></td>

									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/leftoff.gif" width=11></td>
									<td height=1 valign="center" width="21%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/rightoff.gif" width=11></td>

									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/leftoff.gif" width=11></td>
									<td height=1 valign="center" width="21%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/rightoff.gif" width=11></td>

									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/leftoff.gif" width=11></td>
									<td height=1 valign="center" width="15%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/rightoff.gif" width=11></td>

									<td height=1 rowspan="3" valign="bottom" width="15%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
								</tr>
								<tr>
									<td height=20 valign=bottom>修改</td>
									<td height=20 valign=bottom bgcolor="#E0E0E0" style="cursor:hand" onclick="return GoToRole();">数据表操作权限</td>
									<td height=20 valign=bottom bgcolor="#E0E0E0" style="cursor:hand" onclick="return GoToAdmin();">系统管理权限</td>
									<td height=20 valign=bottom bgcolor="#E0E0E0" style="cursor:hand" onclick="return GoToInfo();">相关数据</td>
								</tr>
								<tr>
									<td></td>
									<td height=1 rowspan="3" valign="bottom"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" valign="bottom"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" valign="bottom"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
								</tr>
							<%else%>
								<tr>
									<td height=1 rowspan="3" valign="bottom" width="10%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>

									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/lefton.gif" width=11></td>
									<td height=1 valign="center" width="18%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
									<td height=1 rowspan="3" width="1%"><IMG height=22 src="../../../images/righton.gif" width=11></td>

									<td height=1 rowspan="3" valign="bottom" width="50%"><IMG height=1 src="../../../images/promptline.gif" width="100%"></td>
								</tr>
								<tr>
									<td height=20 valign=bottom>修改您的帐号</td>
								</tr>
								<tr>
									<td></td>
								</tr>
							<%end if%>
						</table>
					</td>
				</tr>
				<tr height=175 valign="top">
					<td colspan=5>
						<table width="95%" border=0 CELLSPACING="1" CELLPADDING="0">
							<%=strBody%>
						</table>
					</td>
				</tr>
				<tr height=40 valign=bottom>
					<td colspan="5">
						<table width="100%">
							<tr>
								<td width="25%"></td>
								<td width="25%"><input id="btnSave" type="button" value="确定" name="btnSave" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Save('save.asp')"></td>
								<td width="25%"><input id="btnCancel" type="button" value="取消" name="btnCancel" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
								<td width="25%"></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<input TYPE="hidden" NAME="NewRecord" value="<%=NewRecord%>">
			<input TYPE="hidden" NAME="RowID" value="<%=RowID%>">
			<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
			</iframe>
		</form>
	</body>                                                                                                           
</html>

⌨️ 快捷键说明

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