📄 alterinf.jsp
字号:
<%-- Document : AlterInf Created on : 2008-5-9, 9:51:24 Author : Administrator--%><%@page contentType="text/html" pageEncoding="GBK"%><%@ page import="java.sql.*" %><%@ page errorPage="ErrorPage.jsp" %><jsp:useBean id="userinf" scope="session" class="Source.userInf" /><jsp:useBean id="jdbcBean" scope="session" class="Source.JDBCBean"/><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><% String Xpassword = ""; String userid = ""; String email = ""; String tel = ""; String title = ""; if (userinf.isHasLogin()) { String sql = ""; userid = userinf.getUserID(); title = userinf.getTitle(); sql = "select password,email,tel from student where userId=" + userid; ResultSet rs = jdbcBean.executeQuery(sql); rs.next(); Xpassword = rs.getString("password"); email = rs.getString("email"); tel = rs.getString("tel"); rs.close(); jdbcBean.close(); } else { response.sendRedirect("Login.jsp"); }%><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /> <title>Alter Information</title> <style type="text/css"> <!-- #main { background-color: #CCCCCC; width: 750px; margin-right: auto; margin-left: auto; padding-bottom: 30px; padding-top: 30px; } #main #title { background-position: center; background-color: #FFFFFF; width: 600px; margin-right: auto; margin-left: auto; vertical-align: text-top; text-align: center; padding-top: 20px; padding-bottom: 20px; } .STYLE3 { width: 600px; background-color: #666666; margin-right: auto; margin-left: auto; font-size: xx-large; font-weight: bold; color: #FFFFFF; } --> </style> </head> <body> <div id="main"> <div class="STYLE3" id="content">Alter Information</div> <div id="title"> <form action="AlterInfCon.jsp" method="get"> <table width="272" align="center"> <tr> <td width="92" align="right">新密码:</td> <td width="168"><label> <input type="text" name="Ypassword" id="Ypassword"> </label> </td> </tr> <tr> <td align="right">确认新密码:</td> <td><label> <input type="text" name="Y2password" id="Y2password"> </label> </td> </tr> <tr> <td align="right">E-mail:</td> <td><label> <input type="text" name="Email" id="Email" value=<%=email%>> </label> </td> </tr> <tr> <td align="right">电话:</td> <td><label> <input type="text" name="Tel" id="Tel" value=<%=tel%>> </label> </td> </tr> <tr> <td align="right"> </td> <td><label> <input type="submit" name="button" id="button" value="修改"> </label> </td> </tr> </table> </form> </div> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -