📄 myclass_user_updata.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="session_1.asp" -->
<!--#include file="Connections/conn1.asp" -->
<%
var rs__userid1 = "0";
if (String(Request("userid")) != "undefined" &&
String(Request("userid")) != "") {
rs__userid1 = String(Request("userid"));
}
%>
<%
var rs = Server.CreateObject("ADODB.Recordset");
rs.ActiveConnection = MM_conn1_STRING;
rs.Source = "SELECT userno, username FROM user WHERE userid="+ rs__userid1.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: #666666}
.style30 {font-size: 12px}
-->
</style></head>
<body>
<script language="javascript">
function chk()
{
if(document.form.username.value=="")
{alert("请输入姓名");return false;}
if(document.form.userno.value=="")
{alert("请输入学号");return false;}
if(document.form.userno.value.length!==9)
{alert("学号位数不正确!标准学号为9位 如:030300169");return false;}
return true;
}
</script>
<table width="700" height="514" 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="618" height="106"></div></td>
<td width="48"></td>
</tr>
<tr>
<td height="395"></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="user_updata.asp" method="get" name="form" target="_self" id="form" onSubmit="return chk()">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#66FF99">
<th width="92" scope="col"><div align="center" class="style30">姓名</div></th>
<th width="146" scope="col"><div align="center" class="style30">
<input name="username" type="text" id="username" value="<%=Server.HTMLEncode(rs.Fields.Item("username").Value)%>" size="20">
</div></th>
<th width="87" scope="col"><div align="center" class="style30">学号</div></th>
<th width="151" scope="col"><div align="center" class="style30">
<input name="userno" type="text" id="userno2" value="<%=Server.HTMLEncode(rs.Fields.Item("userno").Value)%>" size="20">
</div></th>
<th width="60" scope="col"><div align="center" class="style30">
<input name="提交" type="submit" value="提交">
</div></th>
<th width="64" scope="col"><div align="center" class="style30">
<input name="重置" type="reset" value="重置">
</div></th>
</tr>
</table><input name="userid" type="hidden" id="userid" value="<%=Request("userid")%>">
<input name="userno11" type="hidden" id="userno11" value="<%=Server.HTMLEncode(rs.Fields.Item("userno").Value)%>">
</form></th>
<th width="37" scope="col"> </th>
</tr>
</table>
</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="13"></td>
<td ><div align="center" class="style18">
<p class="style19 style30"> </p>
</div></td>
<td></td>
</tr>
</table>
</body>
</html>
<%
rs.Close();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -