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

📄 sheetmenu.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 ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function GoToAnother(SheetID) {
	parent.navigate ("mainframe.asp?SheetID="+SheetID)
}

function NavigateSheet() 
{
	var Index,SheetID;
	Index=ComboSheet.selectedIndex;
	SheetID=ComboSheet[Index].value;
	GoToAnother(SheetID);
}

//-->
</script>
<%
	dim WExcel
	set WExcel=server.CreateObject("WExcel.Sheet")

	dim SheetID
	if Request.Cookies("Report")("SheetID")<>"" then
		SheetID=cint(Request.Cookies("Report")("SheetID"))
	else
		SheetID=0
	end if

	dim FirstIndex,ScreenWidth
	FirstIndex=Request.Cookies("Temp")("FirstInReport")
	if FirstIndex="" then
		FirstIndex=1
	end if	
	ScreenWidth=Request.Cookies("Temp")("ScreenWidth")

	dim SheetCount,ID,Caption,Desc,SheetWidth,Navigate
	WExcel.GetSheetListInReport cint(UserID),cint(SheetID),cint(ScreenWidth),FirstIndex,SheetCount,ID,Caption,Desc,SheetWidth,Navigate
	Response.Cookies("Temp")("FirstInReport")=FirstIndex
	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>
				<td>
					<table width="100%" border=0 CELLSPACING="0" CELLPADDING="0">
						<tr>
							<td height=1 rowspan="3" width="30%" valign="bottom"><IMG height=1 src="../images/promptline.gif" width="100%"></td>
							<%
								dim i
								for i=1 to SheetCount
									if SheetID=ID(i-1) then
							%>
										<td height=1 rowspan="3"><IMG height=22 src="../images/lefton.gif" width=11></td>
										<td height=1 valign="center"><IMG height=1 src="../images/promptline.gif" width=<%=SheetWidth(i-1)%>></td>
										<td height=1 rowspan="3"><IMG height=22 src="../images/righton.gif" width=11></td>
							<%
									else
							%>
										<td height=1 rowspan="3"><IMG height=22 src="../images/leftoff.gif" width=11></td>
										<td height=1 valign="center"><IMG height=1 src="../images/promptline.gif" width=<%=SheetWidth(i-1)%>></td>
										<td height=1 rowspan="3"><IMG height=22 src="../images/rightoff.gif" width=11></td>
							<%
									end if
								next
							%>
							<td height=1 rowspan="3" width="70%" valign="bottom"><IMG height=1 src="../images/promptline.gif" width="100%"></td>
						</tr>
						<tr>
							<%
								for i=1 to SheetCount
									if SheetID=ID(i-1) then
							%>
										<td height=20 valign=bottom><%=Caption(i-1)%></td>
							<%
									else
							%>
										<td height=20 valign=bottom bgcolor="#E0E0E0" style="cursor:hand" onclick="return GoToAnother(<%=ID(i-1)%>)"><%=Caption(i-1)%></td>
							<%
									end if
								next
							%>
						</tr>
						<tr>
							<%
								for i=1 to SheetCount
									if SheetID=ID(i-1) then
							%>
										<td></td>
							<%
									else
							%>
										<td height=1 valign="bottom"><IMG height=1 src="../images/promptline.gif" width=<%=SheetWidth(i-1)%>></td>
							<%
									end if
								next
							%>
						</tr>
					</table>
				</td>
				<%if Navigate<>"" then%>
					<td width=80>
						<table width=100% border=0 CELLSPACING="0" CELLPADDING="0">
							<tr>
								<td width=100%>
									<%=Navigate%>
								</td>
							</tr>
							<tr>
								<td height=1 valign="bottom"><IMG height=1 src="../images/promptline.gif" width=100%></td>
							</tr>
						</table>
					</td>
				<%end if%>
			</tr>
		</table>
	</body>                                                                                                           
</html>

⌨️ 快捷键说明

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