1 |
6018
|
antonis.le
|
<%@ taglib prefix="s" uri="/struts-tags"%>
|
2 |
|
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
3 |
|
|
|
4 |
7783
|
natalia.ma
|
<!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 |
6018
|
antonis.le
|
|
8 |
|
|
<head>
|
9 |
7812
|
natalia.ma
|
<title>DRIVER My Personal Info</title>
|
10 |
6018
|
antonis.le
|
|
11 |
8398
|
katerina.i
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
12 |
|
|
|
13 |
13398
|
katerina.i
|
<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 |
6018
|
antonis.le
|
|
16 |
13398
|
katerina.i
|
<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 |
7793
|
alexandros
|
<script language="javascript">
|
20 |
|
|
function isEmpty(strfield1, strfield2) {
|
21 |
6018
|
antonis.le
|
|
22 |
7793
|
alexandros
|
if (strfield1.value == "" || strfield1.value == null
|
23 |
|
|
|| !isNaN(strfield1.value)) {
|
24 |
|
|
return true;
|
25 |
|
|
}
|
26 |
6124
|
elena.nico
|
|
27 |
7793
|
alexandros
|
if (strfield2.value == "" || strfield2.value == null
|
28 |
|
|
|| !isNaN(strfield2.value)) {
|
29 |
|
|
return true;
|
30 |
|
|
}
|
31 |
6124
|
elena.nico
|
|
32 |
7793
|
alexandros
|
return false;
|
33 |
|
|
}
|
34 |
6124
|
elena.nico
|
|
35 |
7793
|
alexandros
|
function isVerified(field1, field2) {
|
36 |
6124
|
elena.nico
|
|
37 |
7793
|
alexandros
|
var passwd = field1.value;
|
38 |
|
|
var confirmation = field2.value;
|
39 |
6124
|
elena.nico
|
|
40 |
7793
|
alexandros
|
if (passwd != confirmation) {
|
41 |
|
|
alert("Your password is not verified");
|
42 |
|
|
field2.focus();
|
43 |
|
|
field2.select();
|
44 |
|
|
return false;
|
45 |
|
|
}
|
46 |
6124
|
elena.nico
|
|
47 |
7793
|
alexandros
|
return true;
|
48 |
6124
|
elena.nico
|
|
49 |
7793
|
alexandros
|
}
|
50 |
6124
|
elena.nico
|
|
51 |
7793
|
alexandros
|
function check(form) {
|
52 |
6124
|
elena.nico
|
|
53 |
7793
|
alexandros
|
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 |
7700
|
natalia.ma
|
|
70 |
7793
|
alexandros
|
columns.each(function(item) {
|
71 |
|
|
max_height = Math.max(max_height, item.getSize().y);
|
72 |
|
|
});
|
73 |
7700
|
natalia.ma
|
|
74 |
7793
|
alexandros
|
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 |
8025
|
natalia.ma
|
<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 |
7793
|
alexandros
|
</div>
|
98 |
8025
|
natalia.ma
|
<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 |
6662
|
elena.nico
|
|
106 |
7793
|
alexandros
|
<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 |
13398
|
katerina.i
|
<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 |
7793
|
alexandros
|
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 |
13398
|
katerina.i
|
<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 |
7793
|
alexandros
|
</div>
|
125 |
8025
|
natalia.ma
|
<div class="myPageField">
|
126 |
|
|
<span class="myPageFieldComments">
|
127 |
7793
|
alexandros
|
Edit your profile information below and then press save.
|
128 |
8025
|
natalia.ma
|
</span>
|
129 |
7793
|
alexandros
|
</div>
|
130 |
8025
|
natalia.ma
|
|
131 |
|
|
|
132 |
7793
|
alexandros
|
<s:if test="%{#message}">
|
133 |
7700
|
natalia.ma
|
<s:property value="#message" />
|
134 |
7793
|
alexandros
|
</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 |
7828
|
alexandros
|
<!--<tr class="myPageField">
|
154 |
7793
|
alexandros
|
<td class="myPageFieldNm">
|
155 |
7700
|
natalia.ma
|
You can upload a JPG, GIF, or PNG file:
|
156 |
7793
|
alexandros
|
</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 |
7828
|
alexandros
|
</tr>-->
|
165 |
7793
|
alexandros
|
<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 |
8025
|
natalia.ma
|
<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 |
7793
|
alexandros
|
</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 |
7700
|
natalia.ma
|
</div>
|
184 |
7793
|
alexandros
|
</div>
|
185 |
12995
|
katerina.i
|
<div id="footer">
|
186 |
|
|
<s:action name="FooterPage" executeResult="true"/>
|
187 |
|
|
</div>
|
188 |
7793
|
alexandros
|
</div>
|
189 |
7700
|
natalia.ma
|
</div>
|
190 |
7793
|
alexandros
|
</div>
|
191 |
|
|
</div>
|
192 |
|
|
</div>
|
193 |
|
|
</body>
|
194 |
6018
|
antonis.le
|
</html>
|