Project

General

Profile

1 6568 thanos.pap
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3 7783 natalia.ma
<!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 6568 thanos.pap
	<head>
7
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8 7672 thanos.pap
		<title>DRIVER Communities</title>
9 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" />
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 7672 thanos.pap
		<!-- MB - ADD mootools here: new version -->
13 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>
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 7672 thanos.pap
		<script type="text/javascript">
17
			function deleteAnnouncement(title) {
18
				return confirm('Are you sure you want to delete announcement ' + title + '?');
19
			}
20
		</script>
21 6568 thanos.pap
	</head>
22
	<body>
23
		<div id="center">
24
			<div id="wrapper">
25 7399 katerina.i
				<div class="wrapper_shadowleft">
26
					<div class="wrapper_shadowright">
27 6568 thanos.pap
						<div id="container">
28
							<jsp:include page="/pages/banner.jsp" />
29 7672 thanos.pap
							<jsp:include page="/pages/menu.jsp" />
30 7783 natalia.ma
31
                            <div id="leftcolumn">
32 7672 thanos.pap
								<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 7739 natalia.ma
                                <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 7672 thanos.pap
								<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 6568 thanos.pap
							</div>
55 7672 thanos.pap
							<div id="maincolumn2">
56 7739 natalia.ma
                            	<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 7783 natalia.ma
                                          <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 8059 natalia.ma
                                                      <span>Join</span>
69 7783 natalia.ma
                                                  </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 8059 natalia.ma
                                                      <span>Leave</span>
74 7783 natalia.ma
                                                  </a>
75
                                              </s:if>
76
                                          </div>
77
78 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="Communities" width="16" height="16" class="absmiddle" />
79 7739 natalia.ma
                                          &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 7783 natalia.ma
                                              <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 7739 natalia.ma
                                              <s:if test="recommendations.size() == 0">
96 7783 natalia.ma
	                                              <div class="communityField">
97
    	                                              <span class="communityFieldComments">This community has no announcements.</span>
98
                                                  </div>
99 7739 natalia.ma
                                              </s:if>
100
                                              <s:else>
101
                                                  <div class="communityField">
102 7783 natalia.ma
                                                  	<span class="communityFieldComments">
103 7739 natalia.ma
                                                      This community has
104
                                                      <s:property value="recommendations.size()" />
105 7783 natalia.ma
                                                      announcement(s)
106
                                                      </span>
107 7739 natalia.ma
                                                  </div>
108
                                                  <s:iterator value="recommendations">
109
                                                     <div class="communityField">
110 7783 natalia.ma
                                                     	<span class="communityFieldNm">
111 7803 thanos.pap
                                                          <a name="<s:property value="resourceId" />"></a>
112
                                                          <s:property value="dateFormat.format(generationDate)" />:
113
                                                          <s:property value="title" />
114 7783 natalia.ma
                                                          </span>
115 7739 natalia.ma
                                                      </div>
116
                                                      <div class="communityField">
117 7803 thanos.pap
                                                          <s:property escape="false" value="content" />
118 7739 natalia.ma
                                                      </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 6568 thanos.pap
							</div>
150 7739 natalia.ma
							<div id="footer">
151 12995 katerina.i
                                <s:action name="FooterPage" executeResult="true"/>
152 7739 natalia.ma
                            </div>
153
                        </div>
154 6568 thanos.pap
					</div>
155
				</div>
156
			</div>
157
		</div>
158
	</body>
159 12963 antonis.le
</html>