📄 myaccount.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/defaultpage.css" type="text/css">
<title>用户信息</title>
<script type="text/javascript">
<!--
//提交注册函数
function modsubmit(){
//组成生日
document.all.regform.birthday.value=document.all.regform.year.value + "-"
+ document.all.regform.month.value + "-"
+ document.all.regform.day.value;
//提交
document.all.regform.submit();
}
//登陆
function loginsub(){
if(document.all.loginform.lloginName.value == ""){
alert('请输入登陆账号!');
document.all.loginform.lloginName.focus();
return false;
}
if(document.all.loginform.lpassword.value == ""){
alert('请输入密码!');
document.all.loginform.lpassword.focus();
return false;
}
document.all.loginform.pagename.value="/main";
document.all.loginform.action="loginsub.do";
document.all.loginform.submit();
}
//退出
function logoutsub(){
document.all.loginform.pagename.value="/main";
document.all.loginform.action="logout.do";
document.all.loginform.submit();
}
//去注册页面
function registersub(){
document.all.loginform.pagename.value="/register";
document.all.loginform.action="register.do";
document.all.loginform.submit();
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="4" bgcolor="#e6e6ff">
<div align="center">
<!-- 包括页面上端 -->
<jsp:include flush="true" page="top.jsp?top=1"/>
<!-- 首页菜单 -->
<jsp:include flush="true" page="main_menu.jsp"/>
<table border="0" cellPadding="0" cellSpacing="0" width="740"
height="25" valign="top" background="images/m_local_bk.jpg">
<tr>
<td width="20"></td>
<td><font class="font12">当前位置:<html:link forward="/main">系统首页</html:link>/用户信息</font></td>
</tr>
</table>
<table border="0" cellPadding="0" cellSpacing="0" width="740" height="5">
<tr>
<td></td>
</tr>
</table>
<table border="0" cellPadding="0" cellSpacing="0" width="740"
valign="top">
<tr>
<td width="180" valign="top">
<table border="0" width="180" cellPadding="0" cellSpacing="0"
valign="top">
<tr height="5">
<td></td>
</tr>
<tr>
<td width="100%">
<!-- 登陆部分页面 -->
<jsp:include flush="true" page="login.jsp"/>
</td>
</tr>
<tr height="10">
<td></td>
</tr>
<tr>
<td width="100%">
<!-- 图书查询部分页面 -->
<jsp:include flush="true" page="book_query.jsp"/>
</td>
</tr>
<tr height="10">
<td></td>
</tr>
<!-- 借阅管理部分 -->
<jsp:include flush="true" page="borrow_select.jsp"/>
<tr>
<td width="100%"></td>
</tr>
<tr height="10">
<td></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</td>
<td width="5"></td>
<td width="5"></td>
<td width="550" valign="top">
<table border="0" cellPadding="0" cellSpacing="0" width="100%"
valign="top">
<tr height="5">
<td></td>
</tr>
<tr>
<td>
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr>
<td colspan="3" height="30"
background="images/s_center_title_userinfo.jpg"></td>
</tr>
<tr>
<td width="1" background="images/m_center_left.jpg"></td>
<td width="545">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr height="10">
<td colspan="4"></td>
</tr>
<html:form action="/user_modsub" styleId="regform" focus="loginName">
<tr height="24">
<td width="25"></td>
<td width="490" colspan="4" align="center"><html:hidden property="userNo"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">账号:</font></td>
<td width="330" colspan="3"><html:text property="loginName" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="loginName"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">密码:</font></td>
<td width="330" colspan="3"><html:password property="password" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="password"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">确认密码:</font></td>
<td width="330" colspan="3"><html:password property="pdconfirm" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="pdconfirm"/><html:errors property="pdconfirmd"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">真实姓名:</font></td>
<td width="330" colspan="3"><html:text property="userName" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="userName"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">电子邮件:</font></td>
<td width="330" colspan="3"><html:text property="email" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="email"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">性别:</font></td>
<td width="330" colspan="3">
<bean:define id="isex" name="registerForm" property="sex"></bean:define>
<html:select property="sex"
style="height: 22; width: 60">
<option value="1" <%=((isex != null && ((Short)isex).intValue() == 1)?"selected":"")%>>男</option>
<option value="2" <%=((isex != null && ((Short)isex).intValue() == 2)?"selected":"")%>>女</option>
<option value="0" <%=((isex != null && ((Short)isex).intValue() == 0)?"selected":"")%>>保密</option>
</html:select><html:errors property="sex"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">生日:</font></td>
<td width="330" colspan="3"><html:hidden property="birthday"/>
<%
int i = 0;
%>
<bean:define id="iyear" name="registerForm" property="year"></bean:define>
<bean:define id="imonth" name="registerForm" property="month"></bean:define>
<bean:define id="iday" name="registerForm" property="day"></bean:define>
<html:select property="year"
style="height: 22; width: 60">
<%
for(i = 1900; i <= 2090; i++){
%>
<option value="<%=i%>" <%=((iyear != null && ((Integer)iyear).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>年 <html:select property="month" style="height: 22; width: 35">
<%
for(i = 1; i <= 12; i++){
%>
<option value="<%=i%>" <%=((imonth != null && ((Integer)imonth).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>月 <html:select property="day" style="height: 22; width: 40">
<%
for(i = 1; i <= 31; i++){
%>
<option value="<%=i%>" <%=((iday != null && ((Integer)iday).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>日<html:errors property="birthday"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">证件类型:</font></td>
<td width="330" colspan="3">
<bean:define id="icertType" name="registerForm" property="certType"></bean:define>
<html:select property="certType"
style="height: 22; width: 80">
<option value="0" <%=((icertType != null && ((Integer)icertType).intValue() == 0)?"selected":"")%>>身份证</option>
<option value="1" <%=((icertType != null && ((Integer)icertType).intValue() == 1)?"selected":"")%>>学生证</option>
<option value="2" <%=((icertType != null && ((Integer)icertType).intValue() == 2)?"selected":"")%>>军官证</option>
<option value="3" <%=((icertType != null && ((Integer)icertType).intValue() == 3)?"selected":"")%>>其它</option>
</html:select>
</td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">证件:</font></td>
<td width="330" colspan="3"><html:text property="cert" style="WIDTH: 160px; HEIGHT: 22px"/>
<font class="font12">(必填)</font><html:errors property="cert"/></td>
<td width="30"></td>
</tr>
<tr height="24">
<td width="25"></td>
<td width="160" align="right"><font class="font12">电话:</font></td>
<td width="330" colspan="3"><html:text property="phone" style="WIDTH: 160px; HEIGHT: 22px"/>
<html:errors property="phone"/></td>
<td width="30"></td>
</tr>
<tr height="44">
<td width="25"></td>
<td width="160"></td>
<td width="110"><input name="image1" type="button"
id="image1" value="修改信息"
WIDTH="69" HEIGHT="20"
onclick="javascript:modsubmit();"></td>
<td width="110"></td>
<td width="110"></td>
<td width="20"></td>
</tr>
</html:form>
</table>
</td>
<td width="4" background="images/m_center_right.jpg"></td>
</tr>
<tr>
<td colspan="3" height="3"
background="images/m_center_bottom_menu.jpg"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 底部页面 -->
<jsp:include flush="true" page="bottom.jsp"/>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -