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

📄 importstep6.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 Pre() 
{
	DisableButton();
	if(OptionFieldCount.value>0)
		window.navigate("importstep5.asp")
	else
		window.navigate("importstep4.asp")
}

function Finish()
{
	if(LocalDC()==true)
	{
		WorkArea.Finish();
	}
}

function Cancel() 
{
	var discard;
	discard=confirm("放弃导入吗?");
	if(discard==true)
	{
		parent.window.returnValue = false;
		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;
}

function ClearPrompt() 
{
	Prompt.innerHTML=""
	btnNext.disabled =false;
}
//-->
</script>

<%

	dim WExcel
	set WExcel=server.CreateObject("WExcel.ImExport")

	dim SheetID,TableName
	SheetID=Request.Cookies("Temp")("SheetID")
	TableName="sheet" & SheetID

	dim OptionFieldCount,ImportStep
	if Request.Cookies("Temp")("ImportFor")="dictitem" then
		OptionFieldCount=0
	elseif Request.Cookies("Temp")("ImportFor")="useraccount" then
		OptionFieldCount=1
	else
		OptionFieldCount=WExcel.GetOptionFieldCount( cint(UserID),cstr(TableName))
	end if

	if OptionFieldCount>0 then
		ImportStep=6
	else
		ImportStep=5
	end if
	CheckErr
%>

<HTML>
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY onload="return ClearPrompt()">
	<table width="100%" border=0 cellPadding=0 cellSpacing=0>
		<tr height=35>
			<td>
				<b>第<%=ImportStep%>步:数据导入确认</b>
			</td>
		</tr>
		<tr height=190>
			<td>
				<iframe id="WorkArea" name="WorkArea" style="visibility:visible" width="100%" height="100%" frameborder="0" src="analyze.asp">
				</iframe>
			</td>
		</tr>
		<tr height=40>
			<td>
				<p id=Prompt>正在逐条检查数据的合法性,此过程需要花费一点时间,请稍候。</p>
			</td>
		</tr>
		<tr height=40 valign=bottom>
			<td>
				<table align=center width="50%">
					<tr>
						<td width="33%"><input id="btnCancel" type="button" value="取消" name="btnCancel" style="cursor:hand; WIDTH: 65px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
						<td width="33%"><input id="btnPre" type="button" 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 Finish()"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<input TYPE="hidden" NAME="OptionFieldCount" value="<%=OptionFieldCount%>">
</BODY>
</HTML>

⌨️ 快捷键说明

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