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

📄 userinfo_update.jsp

📁 JSP实现图书管理系统简单功能的具体设计与实现
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="sql2005_book.jsp"%>
<HTML> <HEAD>
<meta http-equiv="Content-Language" content="en-us">
<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>
<LINK rel="stylesheet" type="text/css" href="/style.css">
<style type="text/css">
<!--
.STYLE1 {
	font-size: xx-large;
	font-family: "微软雅黑";
	color: #999933;
}
.STYLE2 {color: #000000}
body {
	background-color: #FFFFCC;
}
-->
</style>
</head>
<body>
<%
request.setCharacterEncoding("gb2312");
String name = (String)session.getValue("Uname");
if(name == null){
%>
<jsp:forward page = "mainframe.htm"/>
<%}
String sql = "{call personal_info(?)}";
cstmt=conn.prepareCall(sql);
cstmt.setString(1,name);
rs = cstmt.executeQuery();
if(!rs.next())
out.println("<p align=center>错误用户,请登录.</p>");
else{
%>
<form method="post" name = "form1" action="execute_userinfo_update.jsp">
<table width="673" align=center>
  <tr>
    <td width="3"></td>
    <td width="658"><table bgcolor="#fffdec" border="0" cellpadding="0" cellspacing="0" width="663" height="724">
      <tbody>
        <tr valign="top">
          <td bgcolor="#FFCC66" height="639" width="13" rowspan="2"> </td>
          <td width="632" valign="middle"><div align="center"><span class="STYLE1">   资料更新</span>        <a href="zhuxiao.jsp">注销</a></div></td>
          <td bgcolor="#ffcc66" height="639" width="13" rowspan="2"> </td>
        </tr>
        <tr valign="top">
          <td height="660"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="right"  bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><b>用 户 名</b></font></td>
              <td  bgcolor="#FFFDEC" width="210" height="25" ><input type="text" disabled = "disabled" name="v_regname"  size="20" value=<%= new String(rs.getString(1))%>  >
                *</td>
              <td height="25" width="217"></td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>真实姓名</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" disabled = "disabled" name="v_name" size="20" value=<%= new String(rs.getString(2))%> readonly>
                *</td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>密码问题</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_question" size="20" value=<%= new String(rs.getString(3))%> ></td>
              <td width="217" height="25">例如:你最喜欢什么动物?</td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>密码答案</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_answer" size="20" value=<%= new String(rs.getString(4))%> ></td>
              <td width="217" height="25">答案:小猫</td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>身份证号</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" disabled = "disabled" name="v_id"  size="20" value=<%= new String(rs.getString(5))%> >
                *</td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>性别</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" disabled = "disabled" name="v_id"  size="20" value=<%= new String(rs.getString(6))%> >
                *</td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>出生日期</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" disabled = "disabled" name="v_birth" size="20" value=<%= new String(rs.getString(7))%>>
              *</td>
              <td height="25" width="217">格式:19880709(共8位)</td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>邮  编</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_zip" size="20" value=<%= new String(rs.getString(8))%>></td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>电子邮件</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_email" size="20" value=<%= new String(rs.getString(9))%> ></td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25" ><font color="#3F67A3"><B>电  话</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_telephone" size="20" value=<%= new String(rs.getString(10))%>></td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td align="right" bgcolor="#FFFDEC" width="215" height="25"><font color="#3F67A3"><B>备  注</B></font></td>
              <td bgcolor="#FFFDEC" width="210" height="25" ><input type="text" name="v_remark" size="20" value=<%= new String(rs.getString(11))%>></td>
              <td height="25" width="217"> </td>
            </tr>
            <tr valign="top">
              <td height="189" colspan="3" align="center" valign="middle"><div align="left">
                                
                    <input type="submit" value="确认修改" name="B1" class="b1" >
                     
                                         &nbsp; <br>
                <br>
                <br>
                <em>注:*为不能修改的内容</em></div></td>
            </tr>
          </table>          </tr>
      </tbody>
    </table></td>
  </tr>
</table>
</form>
<%}
rs.close();
cstmt.close();
conn.close();
%>
</BODY> 
</html>

⌨️ 快捷键说明

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