📄 changeinf.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改用户信息|毕业设计选题系统</title>
<script language="jscript">
<!--
function Check()
{
var NotNull
NotNull=true
if (document.form1.textfield2.value=="")
{
window.alert("姓名不能为空")
NotNull=false
}
if (document.form1.textfield5.value=="")
{
window.alert("输入密码方可提交更改")
NotNull=false
}
return NotNull
}
//-->
</script>
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<BODY leftMargin=0 topMargin=0 marginwidth="0">
<!--#include file=../top.asp-->
<!--#include file=top.asp-->
<div align="center"><td><table width="768" border="0" bgcolor="#FFFFFF"><tr><td><div align="left">
<%
Dim conn
Set conn=Server.CreateObject("ADODB.RecordSet")
conn.ActiveConnection = "DSN=hw;User ID=sa"
conn.Source = "select * from dbo.teacher where tea_id='"&session("teacher")&"'"
conn.CursorType = 0
conn.LockType = 1
conn.Open()
%>
正在修改 <% Response.Write(conn("tea_name")) %> 的信息
<form id="form1" name="form1" method="post" action="changeinf2.asp" onSubmit="return Check()">
<label>编号:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" name="textfield1" type="text" value="<% Response.Write(session("teacher")) %>" readonly />
</label>
此项不能修改,如须修改,请联系管理员<br>
<label>姓名:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" name="textfield2" type="text" value="<% Response.Write(conn("tea_name")) %>" maxlength="4" />
</label>
* 输入姓名,四个汉字之内 <br>
<label>电话:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" name="textfield3" type="text" value="<% Response.Write(conn("tea_tel")) %>" maxlength="20" />
</label>
至多20个字符<br>
<label>邮件:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" name="textfield4" type="text" value="<% Response.Write(conn("tea_email")) %>" maxlength="20" />
</label>
至多20个字符<br>
<label>密码:
<input class="input_kuang" onmouseover="this.style.background='#D6DFF7';" onfocus="this.select(); " onmouseout="this.style.background='#FFFFFF'" name="textfield5" type="password" />
*
</label>
输入密码方可成功修改资料<br>
<label>
<input type="submit" name="Submit1" value="提交" />
</label>
<label>
<input type="reset" name="Submit2" value="重置" />
</label>
</form>
<p class="notetext">注:带 * 号的项目必须填写</p>
<%
conn.Close()
Set conn = Nothing
%>
</div></td></tr></table></td></div>
<!--#include file=botton.asp-->
<!--#include file=../botton.asp-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -