-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathchangemessage.jsp
More file actions
137 lines (131 loc) · 4.75 KB
/
Copy pathchangemessage.jsp
File metadata and controls
137 lines (131 loc) · 4.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="t.o.bean.userBean" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>绿丰花园时尚餐厅</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/all.css">
</head>
<style type="text/css">
body{
margin:0px;
padding:0px;
background-color:#f4e7bd;
}
#loginbg{
width:100%;
height:166px;
background-image:url(images/top.jpg);
}
#login{
width:1000px;
height:166px;
background-image:url(images/12.jpg);
}
#content{
width:1000px;
height:500px;
}
#dowmbg{
width:100%;
height:170px;
background-image: url(images/footerbg.jpg);
}
#dowm{
width:1000px;
height:170px;
background-image: url(images/footerbg.jpg);
}
table{
margin-top: 40px;
marker-offset:20px;
}
img{
border:0px;
}
</style>
<script type="text/javascript">
function changeuser(){
var nackname = document.form1.nackname.value;
var breathdaty = document.form1.breathdaty.value;
var usermail = document.form1.usermail.value;
if(nackname==""||breathdaty==""||usermail==""){
alert("加星号项不能为空");
}
else{
document.form1.submit();
}
}
function headchange(object){
document.getElementById("headimg" ).src= "<%=basePath %>images/userimg/"+object+".gif";
document.getElementById("headimg" ).style.display = "block";
if(object==""){
document.getElementById("headimg" ).style.display = "none";
}
}
</script>
<body>
<center>
<div id="loginbg">
<div id="login" align="left">
</div>
</div>
<div id="content">
<%
ArrayList<userBean> userList = (ArrayList<userBean>)session.getAttribute("usermessage");
userBean userbean = userList.get(0);
%>
<form action="changemessage" name="form1" method="post" >
<table width="60%" height="100%" >
<tr><td align="center" colspan="2"><a href="changemessage"><img src="images/btn3.jpg"/></a> <a href="pwdchange.jsp"><img src="images/btn4.jpg"/></a></td></tr>
<tr><td align="center" colspan="2"><img src="images/xgziliao.jpg"/></td></tr>
<tr><td align="right" width="40%">头像:</td><td align="left">
<img id="head" src="<%=basePath %>images/userimg/<%=userbean.getUser_img() %>.gif">
<img id="headimg" src="<%=basePath %>images/userimg/user1.gif" style="display: none">
<select name="head" onchange="headchange(this.value);">
<option value="1">请选择</option>
<option value="user1">头像1</option>
<option value="user2">头像2</option>
<option value="user3">头像3</option>
<option value="user4">头像4</option>
<option value="user5">头像5</option>
<option value="user6">头像6</option>
<option value="user7">头像7</option>
<option value="user8">头像8</option>
<option value="user9">头像9</option>
<option value="user10">头像10</option>
</select></td></tr>
<tr><td align="right">昵称:</td><td align="left"><input type="text" name="nackname" value="<%=userbean.getUser_naickname() %>"/></td></tr>
<tr><td align="right">性别:</td><td align="left"><%=userbean.getUser_sex() %>
<input type="radio" id="sex" name="sex" value="男" />男
<input type="radio" id="sex" name="sex" value="女" />女</td></tr>
<tr><td align="right">生日:</td><td align="left"><input type="text" value="<%=userbean.getUser_birthday() %>" name="breathdaty"/>格式:(1989-09-09)</td></tr>
<tr><td align="right">姓名:</td><td align="left"><%=userbean.getUser_truename() %></td></tr>
<tr><td align="right">身份证:</td><td align="left"><%=userbean.getUser_idcard() %></td></tr>
<tr><td align="right">E-mail:</td><td align="left"><input type="text" value="<%=userbean.getUser_email() %>" name="usermail"/></td></tr>
<tr><td align="right">联系电话:</td><td align="left"><input type="text" value="<%=userbean.getUser_phone() %>" name="userphoto"/></td></tr>
<tr><td colspan="2" align="center"><a href="javascript:changeuser();"><img src="images/btn5.jpg"/></a></td></tr>
</table>
</form>
<br/><br/><BR/><br/>
</div>
<div id="dowmbg">
<div id="dowm">
</div>
</div>
</center>
</body>
</html>