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

📄 newref.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 Close() 
{
	parent.window.close();
}

//-->
</script>


<%

	dim WExcel
	set WExcel=server.CreateObject("WExcel.System")
	
	dim NewRecord,strBody,strScript,Success
	NewRecord="1"
	SheetID=Request.Cookies("System")("StructureSheetID")
	dim Exist
	Exist=WExcel.SheetExist(cint(UserID),cint(SheetID))
	CheckErr
	if Exist=false then
		Response.Redirect "/hcgis/notfound.asp?Name=数据表&Depth=2"
	end if
	Exist=WExcel.HasRelatedSheet(cint(UserID),cint(SheetID))
	if Exist<>"1" then
%>
	<html>
		<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
			<table width="60%" align=center border=0>
				<tr height="100">
					<td>
						无法建立引用字段,当前数据表未与任何表建立关联。请首先建立表间关系,然后再引用关联表的字段。
					</td>
				</tr>
				<tr height=40 valign=bottom>
					<td width="25%"><input id="btnClose" type="button" value="关闭" name="btnClose" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Close()"></td>
				</tr>
			</table>
		</body>                                                                                                           
	</html>
<%
	else
		Success=WExcel.GetRefFieldEditPage(cint(UserID),cint(SheetID),cstr(NewRecord),strBody,strScript)
		CheckErr
		Response.Write strScript
%>

	<html>
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		</head>
		<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" LANGUAGE=javascript onload="return Init()">
			<form METHOD="post" name="frmData">
				<table width="100%" align=center border=0>
					<tr height="35">
						<td colspan=5>
							<b>
								新增表间引用字段
							</b>
						</td>
					</tr>
					<tr height=150 valign="top">
						<td colspan=5>
							<table width="95%" border=0 CELLSPACING="1" CELLPADDING="0">
								<%=strBody%>
							</table>
						</td>
					</tr>
					<tr height=30 valign=top>
						<td colspan="5">
							<table width="100%">
								<tr>
									<td width="25%"></td>
									<td width="25%"><input id="btnSave" type="button" disabled value="确定" name="btnSave" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Save('saveref.asp')"></td>
									<td width="25%"><input id="btnCancel" type="button" disabled value="取消" name="btnCancel" style="cursor:hand; WIDTH: 50px; HEIGHT: 24px" LANGUAGE="javascript" onclick="return Cancel()"></td>
									<td width="25%"></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<input TYPE="hidden" NAME="NewRecord" value="<%=NewRecord%>">
				<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
				</iframe>
			</form>
		</body>                                                                                                           
	</html>

<%	end if%>

⌨️ 快捷键说明

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