📄 teacher_modify2_1.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>教工资料修改系统</title>
<STYLE type=text/css>
TD,p,b,font,pre,BODY {
FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif", "宋体"; FONT-SIZE: 12px
}
FORM {
FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif", "宋体"; FONT-SIZE: 12px; MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
A {
FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif", "宋体"; FONT-SIZE: 12px; TEXT-DECORATION: none
}
H4 {
FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif", "宋体"; FONT-SIZE: 14px
}
HR {
COLOR: #000000; HEIGHT: 1px
}
</STYLE>
</head>
<body>
<%
function change (s)
change = replace(replace(s,"'","''"),"""","""""")
end function
%>
<%
set confirmpasswd= server.createobject("adodb.connection")
confirmpasswd.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("./math_department.mdb")
set rpasswd = confirmpasswd.execute("select password1 from admin where name='" & request("name") & "'")
if rpasswd.eof then
response.write "<p align=""center""><font size=6 color=#FF0000> 你没有账号!无管理员权限! </font></p> "
response.write "<input type='button' value='返回' onclick=history.back()>"
response.end
end if
if replace(rpasswd.fields("password1")," ","") <> request("password") then
response.write "<p align=""center""><font size=6 color=#FF0000> 密码不正确! </font></p> "
response.write "<input type='button' value='重试' onclick=history.back()>"
response.end
end if
set conn = server.createobject("adodb.connection")
conn.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("./math_department.mdb")
set rs=server.createobject("adodb.recordset")
rs.open "select * from base_inf where 姓名='" & request("t1_name") & "'" ,conn
%>
<form method="POST" action="teacher_modify3_1.asp" >
<table width="584" border="0" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" height="682" bgcolor="#F5A781">
<tr>
<td colspan="2" height="32" width="558" bordercolorlight="#FD6868" bordercolordark="#FF3333" valign="top">
<table border="1" width="104%" cellpadding="0" cellspacing="0" height="27" bordercolorlight="#F5A781" bordercolordark="#F3BC9E">
<tr>
<td width="100%" height="27"><b><font size="2">数学系站点人事管理系统</font></b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="24" width="558">
</td>
</tr>
<tr>
<td colspan="2" height="24" width="558">
<div align="center"><b><font size="4" color="#FFFFFF">教 工 基 本 资 料
修 改 表 </font></b></div>
</td>
</tr>
<tr>
<td colspan="2" height="21" width="558">
<div align="left"><font color="#FFCC33"> </font></div>
</td>
</tr>
<tr>
<td width="169" height="29" align="right"> 工作证号:</td>
<td width="411" height="29">
<input type="text" name="t1_workcard" size="14" value="<%=rs.fields("工作证号")%>">
</td>
</tr>
<tr>
<td width="169" height="29" align="right"> 姓名:</td>
<td width="411" height="29">
<input type="text" name="t1_name" size="9" value="<%=rs.fields("姓名")%>"> </td>
</tr>
<tr>
<td width="169" height="29" align="right"> 密码:</td>
<td width="411" height="29">
<input type="password" name="t1_psw1" size="20" value="<%=rs.fields("密码")%>">
</td>
</tr>
<tr>
<td width="169" height="29" align="right"> 确认密码:</td>
<td width="411" height="29">
<input type="password" name="t1_psw2" size="20" value="<%=rs.fields("确认密码")%>">
</td>
</tr>
<tr>
<td width="169" height="29" align="right"> 性别:</td>
<td width="411" height="29">
<select size="1" name="t1_sex">
<option <%
if "男"=rs.fields("性别") then
response.write "selected"
end if
%>>男</option>
<option <%
if "女"=rs.fields("性别") then
response.write "selected"
end if
%>>女</option>
</select> </td>
</tr>
<tr>
<td width="169" height="29" align="right">民族:</td>
<td width="411" height="29">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -