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

📄 modify.jsp~8~

📁 教学管理系统的JAVA实现代码
💻 JSP~8~
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="base.db.Conn"%>
<%@ page import="base.page.Show"%>
<%@ page import="java.sql.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="../js/default.js"></script>
</head>
<body>
<%
Conn con=new Conn();
Show show=new Show();
String strChecked="checked";
String strname=(String)session.getAttribute("id");
ResultSet rs=con.getRs("SELECT * FROM teacher WHERE id="+strname+";");
        if(rs.next()){
%>
<table width="100%" height="500"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="20">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="top"> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F5f7f7">
        <form name="form" method="post" action="modifyaction.jsp">
          <tr align="center" bgcolor="#21536A">
            <td height="27" colspan="2"><font color="#FFFF33">修改密码</font></td>
          </tr>
          <tr>
            <td width="200" height="22" align="center">姓名:</td>
            <td width="300"><%=rs.getString("name")%></td>
          </tr>
          <tr>
            <td width="200" height="22" align="center">号码:</td>
            <td width="300"><%=rs.getString("id")%></td>
          </tr>

		  <tr>
            <td height="22" align="center">新密码:</td>
            <td><input type="password" name="password"></td>
          </tr>
          <tr>
            <td height="22" align="center">密码确认:</td>
            <td><input type="password" name="rpassword"></td>
          </tr>
         <tr align="center">
            <td height="35" colspan="2"><input type="submit" name="Submit" value="修改" onClick="return reg()">
&nbsp;&nbsp;
              <input type="reset" name="Reset" value="重置"></td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
<%
        }else{
            out.print(show.errorBox("数据库错误,请重新登录!","错误信息"));
        }
%>
</body>
</html>

⌨️ 快捷键说明

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