Project

General

Profile

1 4894 thanos.pap
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3 7783 natalia.ma
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 4894 thanos.pap
	<head>
9 5847 thanos.pap
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10 7672 thanos.pap
		<title>DRIVER Communities</title>
11 7812 natalia.ma
12 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" />
13
		<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" />
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 7812 natalia.ma
16
        <!-- MB - ADD mootools here: new version -->
17 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>
18
		<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>
19 7672 thanos.pap
		<script type="text/javascript">
20
			function deleteCommunity() {
21
				return confirm('Are you sure you want to delete communiy <s:property value="community.name" />?');
22
			}
23
		</script>
24
25 4894 thanos.pap
	</head>
26 7783 natalia.ma
27 6568 thanos.pap
	<body>
28 5847 thanos.pap
		<div id="center">
29
			<div id="wrapper">
30 7399 katerina.i
				<div class="wrapper_shadowleft">
31
					<div class="wrapper_shadowright">
32 5847 thanos.pap
						<div id="container">
33
							<jsp:include page="/pages/banner.jsp" />
34 7672 thanos.pap
							<jsp:include page="/pages/menu.jsp" />
35 7783 natalia.ma
36
                            <div id="leftcolumn">
37 7672 thanos.pap
								<b class="curved_top">
38
									<b class="curved_t1"></b>
39
									<b class="curved_t2"></b>
40
									<b class="curved_t3"></b>
41
									<b class="curved_t4"></b>
42
								</b>
43 7739 natalia.ma
                                <div class="curved_container clearfix">
44
                                    <s:if test="%{displayMyDriverMenu}">
45
                                        <jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
46
                                    </s:if>
47
                                    <s:else>
48 8059 natalia.ma
                                    <div class="featured_top leftcolumn_top">Communities</div>
49 7739 natalia.ma
                                        <s:set name="action" value="%{'ViewCommunity.action'}"/>
50
                                        <jsp:include page="/pages/community/allCommunitiesMenu.jsp" />
51
                                    </s:else>
52
                                </div>
53 7672 thanos.pap
								<b class="curved_bottom">
54
									<b class="curved_b4"></b>
55
									<b class="curved_b3"></b>
56
									<b class="curved_b2"></b>
57
									<b class="curved_b1"></b>
58
								</b>
59 5847 thanos.pap
							</div>
60 7672 thanos.pap
							<div id="maincolumn2">
61 7739 natalia.ma
                            	<div id="communityPage">
62 7783 natalia.ma
                                    <b class="curved_top">
63
                                        <b class="curved_t1"></b>
64
                                        <b class="curved_t2"></b>
65
                                        <b class="curved_t3"></b>
66
                                        <b class="curved_t4"></b>
67
                                    </b>
68 7672 thanos.pap
								<div class="curved_container clearfix">
69 7739 natalia.ma
									<div class="featured_top communityPage_top">
70 7783 natalia.ma
    	                            	<div class="right ">
71
                                            <s:if test="%{displayJoin}">
72
                                                <a class="ovalbutton " 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>">
73 8059 natalia.ma
                                                    <span>Join</span>
74 7783 natalia.ma
                                                </a>
75
                                            </s:if>
76
                                            <s:if test="%{displayLeave}">
77
                                                <a class="ovalbutton " href="LeaveCommunity.action?communityId=<s:property value="communityId" />
78
                                                <s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
79 8059 natalia.ma
                                                    <span>Leave</span>
80 7783 natalia.ma
                                                </a>
81
                                            </s:if>
82
                                            <s:if test="%{displayEdit}">
83
                                                <a class="ovalbutton " href="EditCommunity.action?communityId=<s:property value="communityId" />
84
                                                <s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
85 8059 natalia.ma
                                                    <span>Edit</span>
86 7783 natalia.ma
                                                </a>
87
                                            </s:if>
88
                                            <s:if test="%{displayDelete}">
89
                                                <a class="ovalbutton " onClick="return deleteCommunity();" href="DeleteCommunity.action?communityId=<s:property value="communityId" />
90
                                                <s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
91 8059 natalia.ma
                                                    <span>Delete</span>
92 7783 natalia.ma
                                                </a>
93
                                            </s:if>
94
                                        </div>
95 7739 natalia.ma
96 13398 katerina.i
										<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" absmiddle="absmiddle" />
97 7672 thanos.pap
										&nbsp;
98
										<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>">
99
											<s:property value="community.name" />
100
										</a>
101 5847 thanos.pap
									</div>
102 7672 thanos.pap
									<s:set name="selectedTab" value="%{0}"/>
103
									<jsp:include page="/pages/community/tabsMenu.jsp" />
104 7783 natalia.ma
									<div class="tab-wrapper clearfix ">
105 7672 thanos.pap
										<div class="mydriveritem col1">
106 7739 natalia.ma
											<div class="communityField">
107
												<span class="communityFieldNm">Description:</span>
108 7672 thanos.pap
												<s:property value="community.description" />
109
											</div>
110 7739 natalia.ma
											<div class="communityField">
111
												<span class="communityFieldNm">Owner:</span>
112 7748 thanos.pap
                                            	<s:if test="%{((owner.firstname == null) || owner.firstname.isEmpty()) && ((owner.lastname == null) || owner.lastname.isEmpty())}">
113
	                                        		<s:property value="owner.email.split('@')[0]" />@...
114
    	                                    	</s:if>
115
        	                                	<s:else>
116
            	                                    <s:property value="owner.firstname" />
117
                	                                <s:property value="owner.lastname" />
118
                    	                        </s:else>
119 7672 thanos.pap
											</div>
120 7739 natalia.ma
											<div class="communityField">
121
												<span class="communityFieldNm">
122 7672 thanos.pap
													Managers (<s:property value="managers.size()" />):
123
												</span>
124 5847 thanos.pap
												<s:iterator value="managers" status="managersStatus">
125 7748 thanos.pap
													<s:if test="%{((firstname == null) || firstname.isEmpty()) && ((lastname == null) || lastname.isEmpty())}"><s:property value="email.split('@')[0]" />@...</s:if><s:else><s:property value="firstname" /> <s:property value="lastname" /></s:else><s:if test="!#managersStatus.last">, </s:if>
126 5847 thanos.pap
												</s:iterator>
127 7672 thanos.pap
											</div>
128 7739 natalia.ma
											<div class="communityField">
129
												<span class="communityFieldNm">
130 7672 thanos.pap
													Members (<s:property value="members.size()" />):
131
												</span>
132
												<a class="viewMore" href="ViewCommunityMembers.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>">View list</a>
133
											</div>
134 7739 natalia.ma
											<div class="communityField">
135
												<span class="communityFieldNm">
136 7672 thanos.pap
													Collections (<s:property value="collections.size()" />):
137
												</span>
138
												<s:if test="%{collections.size() > 0}">
139
													<s:iterator value="collections" status="collectionsStatus">
140
														<a href="AllDRIVERCollections.action?collectionID=<s:property value="resourceId" />"><s:property value="name" /></a><s:if test="!#collectionsStatus.last">, </s:if>
141
													</s:iterator>
142
													&nbsp;&nbsp;&nbsp;
143
													<a  class="viewMore" href="ViewCommunityCollections.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>">View list</a>
144 6568 thanos.pap
												</s:if>
145 7672 thanos.pap
												<s:else>
146
													None
147
												</s:else>
148 8163 thanos.pap
												<s:if test="%{displayAddCollection}">
149 7815 thanos.pap
													&nbsp;&nbsp;&nbsp;
150
													<a  class="ovalbutton" 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>">
151
														<span>Add a collection</span>
152
													</a>
153
												</s:if>
154 7672 thanos.pap
											</div>
155
										</div>
156
										<div class="mydriveritem col2">
157 8059 natalia.ma
											<div class="content equalizeT">
158 7672 thanos.pap
												<h2>
159 13398 katerina.i
													<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/userrecommend.png"  height="16" />
160 7739 natalia.ma
													<a href="ViewCommunityAnnouncements.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>">Announcements</a>
161 7672 thanos.pap
												</h2>
162
												<s:if test="recommendations.size() == 0">
163 7739 natalia.ma
													<div class="communityField">
164
                                                    	<span class="communityFieldComments">No announcements.</span>
165
                                                    </div>
166 6568 thanos.pap
												</s:if>
167 7672 thanos.pap
												<s:else>
168
													<s:iterator value="recommendations" status="recommendationsStatus">
169
														<s:if test="#recommendationsStatus.index < 3">
170 7739 natalia.ma
															<div class="communityField">
