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

📄 downtable.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 LocalDC()
{
	return true;
}

function Close() 
{
	var discard;
	discard=confirm("已下载并关闭吗?");
	if(discard==true)
	{
		parent.window.returnValue = "";
		parent.window.close();
	}
}

//-->
</script>
<%
	dim TableFile
	TableFile=Request.Cookies("Temp")("TableFile") 
	if trim(TableFile)<>"" then
		'导出时使用的是 window.open("download.asp")的形式,IE存在Bug,容易造成
		'登录信息Cookie的丢失,结果转向了登录页面。采用参数的形式将必要的信息传递过来,
		'包括:CoID,UserID,Logined,TokenKey。
		dim LoginInfo
		LoginInfo="CoID=" & Request.Cookies("Login")("CoID")
		LoginInfo=LoginInfo & "&UserID=" & Request.Cookies("Login")("UserID")
		LoginInfo=LoginInfo & "&Logined=" & Request.Cookies("Login")("Logined")
		LoginInfo=LoginInfo & "&TokenKey=" & Request.Cookies("Login")("TokenKey")
        LoginInfo=LoginInfo & "&myType=1&FileName=" & server.URLEncode(Trim(TableFile))
	end if
%>
<HTML>
<HEAD>
	<title><%=AppTitle%></title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY>
	<table width="100%" border=0 cellPadding=0 cellSpacing=0>
		<tr height=35>
			<td>
				<b>下载表单</b>
			</td>
		</tr>
		<tr height=30 valign=center>
			<td><p align=center>数据已填入您选定的模板文件,可以下载使用。</p></td>
		</tr>
		<tr height=40>
			<td>
				<%if trim(TableFile)<>"" then%>
					<%=TableFile%>&nbsp;&nbsp;&nbsp;
					<a href=# onClick="window.open('/hcgis/download.asp?<%=LoginInfo%>','export')">立即下载</a>
				<%else%>
					生成表单失败。
				<%end if%>
			</td>
		</tr>
		<tr height=40 valign=bottom>
			<td colspan=6>
				<table align=center width="50%">
					<tr>
						<td width="33%"><input id="btnClose" type="button" value="关闭" name="btnClose" style="cursor:hand; WIDTH: 65px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Close()"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</BODY>
</HTML>

⌨️ 快捷键说明

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