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

📄 exportstep2.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 Init() 
{
	Prompt.innerHTML="";
	EnableButton();
}

function LocalDC()
{
	return WorkArea.LocalDC();
}

function Pre() 
{
	DisableButton();
	window.navigate("exportstep1.asp")
}

function Next()
{
	if(LocalDC()==true)
	{
		var ExportCount;
		if(ExportRange.value==0)
			ExportCount=PageRows.value.split(",").length;
		else if(ExportRange.value==1)
			ExportCount=CurSelectedRows.value.split(",").length;
		else if(ExportRange.value==2)
			ExportCount=TotalCount.value;

		if(confirm("您确定要导出这" + ExportCount + "条记录吗?")==true)
		{
			Prompt.innerHTML="正在导出数据,此过程需要花费一点时间,请稍候。"
			WorkArea.Next();
		}
	}
}

function Cancel() 
{
	var discard;
	discard=confirm("放弃导出吗?");
	if(discard==true)
	{
		parent.window.returnValue = "";
		parent.window.close();
	}
}

function DisableButton() 
{
	btnCancel.disabled =true;
	btnPre.disabled =true;
	btnNext.disabled =true;
}

function EnableButton() 
{
	btnCancel.disabled =false;
	btnPre.disabled =false;
	btnNext.disabled =false;
}
//-->
</script>
<%
	if Request.Form("ExportRange")<>"" then
		'从上一步来,需要读取保存导出格式、导出范围
		dim ExportRange,ExportFormat,SheetTableID,ExportHistory,ExportRefDetail
		ExportRange=Request.Form("ExportRange")
		ExportFormat=Request.Form("ExportFormat")
		SheetTableID=Request.Form("SheetTableID")
		ExportHistory=Request.Form("chkExportHistory")
		ExportRefDetail=Request.Form("chkExportRefDetail")
		if trim(lcase(ExportHistory))="on" then
			ExportHistory="1"
		else
			ExportHistory="0"
		end if
		if trim(lcase(ExportRefDetail))="on" then
			ExportRefDetail="1"
		else
			ExportRefDetail="0"
		end if
		Response.Cookies("ImExport")("ExportRange")=ExportRange
		Response.Cookies("ImExport")("ExportFormat")=ExportFormat
		Response.Cookies("ImExport")("SheetTableID")=SheetTableID
		Response.Cookies("ImExport")("ExportHistory")=ExportHistory
		Response.Cookies("ImExport")("ExportRefDetail")=ExportRefDetail
		Response.Cookies("ImExport").Expires = CookieLife
	end if
%>
<HTML>
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY LANGUAGE=javascript onload="return Init()">
	<table width="100%" border=0 cellPadding=0 cellSpacing=0>
		<tr height=35>
			<td>
<%if ExportFormat=3 then%>
				<b>第2步:选择模板中需填入的字段</b>
<%else%>
				<b>第2步:选择导出字段</b>
<%end if%>
			</td>
		</tr>
		<tr height=224>
			<td>
				<iframe id="WorkArea" name="WorkArea" style="visibility:visible" width="100%" height="100%" frameborder="0" src="fieldselect.asp">
				</iframe>
			</td>
		</tr>
		<tr height=28>
			<td>
<%if ExportFormat=3 then%>
				<p id=Prompt>正在分析模板中的活动字段,此过程需要花费一点时间,请稍候。</p>
<%else%>
				<p id=Prompt></p>
<%end if%>
			</td>
		</tr>
		<tr height=30 valign=bottom>
			<td>
				<table align=center width="50%">
					<tr>
						<td width="33%"><input id="btnCancel" type="button" disabled value="取消" name="btnCancel" style="cursor:hand; WIDTH: 65px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
						<td width="33%"><input id="btnPre" type="button" disabled value="上一步" name="btnPre" style="cursor:hand; WIDTH: 65px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Pre()"></td>
						<td width="33%"><input id="btnNext" type="button" disabled value="导出" name="btnNext" style="cursor:hand; WIDTH: 65px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Next()"></td>
					</tr>
				</table>
			</td>
		</tr>
		<input TYPE="hidden" NAME="ExportRange" value="<%=ExportRange%>">
		<input TYPE="hidden" NAME="CurSelectedRows" value="<%=Request.Cookies("ImExport")("CurSelectedRows")%>">
		<input TYPE="hidden" NAME="PageRows" value="<%=Request.Cookies("ImExport")("PageRows")%>">
		<input TYPE="hidden" NAME="TotalCount" value="<%=Request.Cookies("ImExport")("TotalCount")%>">
	</table>
</BODY>
</HTML>

⌨️ 快捷键说明

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