171 7803 thanos.pap
																<s:property value="dateFormat.format(generationDate)" />:
172 7672 thanos.pap
																<a href="ViewCommunityAnnouncements.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>#<s:property value="resourceId" />">
173
																	<s:property value="title" />
174
																</a>
175
															</div>
176
														</s:if>
177
													</s:iterator>
178 7739 natalia.ma
													<div class="communityField">
179 13398 katerina.i
														<a href="ViewCommunityAnnouncements.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>">View all&nbsp;<img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
180 7672 thanos.pap
													</div>
181
												</s:else>
182 8059 natalia.ma
                                                <div class="communityField">
183 8163 thanos.pap
													<s:if test="%{displayAddAnnouncement}">
184
														<a class="ovalbutton" href="AddCommunityAnnouncement.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>">
185
															<span>New announcement</span>
186
														</a>
187
													</s:if>
188 8059 natalia.ma
                                              </div>
189 7672 thanos.pap
											</div>
190
										</div>
191
										<!-- MB - user "clearright" for the box on the right column -->
192 7783 natalia.ma
										<div class="mydriveritem col2">
193 8059 natalia.ma
											<div class="content equalizeT">
194 7672 thanos.pap
												<h2>
195 13398 katerina.i
													<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/bookmarks.gif" height="16" />
196 7783 natalia.ma
													<a href="ViewCommunityAuthoritativeDocuments.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>">Reading list</a>
197 7672 thanos.pap
												</h2>
198 12687 katerina.i
												<s:if test="webAuthoritativeDocuments.size() == 0">
199 7739 natalia.ma
													<div class="communityField">
200 7783 natalia.ma
                                                    	<span class="communityFieldComments">No documents in the reading list.</span>
201 7739 natalia.ma
                                                    </div>
202 5847 thanos.pap
												</s:if>
203 7672 thanos.pap
												<s:else>
204 8059 natalia.ma
                                                <div class="communityField">
205
													<span class="communityFieldComments">
206
                                                        This reading list contains
207
                                                        <s:property value="authoritativeDocuments.size()" />
208
                                                        item(s)
209
                                                     </span>
210
												</div>
211 12687 katerina.i
                                                	<s:iterator value="webAuthoritativeDocuments" status="authoritativeDocumentsStatus" var="document">
212 7672 thanos.pap
														<s:if test="%{#authoritativeDocumentsStatus.index < 3}">
213 8059 natalia.ma
															<div class="communityField">
214
                                                            	<jsp:include page="/pages/search/document.jsp" />
215
                                                            </div>
216 7672 thanos.pap
														</s:if>
217 8059 natalia.ma
                                                        <s:if test="%{#authoritativeDocumentsStatus.index == 3}">
218
                                                			<div class="communityField">...</div>
219
                                                            <div class="communityField">
220 13398 katerina.i
                                                            	<a href="ViewCommunityAuthoritativeDocuments.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>">View all&nbsp;<img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
221 8059 natalia.ma
                                                            </div>
222
                                                        </s:if>
223
                                                	</s:iterator>
224
225 7672 thanos.pap
												</s:else>
226 8163 thanos.pap
											<s:if test="%{displayAddAuthoritativeDocument}">
227
												<div class="communityField">
228
													<span class="communityFieldComments">Use the Dropbox to add items into the reading list.</span>
229
												</div>
230
											</s:if>
231 7672 thanos.pap
											</div>
232
										</div>
233
										<div class="mydriveritem col2">
234 8059 natalia.ma
											<div class="content equalizeB">
235 7672 thanos.pap
												<h2>
236 13398 katerina.i
													<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/forum.gif" height="16" />
237 7739 natalia.ma
													<a href="ViewForumThreads.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>">Forum</a>
238 7672 thanos.pap
												</h2>
239
												<s:if test="threads.size() == 0">
240 7739 natalia.ma
													<div class="communityField">
241 7783 natalia.ma
                                                    	<span class="communityFieldComments">This community has no open discussions.</span>
242 7739 natalia.ma
                                                     </div>
243 6568 thanos.pap
												</s:if>
244 7672 thanos.pap
												<s:else>
245
													<s:iterator value="threads" status="threadsStatus">
246
														<s:if test="#threadsStatus.index < 3">
247 7739 natalia.ma
															<div class="communityField">
248 8059 natalia.ma
                                                             <a href="ViewForumThread.action?communityId=<s:property value="communityId" />&amp;threadId=<s:property value="threadId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
