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

📄 laoshiedit.asp

📁 这是一个在线考试系统 有比较强大的功能 是很不错的东西哦 大家可以看看哦
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../check.asp"-->
<!--#include file="../md5.asp"-->
 <%
 dim tid,sql,theACT,yonghu,jieshao,mima1,rs,temp,mima2,mima3
call LinkData()
 Set rs = Server.CreateObject("ADODB.RecordSet")
tid=request("tid")
sql="select * from teacher where tid="&tid
rs.open sql,conn,1,1

yonghu=rs("yonghu")
laoshi=rs("laoshi")
jieshao=rs("jieshao")
tid=rs("tid")
mima1=rs("mima")
rs.close
  %>
  
  <%
  theACT=request("theACT")
  if theACT="SAVE" then 
  
yonghu=request("yonghu")
laoshi=request("laoshi")	
jieshao=request("jieshao")
mima2=Trim(request("mima"))
If mima2=mima1 Then
mima3=mima1
Else
mima3=md5(mima2)
End if

	 sql="select * from teacher where tid="&tid
	 rs.open sql,conn,1,3
	 rs("yonghu")=yonghu
	 rs("laoshi")=laoshi
	 rs("jieshao")=jieshao
	 rs("mima")=mima3
	 rs.update
	 rs.close
	 temp="laoshi.asp"
	 response.Redirect (temp)
	
	 end if
  %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>教师修改</title>
<link href="../teacher.css" rel="stylesheet" type="text/css">
</head>

<body>

<form method="post" action="laoshiedit.asp" name="createForm">
<input type="hidden" name="tid"  value="<%=tid%>">
<table border="0" width="90%" cellspacing="2" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" align="center">教师修改</td>
    </tr>
    <tr> 
      <td width="65" >用户名</td>
      <td width="421"> 
        <input name="yonghu" type="text" id="yonghu" value="<%=yonghu%>" size="40">
      </td>
    </tr>
    <tr>
      <td>姓名</td>
      <td><input name="laoshi" type="text" id="laoshi" value="<%=laoshi%>" size="40"></td>
    </tr>
    <tr>
      <td>性别简介</td>
      <td><textarea name="jieshao" cols="100" rows="8" id="jieshao"><%=jieshao%></textarea></td>
    </tr>
    <tr> 
      <td>密码</td>
      <td><input name="mima" type="text" id="mima" value="<%=mima1%>" size="40" maxlength="33">      </td>
    </tr>
    <tr>
      <td colspan="2" align="center">(显示的是加密后的密码,如果没有修改教师密码,保持不变即可)</td>
    </tr>
    <tr> 
      <td colspan="2" align="center"> 
        <input type="submit" value="提交">
        <input type="reset" value="重写">
        <input name="theACT" type="hidden" id="theACT" value="SAVE">
      </td>
    </tr>
  </table>
</form>

</body>
</html>
<%
call CloseData()
'call Timenum()
%>

⌨️ 快捷键说明

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