Project

General

Profile

1
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6

    
7
	<head>
8
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
		<title>DRIVER Communities</title>
10
		<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" />
11
		<link href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/SimpleTabs.css" rel="stylesheet" type="text/css" />
12
		<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
13
		<!-- MB - ADD mootools here: new version -->
14
		<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>
15
		<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>
16
		<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
17
		<script type="text/javascript">
18
			function deleteCollection(name) {
19
				return confirm('Are you sure you want to delete collection ' + name + '?');
20
			}
21
		</script>
22
	</head>
23
	<body>
24
		<div id="center">
25
			<div id="wrapper">
26
				<div class="wrapper_shadowleft">
27
					<div class="wrapper_shadowright">
28
						<div id="container">
29
							<jsp:include page="/pages/banner.jsp" />
30
							<jsp:include page="/pages/menu.jsp" />
31
							<p class="clear" />
32
							<div id="leftcolumn">
33
								<b class="curved_top">
34
									<b class="curved_t1"></b>
35
									<b class="curved_t2"></b>
36
									<b class="curved_t3"></b>
37
									<b class="curved_t4"></b>
38
								</b>
39
                                <div class="curved_container clearfix">
40
                                    <div class="featured_top leftcolumn_top">Communities</div>
41
                                    <s:if test="%{displayMyDriverMenu}">
42
                                        <jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
43
                                    </s:if>
44
                                    <s:else>
45
                                        <s:set name="action" value="%{'ViewCommunityCollections.action'}"/>
46
                                        <jsp:include page="/pages/community/allCommunitiesMenu.jsp" />									
47
                                    </s:else>
48
                                </div>
49
								<b class="curved_bottom">
50
									<b class="curved_b4"></b>
51
									<b class="curved_b3"></b>
52
									<b class="curved_b2"></b>
53
									<b class="curved_b1"></b>
54
								</b>
55
							</div>
56
							<div id="maincolumn2">
57
	                            <div id="communityPage">
58
                                    <b class="curved_top">
59
                                        <b class="curved_t1"></b>
60
                                        <b class="curved_t2"></b>
61
                                        <b class="curved_t3"></b>
62
                                        <b class="curved_t4"></b>
63
                                    </b>
64
                                    <div class="curved_container clearfix">
65
                                        <div class="featured_top communityPage_top">
66
                                            <div class="right ">
67
                                                <s:if test="%{displayJoin}">
68
													<a class="ovalbutton right" href="JoinCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
69
                                                        <span>Join</span>
70
                                                    </a>
71
                                                </s:if>
72
                                                <s:if test="%{displayLeave}">
73
													<a class="ovalbutton right" href="LeaveCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
74
                                                        <span>Leave</span>
75
                                                    </a>
76
                                                </s:if>
77
											</div>
78
                                            <img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/communities.png" alt="DRIVER Communities" width="16" height="16" class="absmiddle" />
79
                                            &nbsp;
80
                                            <a href="ViewCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
81
                                                <s:property value="community.name" />
82
                                            </a>
83
                                        </div>
84
                                        <s:set name="selectedTab" value="%{3}"/>
85
                                        <jsp:include page="/pages/community/tabsMenu.jsp" />									
86
                                        <div id="collections" class="tab-wrapper clearfix">
87
                                            <div class="mydriveritem col1">
88
	                                            <div class="communityAdminButtons">
89
	                                            	<s:if test="%{displayAdd}">
90
														<a class="ovalbutton right" href="AddCommunityCollection.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
91
															<span>Add a collection</span>
92
														</a>
93
													</s:if>
94
	                                            </div>
95
											   <s:if test="collections.size() == 0">
96
                                                    <div class="communityField">
97
                                                    	<span class="communityFieldComments">This community has no collections.</span>
98
                                                     </div>
99
                                                </s:if>
100
                                                <s:else>
101
                                                    <div class="communityField">
102
                                                        <span class="communityFieldComments">
103
                                                            This community has
104
                                                            <s:property value="collections.size()" />
105
                                                            collection(s)
106
                                                         </span>
107
                                                    </div>
108
                                                    <s:iterator value="collections">
109
                                                        <div class="communityField">
110
                                                            <a href="AllDRIVERCollections.action?collectionID=<s:property value="resourceId" />">
111
                                                                <img src="<s:property value="iconUrl" />" />
112
                                                                <s:property value="name" />
113
                                                            </a>
114
                                                        </div>
115
                                                        <div class="communityField">
116
                                                            <s:property value="subject" />		
117
                                                        </div>
118
                                                        <div class="communityField">
119
                                                            <s:if test="%{lastUpdateDate == null}">
120
                                                                <s:property value="dateFormat.format(dateOfCreation)" />
121
                                                            </s:if>
122
                                                            <s:else>
123
                                                                <s:property value="dateFormat.format(lastUpdateDate)" />
124
                                                            </s:else>
125
                                                            |
126
                                                            <s:if test="%{collectionOwners.get(resourceId) == null}">no owner</s:if>
127
                                                            <s:else>
128
															<s:if test="%{((collectionOwners.get(resourceId).firstname == null) || collectionOwners.get(resourceId).firstname.isEmpty) && ((collectionOwners.get(resourceId).lastname == null) || collectionOwners.get(resourceId).lastname.isEmpty())}">
129
                                                                    <s:property value="collectionOwners.get(resourceId).email.split('@')[0]" />@...
130
                                                                </s:if>
131
                                                                <s:else>
132
                                                                    <s:property value="collectionOwners.get(resourceId).firstname" />
133
                                                                    <s:property value="collectionOwners.get(resourceId).lastname" />
134
                                                                </s:else>
135
                                                            </s:else>
136
                                                            |
137
                                                            <s:property value="documentCount" />
138
                                                            document(s)
139
                                                        </div>
140
                                                        <s:iterator value="description">
141
                                                            <div class="communityField">
142
                                                                <s:property />
143
                                                            </div>
144
                                                        </s:iterator>
145
													<s:if test="%{getDisplayDelete(resourceId)}">
146
														<form id="viewCommunityCollectionsAction<s:property value="resourceId" />" onsubmit="return deleteCollection('<s:property value="name" />');" action="DeleteCommunityCollection.action" method="post">
147
															<input type="hidden" name="communityId" value="<s:property value="communityId" />" />
148
															<input type="hidden" name="collectionId" value="<s:property value="resourceId" />" />
149
															<div class="communityField">      
150
																<s:if test="%{displayMyDriverMenu}">
151
																	<input type="hidden" name="displayMyDriverMenu" value="true" />
152
																</s:if>
153
																<s:if test="%{initialLetter != null}">
154
																	<input type="hidden" name="initialLetter" value="<s:property value="initialLetter" />" />
155
																</s:if>
156
															</div>
157
															<div class="communityField">
158
																<input type="submit" id="viewCommunityCollectionsActionDelete" value="Remove" class="ovalbutton" />
159
															</div>
160
														</form>
161
													</s:if>
162
                                                    </s:iterator>
163
                                                </s:else>												
164
                                            </div>
165
                                        </div>
166
                                    </div>
167
                                    <b class="curved_bottom">
168
                                        <b class="curved_b4"></b>
169
                                        <b class="curved_b3"></b>
170
                                        <b class="curved_b2"></b>
171
                                        <b class="curved_b1"></b>
172
                                    </b>
173
							</div>
174
							</div>
175
							<div id="footer">
176
                            	<s:action name="FooterPage" executeResult="true"/>
177
                        	</div>
178
                    </div>
179
					</div>
180
				</div>
181
			</div>
182
		</div>
183
	</body>
184
</html>
(17-17/22)