249
                                                                <s:property value="topic" />
250
                                                            </a><!--NMI this is wroing
251 7672 thanos.pap
																<a href="ViewForumThread.action?threadId=<s:property value="threadId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
252
																	<s:property value="topic" />
253
																</a>
254 8059 natalia.ma
                                                                -->
255 7672 thanos.pap
																<br />
256 7803 thanos.pap
																<s:property value="dateFormat.format(creationDate)" />
257 7672 thanos.pap
																|
258
																<s:property value="threadOwners.get(threadId).firstname" />
259
																<s:property value="threadOwners.get(threadId).lastname" />
260
																|
261
																<s:property value="posts.size()" />
262
																post(s)
263
															</div>
264
														</s:if>
265
													</s:iterator>
266 8059 natalia.ma
267
                                                    <div class="communityField">
268 13398 katerina.i
														<a href="ViewForumThreads.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>">View all&nbsp;<img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
269 7672 thanos.pap
													</div>
270
												</s:else>
271 8163 thanos.pap
												<div class="communityField">
272
													<s:if test="%{displayAddForumThread}">
273
														<a class="ovalbutton" href="OpenForumThread.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>">
274
															<span>Open new discussion</span>
275
														</a>
276
													</s:if>
277
												</div>
278 7672 thanos.pap
											</div>
279
										</div>
280 7783 natalia.ma
										<div class="mydriveritem col2 ">
281 8059 natalia.ma
											<div class="content equalizeB">
282 7672 thanos.pap
												<h2>
283 13398 katerina.i
													<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/rating.png" height="16" />
284 7739 natalia.ma
													<a href="ViewCommunityPopularDocuments.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>">Popular Documents</a>
285 7672 thanos.pap
												</h2>
286
												<s:if test="popularDocuments.size() == 0">
287 7739 natalia.ma
													<div class="communityField">
288 7783 natalia.ma
                                                    	<span class="communityFieldComments">This feature will be enabled soon.</span>
289 7739 natalia.ma
                                                     </div>
290 7672 thanos.pap
												</s:if>
291
												<s:else>
292
													<s:iterator value="popularDocuments" status="popularDocumentsStatus">
293
														<s:if test="%{#popularDocumentsStatus.index < 3}">
294
															<s:set name="document" value="getKey()" />
295
															<jsp:include page="/pages/search/document.jsp" />
296
															<br />
297
															<s:property value="getValue()" />
298
														</s:if>
299
													</s:iterator>
300 7739 natalia.ma
													<div class="communityField">&nbsp;</div>
301
													<div class="communityField">
302 7672 thanos.pap
														<a href="ViewCommunityPopularDocuments.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>">View all popular documents...</a>
303
													</div>
304
												</s:else>
305
											</div>
306
										</div>
307
										<!-- MB - Make all "equalize" boxes equal height -->
308
										<script type="text/javascript">
309
											window.addEvent('domready', function() {
310 8059 natalia.ma
												var columns = $$('.equalizeT');
311 7672 thanos.pap
												var max_height = 0;
312
												columns.each(function(item) {
313
													max_height = Math.max(max_height, item.getSize().y);
314
												});
315
												columns.setStyle('height', max_height);
316 8059 natalia.ma
												var columns = $$('.equalizeB');
317
												var max_height = 0;
318
												columns.each(function(item) {
319
													max_height = Math.max(max_height, item.getSize().y);
320
												});
321
												columns.setStyle('height', max_height);
322 7672 thanos.pap
											});
323
										</script>
324 5847 thanos.pap
									</div>
325
								</div>
326 7672 thanos.pap
								<b class="curved_bottom">
327
									<b class="curved_b4"></b>
328
									<b class="curved_b3"></b>
329
									<b class="curved_b2"></b>
330
									<b class="curved_b1"></b>
331
								</b>
332 7739 natalia.ma
                                </div>
333 5847 thanos.pap
							</div>
334 7739 natalia.ma
							<div id="footer">
335 12995 katerina.i
                            	<s:action name="FooterPage" executeResult="true"/>
336
                        	</div>
337 7739 natalia.ma
                    </div>
338 5847 thanos.pap
					</div>
339
				</div>
340
			</div>
341
		</div>
342 4894 thanos.pap
	</body>
343 12963 antonis.le
</html>