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
	<head>
7
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
		<title>DRIVER Communities</title>
9
		<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" />
10
		<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" />
11
		<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
12
		<!-- MB - ADD mootools here: new version -->
13
		<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>
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.1-more.js"></script>
15
		<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
16
		<script type="text/javascript">
17
			function deleteAnnouncement(title) {
18
				return confirm('Are you sure you want to delete announcement ' + title + '?');
19
			}
20
		</script>
21
	</head>
22
	<body>
23
		<div id="center">
24
			<div id="wrapper">
25
				<div class="wrapper_shadowleft">
26
					<div class="wrapper_shadowright">
27
						<div id="container">
28
							<jsp:include page="/pages/banner.jsp" />
29
							<jsp:include page="/pages/menu.jsp" />
30
							
31
                            <div id="leftcolumn">
32
								<b class="curved_top">
33
									<b class="curved_t1"></b>
34
									<b class="curved_t2"></b>
35
									<b class="curved_t3"></b>
36
									<b class="curved_t4"></b>
37
								</b>
38
                                <div class="curved_container clearfix">
39
                                    <div class="featured_top leftcolumn_top">Communities</div>
40
                                    <s:if test="%{displayMyDriverMenu}">
41
                                        <jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
42
                                    </s:if>
43
                                    <s:else>
44
                                        <s:set name="action" value="%{'ViewCommunityAnnouncements.action'}"/>
45
                                        <jsp:include page="/pages/community/allCommunitiesMenu.jsp" />									
46
                                    </s:else>
47
                                </div>
48
								<b class="curved_bottom">
49
									<b class="curved_b4"></b>
50
									<b class="curved_b3"></b>
51
									<b class="curved_b2"></b>
52
									<b class="curved_b1"></b>
53
								</b>
54
							</div>
55
							<div id="maincolumn2">
56
                            	<div id="communityPage">
57
                                  <b class="curved_top">
58
                                      <b class="curved_t1"></b>
59
                                      <b class="curved_t2"></b>
60
                                      <b class="curved_t3"></b>
61
                                      <b class="curved_t4"></b>
62
                                  </b>
63
                                  <div class="curved_container clearfix">
64
                                      <div class="featured_top communityPage_top">
65
                                          <div class="right communityField">
66
                                              <s:if test="%{displayJoin}">
67
                                                  <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>">
68
                                                      <span>Join</span>
69
                                                  </a>
70
                                              </s:if>
71
                                              <s:if test="%{displayLeave}">
72
                                                  <a class="ovalbutton" 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>">
73
                                                      <span>Leave</span>
74
                                                  </a>
75
                                              </s:if>
76
                                          </div>
77
                                          
78
                                          <img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/communities.png" alt="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="%{1}"/>
85
                                      <jsp:include page="/pages/community/tabsMenu.jsp" />									
86
                                      <div class="tab-wrapper clearfix">
87
                                          <div class="mydriveritem col1">
88
                                              <div class="communityAdminButtons">
89
                                                  <s:if test="%{displayAdd}">
90
                                                      <a class="ovalbutton right" 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>">
91
                                                          <span>New announcement</span>
92
                                                      </a>
93
                                                  </s:if>
94
                                              </div>
95
                                              <s:if test="recommendations.size() == 0">
96
	                                              <div class="communityField">
97
    	                                              <span class="communityFieldComments">This community has no announcements.</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="recommendations.size()" />
105
                                                      announcement(s)
106
                                                      </span>
107
                                                  </div>
108
                                                  <s:iterator value="recommendations">
109
                                                     <div class="communityField">
110
                                                     	<span class="communityFieldNm">
111
                                                          <a name="<s:property value="resourceId" />"></a>
112
                                                          <s:property value="dateFormat.format(generationDate)" />:
113
                                                          <s:property value="title" />
114
                                                          </span>
115
                                                      </div>
116
                                                      <div class="communityField">
117
                                                          <s:property escape="false" value="content" />
118
                                                      </div>
119
                                                      <s:if test="%{displayDelete}">
120
                                                          <form id="viewCommunityAnnouncementsAction<s:property value="resourceId" />" onsubmit="return deleteAnnouncement('<s:property value="title" />');" action="DeleteCommunityAnnouncement.action" method="POST">
121
                                                              <input type="hidden" id="viewCommunityAnnouncementsActionCommunityId" name="communityId" value="<s:property value="communityId" />" />
122
                                                              <input type="hidden" id="viewCommunityAnnouncementsActionAnnouncementId" name="announcementId" value="<s:property value="resourceId" />" />
123
                                                              <div class="communityField">
124
                                                              
125
                                                              <s:if test="%{displayMyDriverMenu}">
126
                                                                  <input type="hidden" id=viewCommunityAnnouncementsActionDisplayMyDriverMenu" name="displayMyDriverMenu" value="true" />
127
                                                              </s:if>
128
                                                              <s:if test="%{initialLetter != null}">
129
                                                                  <input type="hidden" id=viewCommunityAnnouncementsActionInitialLetter" name="initialLetter" value="<s:property value="initialLetter" />" />
130
                                                              </s:if>
131
                                                              </div>
132
                                                              <div class="communityField">
133
                                                                  <input type="submit" id="viewCommunityAnnouncementActionDelete" value="Delete" class="ovalbutton" />
134
                                                              </div>
135
                                                          </form>
136
                                                      </s:if>
137
                                                  </s:iterator>
138
                                              </s:else>
139
                                          </div>
140
                                      </div>										
141
                                  </div>
142
                                  <b class="curved_bottom">
143
                                      <b class="curved_b4"></b>
144
                                      <b class="curved_b3"></b>
145
                                      <b class="curved_b2"></b>
146
                                      <b class="curved_b1"></b>
147
                                  </b>
148
                                </div>
149
							</div>
150
							<div id="footer">
151
                                <s:action name="FooterPage" executeResult="true"/>
152
                            </div>
153
                        </div>
154
					</div>
155
				</div>
156
			</div>
157
		</div>
158
	</body>
159
</html>
(15-15/22)