⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updateteacher.asp

📁 在线教育系统包括答疑问题提问课程介绍可见下载等模块设计
💻 ASP
字号:
<%if session("login")="" or session("identity")<>"teacher" then
%>
<script language="javascript">
		      alert("姓名和密码不能为空!")
document.location="index.asp"
</script>
<%
end if
id=request.querystring("userid")
  Set conn = Server.CreateObject("ADODB.Connection")
	conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("CSTUDY.mdb")
	set rootrs= server.createobject("adodb.recordset") 
 mySQL = "SELECT * FROM teacher where IDname='"&session("login")&"'"
rootrs.Open mySQL,conn,1,1%>
<HTML>
<HEAD>
<TITLE><%=title%></TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link rel="stylesheet" type="text/css" href="css/index1.css">
<link rel="stylesheet" type="text/css" href="css/toolbar2.css">
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<base target="_self">
</HEAD>
<BODY background="image/A-bg.gif" leftMargin=0 topMargin=0>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=c width=95% height="109">
<tr>
<td height="20" width="169" valign="top" align="left">
</td>
<td height="23" width="440" valign="middle" align="center" rowspan="3">
<table width=371 border=0 cellspacing=0 cellpadding=0 height="30">
<tr bgcolor=#808080><td width=12 height=30 valign=top>
<img src=image/home01.gif width=7 height=7></td>
<td width=359 height="30">
<p align="center"><font color="#FFFF00">请填写注册项目(所有项目必须填写)</font></td>
</tr>
</table>
<table width=371 border=0 cellspacing=0 cellpadding=0 height="248">
<tr>
<td width=1 bgcolor=#ffcf5b height="260"></td>
<td height=260 valign="top" width="365">
<br>
<FORM action="mod_teacher.asp" method="post" name="adduser" onsubmit="return checkuser()">
<INPUT type=hidden name="yourid" size=20 value="<%=rootRs("ID")%>">
<table border="1" width="344" bgcolor=#E0E5F5 borderColorDark=#ffffff borderColorLight=#660066
cellPadding=5 cellSpacing=0 align="center" height="246">
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="23">
<font color="#0000FF">密码:</font> </td>
<td align="left" width="249" colspan="3" height="23">
<INPUT maxLength=15 name="passwdold" size=20 type=password class="td1" value="<%=rootRs("passwd")%>">
</td> </tr>
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="23">
<font color="#0000FF">重复密码:</font> </td>
<td align="left" width="249" colspan="3" height="23">
<INPUT name="pass2" size=20 type=password class="td1"> (再次输入密码)         
</td>
</tr>
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="23">
<font color="#0000FF">真实姓名:</font> </td>
<td align="left" width="249" colspan="3" height="23">
<INPUT maxLength=20 name="name" size=20 class="td1" value="<%=rootRs("name")%>"> (你的真实姓名)<FONTcolor=#ff0000></td>         
</tr>
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="23">
<font color="#0000FF">年龄:</font> </td>
<td align="left" width="59" height="23">
<INPUT maxLength=20 name="old" size=7 class="td1" value="<%=rootRs("age")%>">
</td>
<td align="left" width="52" height="23">
<font color="#0000FF">职称:</font>
</td>
<td align="left" width="114" height="23">
<INPUT maxLength=20 name="grade" size=11 class="td1" value="<%=rootRs("position")%>">
</td>
</tr>
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="23">
<font color="#0000FF">电子邮件:</font> </td>
<td align="left" width="249" colspan="3" height="23">
<INPUT maxLength=20 name="email" size=20 class="td1" value="<%=rootRs("email")%>">
</td>
</tr>
<tr>
<td align="left" bgcolor="#E0E5F5" width="69" height="79">
<font color="#0000FF">简介:</font> </td>
<td align="left" width="249" colspan="3" height="79">
<textarea rows="3" name="content" cols="31" class="td1"><%=rootRs("introduction")%></textarea>
</td>
</tr>
<tr>
<td width="330" align="center" colspan="4" bgcolor="#E0E5F5" height="1"> 
<INPUT name=Write type=submit value=" 更 新 ">
<INPUT name=Reset type=reset value=" 重 写 ">

</td>
</tr></form>
<form name="mainForm" enctype="multipart/form-data" action="addteacherpic.asp" method=post>
<tr>
<td width="330" align="center" colspan="4" bgcolor="#E0E5F5" height="1">
<font color="#0000FF">照片:</font><input type=file name=mefile class="td1" accept="image/gif">&nbsp;&nbsp;<input type=submit name=ok value="上传">
</td>
</tr></form>
</table>
</td>
<td width=1 bgcolor=#ffcf5b height="260"></td></tr>
<tr><td height=1 colspan=3 bgcolor=#ffcf5b width="367">
</td></tr>
</table>
</td>
<td height="50" width="242" valign="top" align="right" rowspan="3">
</td>
</tr>
</table>
</BODY>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -