1
|
<%@ taglib prefix="s" uri="/struts-tags"%>
|
2
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
3
|
|
4
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
|
8
|
<head>
|
9
|
<title>DRIVER My Personal Info</title>
|
10
|
|
11
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
12
|
|
13
|
<link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/<s:property value="#application['webInterfaceLayoutManager'].cssFileName" />' rel="stylesheet" type="text/css" />
|
14
|
<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
|
15
|
|
16
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3-core.js"></script>
|
17
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3.1-more.js"></script>
|
18
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
|
19
|
<script language="javascript">
|
20
|
function isEmpty(strfield1, strfield2) {
|
21
|
|
22
|
if (strfield1.value == "" || strfield1.value == null
|
23
|
|| !isNaN(strfield1.value)) {
|
24
|
return true;
|
25
|
}
|
26
|
|
27
|
if (strfield2.value == "" || strfield2.value == null
|
28
|
|| !isNaN(strfield2.value)) {
|
29
|
return true;
|
30
|
}
|
31
|
|
32
|
return false;
|
33
|
}
|
34
|
|
35
|
function isVerified(field1, field2) {
|
36
|
|
37
|
var passwd = field1.value;
|
38
|
var confirmation = field2.value;
|
39
|
|
40
|
if (passwd != confirmation) {
|
41
|
alert("Your password is not verified");
|
42
|
field2.focus();
|
43
|
field2.select();
|
44
|
return false;
|
45
|
}
|
46
|
|
47
|
return true;
|
48
|
|
49
|
}
|
50
|
|
51
|
function check(form) {
|
52
|
|
53
|
if (!isEmpty(form.password, form.vpassword)) {
|
54
|
if (isVerified(form.password, form.vpassword)) {
|
55
|
return true;
|
56
|
}
|
57
|
alert("Your password is not verified");
|
58
|
return false;
|
59
|
} else
|
60
|
alert("Please enter a password");
|
61
|
return false;
|
62
|
}
|
63
|
</script>
|
64
|
<script type="text/javascript">
|
65
|
function equalize(tag)
|
66
|
{
|
67
|
var columns = $$(tag);
|
68
|
var max_height = 0;
|
69
|
|
70
|
columns.each(function(item) {
|
71
|
max_height = Math.max(max_height, item.getSize().y);
|
72
|
});
|
73
|
|
74
|
columns.setStyle('height', max_height);
|
75
|
}
|
76
|
window.addEvent('domready', function(){equalize('.equalize')});
|
77
|
window.addEvent('domready', function(){equalize('.equalize2')});
|
78
|
</script>
|
79
|
</head>
|
80
|
<body>
|
81
|
<div id="center">
|
82
|
<div id="wrapper">
|
83
|
<div class="wrapper_shadowleft">
|
84
|
<div class="wrapper_shadowright">
|
85
|
<div id="container">
|
86
|
<jsp:include page="/pages/banner.jsp" />
|
87
|
<jsp:include page="/pages/menu.jsp" />
|
88
|
<div id="leftcolumn">
|
89
|
<b class="curved_top">
|
90
|
<b class="curved_t1"></b>
|
91
|
<b class="curved_t2"></b>
|
92
|
<b class="curved_t3"></b>
|
93
|
<b class="curved_t4"></b>
|
94
|
</b>
|
95
|
<div class="curved_container clearfix">
|
96
|
<jsp:include page="/pages/optionMenu.jsp" />
|
97
|
</div>
|
98
|
<b class="curved_bottom">
|
99
|
<b class="curved_b4"></b>
|
100
|
<b class="curved_b3"></b>
|
101
|
<b class="curved_b2"></b>
|
102
|
<b class="curved_b1"></b>
|
103
|
</b>
|
104
|
</div>
|
105
|
|
106
|
<div id="maincolumn2">
|
107
|
<div id="myPage">
|
108
|
<b class="curved_top"> <b class="curved_t1"></b> <b class="curved_t2"></b> <b class="curved_t3"></b> <b class="curved_t4"></b> </b>
|
109
|
<!-- this is the plain search area -->
|
110
|
<div class="curved_container equalize2 clearfix" >
|
111
|
<div class="featured_top myPage_top">
|
112
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/profile.png" alt="Profile" class="absmiddle" height="16" width="16" />
|
113
|
Profile <s:property value="#session.user.firstname" /> <s:property value="#session.user.lastname" />
|
114
|
</div>
|
115
|
<div class="mydriveritem col1">
|
116
|
<s:form theme="simple" action="Profile.action" method="post" enctype="multipart/form-data">
|
117
|
|
118
|
<!--NMI
|
119
|
<jsp:include page="/pages/userMenu.jsp"></jsp:include>
|
120
|
-->
|
121
|
|
122
|
<div class="right">
|
123
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/avatar.png" alt="avatar" width="140" height="140" />
|
124
|
</div>
|
125
|
<div class="myPageField">
|
126
|
<span class="myPageFieldComments">
|
127
|
Edit your profile information below and then press save.
|
128
|
</span>
|
129
|
</div>
|
130
|
|
131
|
|
132
|
<s:if test="%{#message}">
|
133
|
<s:property value="#message" />
|
134
|
</s:if>
|
135
|
<table class="myPagetbl">
|
136
|
<tr class="myPageField" >
|
137
|
<td class="myPageFieldNm">e-mail</td>
|
138
|
<td> <s:property value="#session.user.email" /></td>
|
139
|
</tr>
|
140
|
<tr class="myPageField">
|
141
|
<td class="myPageFieldNm">First Name</td>
|
142
|
<td> <s:textfield name="profile.firstname" /></td>
|
143
|
</tr>
|
144
|
|
145
|
<tr class="myPageField">
|
146
|
<td class="myPageFieldNm">Last Name</td>
|
147
|
<td> <s:textfield name="profile.lastname" /></td>
|
148
|
</tr>
|
149
|
<tr class="myPageField">
|
150
|
<td class="myPageFieldNm">Institution</td>
|
151
|
<td> <s:textfield name="profile.institution" /></td>
|
152
|
</tr>
|
153
|
<!--<tr class="myPageField">
|
154
|
<td class="myPageFieldNm">
|
155
|
You can upload a JPG, GIF, or PNG file:
|
156
|
</td>
|
157
|
<td> <s:file name="pic" label="File" /></td>
|
158
|
</tr>
|
159
|
<tr class="myPageField">
|
160
|
<td class="myPageFieldNm">
|
161
|
or provide a URL:
|
162
|
</td>
|
163
|
<td> <s:textfield name="userPhotoURL" /></td>
|
164
|
</tr>-->
|
165
|
<tr class="myPageField">
|
166
|
<td class="myPageFieldNm">
|
167
|
<s:submit action="ProfileUpdate" cssClass="button" value="Save changes" />
|
168
|
</td>
|
169
|
<td> </td>
|
170
|
</tr>
|
171
|
</table>
|
172
|
<p> </p>
|
173
|
<div class="myPageField">
|
174
|
<span class="myPageFieldComments">
|
175
|
<a href="Unsubscribe.action">Click here if you want to unsubscribe.</a>
|
176
|
</span>
|
177
|
</div>
|
178
|
|
179
|
</s:form>
|
180
|
</div>
|
181
|
</div>
|
182
|
<b class="curved_bottom"> <b class="curved_b4"></b> <b class="curved_b3"></b> <b class="curved_b2"></b> <b class="curved_b1"></b> </b>
|
183
|
</div>
|
184
|
</div>
|
185
|
<div id="footer">
|
186
|
<s:action name="FooterPage" executeResult="true"/>
|
187
|
</div>
|
188
|
</div>
|
189
|
</div>
|
190
|
</div>
|
191
|
</div>
|
192
|
</div>
|
193
|
</body>
|
194
|
</html>
|
195
|
|