Project

General

Profile

1
<%@ page contentType="text/html; charset=utf-8"%>
2
<%@ taglib prefix="s" uri="/struts-tags"%>
3

    
4
	<link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/driver_profile.css' rel="stylesheet" type="text/css" />
5

    
6
    <s:if test="%{#session.user == null}">
7
        <div class="heading">
8
            <a href="Account.action" class="menu2">MyDriver &nbsp;</a>
9
        </div>
10

    
11
        <div class="loginBody">
12
        	<div class="ovalwrap right">
13
            <a class="ovalbutton" onclick="javascript:document.SignIn.submit();">
14
                    <span>Sign in</span>
15
                </a>
16
             </div>
17
            <s:form theme="simple" id="SignIn" name="SignIn" action="Login.action">
18
            	<s:hidden name="url" value="%{#request['javax.servlet.forward.servlet_path']}"/>
19
            	<s:hidden name="params" value="%{#request['javax.servlet.forward.query_string']}"/>            	
20
                <label>email </label> <s:textfield name="email"  />
21
                <label>password </label><s:password name="password" />                
22
            </s:form>
23
        </div>
24
    </s:if>
25

    
26
    <s:else>
27
        <div class="heading" id="userInfo">
28
            <a href="MyDashboard.action">MyDriver</a>&nbsp;
29
            <s:if test="%{ #session.user.firstname != null || #session.user.lastname != null }">
30
                <s:if test="%{ #session.user.firstname != \"\" || #session.user.lastname != \"\" }">
31
			for
32
                    <s:if test="%{ #session.user.firstname != \"\" }">
33
                        <s:property value="#session.user.firstname" />
34
                    </s:if>
35
                    <s:property value="#session.user.lastname" />
36
                </s:if>
37
                <s:elseif test="%{#session.user.email != null}">
38
                    for <s:property value="#session.user.email" />
39
                </s:elseif>
40
            </s:if>
41
            <s:elseif test="%{#session.user.email != null}">
42
                for <s:property value="#session.user.email" />
43
            </s:elseif>            
44
        </div>
45
        <div class="loginBody" id="dropboxInfo">
46
        <div class="ovalwrap right">
47
			<a class="ovalbutton" href="Logout.action"><span>Sign out</span></a>
48
        </div>
49
        You have <span id="dropboxDocCount"><s:property value="#session.user.documentIds.size()" /></span> items in your <a href="MyDropbox.action">dropbox. </a>                   
50
        </div>
51
    </s:else>
52

    
53
    <b class="curved_bottom"> <b class="curved_b4"></b> <b
54
            class="curved_b3"></b> <b class="curved_b2"></b> <b class="curved_b1"></b>
55
    </b>
(13-13/25)