📄 class_updata.asp
字号:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="session_0.asp" -->
<!--#include file="Connections/conn1.asp" -->
<%
var rs__classid1 = "0";
if (String(Request("classid")) != "undefined" &&
String(Request("classid")) != "") {
rs__classid1 = String(Request("classid"));
}
%>
<%
var rs = Server.CreateObject("ADODB.Recordset");
rs.ActiveConnection = MM_conn1_STRING;
rs.Source = "SELECT adminname, adminpsd, truename, classname FROM admin, class WHERE admin.classid = class.classid AND class.classid="+ rs__classid1.replace(/'/g, "''") + "";
rs.CursorType = 0;
rs.CursorLocation = 2;
rs.LockType = 1;
rs.Open();
var rs_numRows = 0;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>福州大学数学与计算机科学学院综合测评分管理系统</title>
<style type="text/css">
<!--
body {
background-image: url(imag/bjx.jpg);
}
.style18 {
font-style: italic;
font-size: 14px;
color: #FFFF66;
}
.style19 {color: #333333}
.style28 {font-size: 12px}
.style43 {font-size: 12px; color: #666666; }
.style46 {
color: #000000;
font-size: 14px;
}
.style47 {color: #99FFCC}
.style48 {color: #FFCC33}
-->
</style></head>
<body>
<script language="javascript">
function chk()
{
if(document.form.classname.value=="")
{alert("请输入班级名称");return false;}
if(document.form.adminname.value=="")
{alert("请输入管理员帐号");return false;}
if(document.form.adminpsd.value=="")
{alert("请输入管理员密码");return false;}
if(document.form.truename.value=="")
{alert("请输入管理员姓名");return false;}
return true;
}
</script>
<table width="700" height="508" border="0" align="center" cellpadding="0" cellspacing="0" >
<!--DWLayoutTable-->
<tr>
<td width="89" height="13"></td>
<td width="713"><div align="center"><img src="imag/Top_logo.jpg" width="576" height="89"></div></td>
<td width="48"></td>
</tr>
<tr>
<td height="406"></td>
<td valign="top"><table width="570" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="850" height="395"><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="37" scope="col"> </th>
<th width="626" height="358" scope="col">
<form action="class_updata_x.asp" method="post" name="form" target="_self" id="form" onSubmit="return chk()">
<table width="378" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#33CCFF">
<th colspan="3" scope="col"> <div align="center" class="style46 style28 style48"><em>修改班级及该班的管理员</em></div></th>
</tr>
<tr bgcolor="#CCFF66">
<th width="80" bgcolor="#33CCFF" scope="col"><span class="style43">班级 名称:</span></th>
<th width="217" bgcolor="#CCCCCC" scope="col"><div align="left"><span class="style28">
<input name="classname" type="text" id="classname" value="<%=Server.HTMLEncode(rs.Fields.Item("classname").Value)%>" size="30">
</span></div></th>
<th width="81" bgcolor="#99FFCC" scope="col"> </th>
</tr>
<tr bgcolor="#FF9900">
<th bgcolor="#33CCFF" scope="row"> </th>
<th bgcolor="#CCCCCC" scope="row"><div align="left"></div></th>
<th bgcolor="#99FFCC" scope="row"> </th>
</tr>
<tr bgcolor="#CCFF66">
<th height="14" bgcolor="#33CCFF" scope="row"><span class="style43">管理员帐号:</span></th>
<td bgcolor="#CCCCCC"><div align="left"><span class="style28">
<input name="adminname" type="text" id="adminname" value="<%=(rs.Fields.Item("adminname").Value)%>" size="30">
</span></div></td>
<td bgcolor="#99FFCC"> </td>
</tr>
<tr bgcolor="#FF9900">
<th bgcolor="#33CCFF" scope="row"> </th>
<th bgcolor="#CCCCCC" scope="row"><div align="left"></div></th>
<th bgcolor="#99FFCC" scope="row"> </th>
</tr>
<tr bgcolor="#CCFF66">
<th bgcolor="#33CCFF" scope="row"><span class="style43">管理员密码:</span></th>
<td bgcolor="#CCCCCC"><div align="left"><span class="style28">
<input name="adminpsd" type="text" id="adminpsd" value="<%=(rs.Fields.Item("adminpsd").Value)%>" size="30">
</span></div></td>
<td bgcolor="#99FFCC"> </td>
</tr>
<tr bgcolor="#FF9900">
<th bgcolor="#33CCFF" scope="row"> </th>
<th bgcolor="#CCCCCC" scope="row"><div align="left"></div></th>
<th bgcolor="#99FFCC" scope="row"> </th>
</tr>
<tr bgcolor="#CCFF66">
<th bgcolor="#33CCFF" scope="row"><span class="style43">管理员姓名:</span></th>
<td bgcolor="#CCCCCC"><div align="left"><span class="style28"><input name="truename" type="text" id="truename" value="<%=Server.HTMLEncode(rs.Fields.Item("truename").Value)%>" size="30">
</span></div></td>
<td bgcolor="#99FFCC"> </td>
</tr>
<tr bgcolor="#99FFCC">
<th colspan="3" scope="row"><span class="style28">
<input name="提交" type="submit" value="提交">
<span class="style47"> ___</span>
<input name="重置" type="reset" value="重置">
</span></th>
</tr>
</table><input name="classid" type="hidden" id="classid" value="<%=Request("classid")%>">
</form></th>
<th width="37" scope="col"> </th>
</tr>
</table>
<table width="570" height="48" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="48" scope="col"> </th>
</tr>
</table></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="13"></td>
<td><!--DWLayoutEmptyCell--> </td>
<td></td>
</tr>
</table>
</body>
</html>
<%
rs.Close();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -