📄 class_confirm.asp
字号:
<%@ Language=VBScript %>
<!--#include file=globals.asp -->
<%
firstid=trim(request.form("firstid"))
secondid=trim(request.form("secondid"))
set rs = createobject("ADODB.recordset")
if firstid="" or secondid="" then
response.redirect "../error.asp?info=对不起,请填写完整!"
end if
if firstid=secondid then
response.redirect "../error.asp?info=对不起,两个班级本来就一样!"
end if
sql="select * from classinfo where classid='"&firstid&"'"
rs.open SQL,schooldb
if not rs.eof then
firstname=rs("classname")
firstschoolid=rs("schoolid")
else
response.redirect "../error.asp?info=对不起,合并后班级id不存在!"
end if
rs.close
sql="select * from classinfo where classid='"&secondid&"'"
rs.open SQL,schooldb
if not rs.eof then
secondname=rs("classname")
secondschoolid=rs("schoolid")
else
response.redirect "../error.asp?info=对不起,被合并班级id不存在!"
end if
rs.close
sql="select * from schoolinfo where schoolid='"&firstschoolid&"'"
rs.open SQL,schooldb
if not rs.eof then
firstschoolname=rs("schoolname")
end if
rs.close
sql="select * from schoolinfo where schoolid='"&secondschoolid&"'"
rs.open SQL,schooldb
if not rs.eof then
secondschoolname=rs("schoolname")
end if
rs.close
%>
<html>
<head>
<title>中国 创网-校友录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#DFDFDF">
<p> </p>
<table width="75%" border="0" align="center" height="50">
<tr>
<td width="50%">
<div align="center"><b>合并班级 </b></div>
</td>
</tr>
</table>
<p> </p>
<p> </p>
<form name="form1" method="post" action="class_action.asp">
<table width="75%" border="1" align="center" height="40%">
<tr>
<td width="50%" height="151">
<div align="center">合并后的班级名称:</div>
</td>
<td width="50%" height="151">
<div align="center">被合并的班级名称:</div>
</td>
</tr>
<tr>
<td width="50%" height="122">
<div align="center"> <%=firstschoolname%><%=firstname%> </div>
</td>
<td width="50%" height="122">
<div align="center"> <%=secondschoolname%><%=secondname%> </div>
</td>
</tr>
</table>
<table width="75%" border="1" align="center" height="60">
<tr>
<td>
<div align="center">
<input type="hidden" name="firstid" value="<%=firstid%>">
<input type="hidden" name="secondid" value="<%=secondid%>">
<input type="submit" name="Submit" value="您确定要合并这两个班级">
</div>
</td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -