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

📄 view.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 GoToRecord(MsgID)
{
	document.frmData.target ="_self";
	document.frmData.action="view.asp?MsgID="+MsgID+JoinChar+frmData.MsgIDs.value;
	document.frmData.submit();
}
function ReplyMsg()
{
	document.frmData.target ="_self";
	document.frmData.action="edit.asp?Action=Reply&MsgID="+frmData.MsgID.value+"&ReadStatusChange="+frmData.ReadStatusChange.value;
	document.frmData.submit();
}
function ReplyAllMsg()
{
	document.frmData.target ="_self";
	document.frmData.action="edit.asp?Action=ReplyAll&MsgID="+frmData.MsgID.value+"&ReadStatusChange="+frmData.ReadStatusChange.value;
	document.frmData.submit();
}

function ForwardMsg()
{
	document.frmData.target ="_self";
	document.frmData.action="edit.asp?Action=Forward&MsgID="+frmData.MsgID.value+"&ReadStatusChange="+frmData.ReadStatusChange.value;
	document.frmData.submit();
}

function PrintThisPage()
{
	var curPageBody,PrintBody;
	curPageBody=window.document.body.innerHTML;
	PrintBody=RemoveNoPrint(curPageBody);
	window.document.body.innerHTML=PrintBody;
	window.print();
	window.document.body.innerHTML=curPageBody;
}

function Cancel()
{
	if (frmData.ReadStatusChange.value=="1")
		parent.window.returnValue =true;
	else
		parent.window.returnValue =false;

	parent.window.close();
}

//-->
</script>
<%

	dim WExcel
	set WExcel=server.CreateObject("WExcel.Sheet")
	
	dim i
	dim MsgID,Parts,MsgIDs,PreMsgID,NextMsgID
	MsgID=Request.QueryString("MsgID")	'从url传过来的参数形式是:MsgID JoinChar MsgIDs
	Parts=split(MsgID,JoinChar)
	MsgID=Parts(0)						'这里的MsgID就是MsgID,形式是S222,I78等,注意前面带有字母
	MsgIDs=""
	PreMsgID=""
	NextMsgID=""
	if(ubound(Parts)>=1) then 
		MsgIDs=Parts(1)
		PreMsgID=GetPreItemID(MsgID,MsgIDs)
		NextMsgID=GetNextItemID(MsgID,MsgIDs)
	end if

	dim strBody
	WExcel.GetMsgViewPage cint(UserID),MsgID,strBody,ReadStatusChange
	CheckErr
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</head>
	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<table width="100%" border=0 CELLSPACING=0 CELLPADDING="0">
			<tr height=35>
				<td width=20%></td>
				<td colspan=3><b>短信预览</b></td>
				<td width=20%>
					<!--NoPrintStart-->
					<p>
						<%if PreMsgID<>"" then%>
							<img src="../../images/previous.gif" alt="前一条短信" style="cursor:hand" onClick="GoToRecord('<%=PreMsgID%>')" width="18" height="15" border="0">
						<%else%>
							<img src="../../images/previous2.gif" alt="前一条短信" width="18" height="15" border="0">
						<%end if%>
						<%if NextMsgID<>"" then%>
							<img src="../../images/next.gif" alt="后一条短信" style="cursor:hand" onClick="GoToRecord('<%=NextMsgID%>')" width="18" height="15" border="0">
						<%else%>
							<img src="../../images/next2.gif" alt="后一条短信" width="18" height="15" border="0">
						<%end if%>
					</p>
					<!--NoPrintEnd-->
				</td>
			</tr>
			<tr height=210 valign="top">
				<td colspan=5>
					<%=strBody%>
				</td>
			</tr>
			<!--NoPrintStart-->
			<tr height=45 valign=center>
				<td colspan=5>
					<input id="btnCancel" type="button" value="关闭" name="btnCancel" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()">
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnPrint" type="button" value="打印" name="btnPrint" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return PrintThisPage()">&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnReply" type="button" value="答复发信人" name="btnReply" style="cursor:hand; WIDTH: 85px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return ReplyMsg()">&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnReply" type="button" value="答复所有人" name="btnReplyAll" style="cursor:hand; WIDTH: 85px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return ReplyAllMsg()">&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnForward" type="button" value="转发" name="btnForward" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return ForwardMsg()">&nbsp;
				</td>
			</tr>
			<!--NoPrintEnd-->
			<form METHOD="post" name="frmData">
				<input TYPE="hidden" NAME="MsgID" value="<%=MsgID%>">
				<input TYPE="hidden" NAME="MsgIDs" value="<%=MsgIDs%>">
				<input TYPE="hidden" NAME="ReadStatusChange" value="<%=ReadStatusChange%>">
			</form>
		</table>
	</body>                                                                                                           
</html>

⌨️ 快捷键说明

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