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 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" />
12
		<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" />
13
		<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
14 7672 thanos.pap
		<!-- MB - ADD mootools here: new version -->
15 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>
16
		<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>
17 5847 thanos.pap
		<script type="text/javascript" language="javascript">
18
			function checkEdit() {
19
				var name = document.getElementById('editCommunityActionName');
20
				var description = document.getElementById('editCommunityActionDescription');
21
				if ((name.value == null) || (name.value == '')) {
22
					alert('Please enter a name');
23
					name.focus();
24
					return false;
25
				}
26
				if ((description.value == null) || (description.value == '')) {
27
					alert('Please enter a description');
28
					description.focus();
29
					return false;
30
				}
31
				return true;
32
			}
33
34
			function resetEdit() {
35
				var name = document.getElementById('editCommunityActionName');
36
				var name2 = document.getElementById('editCommunityActionName2');
37
				var description = document.getElementById('editCommunityActionDescription');
38
				var description2 = document.getElementById('editCommunityActionDescription2');
39
				name.value = name2.value;
40
				description.value = description2.value;
41
				name.focus();
42 7672 thanos.pap
				return false;
43
			}
44 4894 thanos.pap
		</script>
45
	</head>
46 7783 natalia.ma
	<body onLoad="resetEdit();">
47 5847 thanos.pap
		<div id="center">
48
			<div id="wrapper">
49 7399 katerina.i
				<div class="wrapper_shadowleft">
50
					<div class="wrapper_shadowright">
51 5847 thanos.pap
						<div id="container">
52
							<jsp:include page="/pages/banner.jsp" />
53 7672 thanos.pap
							<jsp:include page="/pages/menu.jsp" />
54
							<p class="clear" />
55 7783 natalia.ma
							<div id="leftcolumn">
56 7672 thanos.pap
								<b class="curved_top">
57
									<b class="curved_t1"></b>
58
									<b class="curved_t2"></b>
59
									<b class="curved_t3"></b>
60
									<b class="curved_t4"></b>
61
								</b>
62 7783 natalia.ma
                                 <div class="curved_container clearfix">
63
                                    <div class="featured_top leftcolumn_top">Communities</div>
64
65
                                    <s:if test="%{displayMyDriverMenu}">
66
                                        <jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
67
                                    </s:if>
68
                                    <s:else>
69
                                        <s:set name="action" value="%{'ViewCommunity.action'}"/>
70
                                        <jsp:include page="/pages/community/allCommunitiesMenu.jsp" />
71
                                    </s:else>
72
                                 </div>
73 7672 thanos.pap
								<b class="curved_bottom">
74
									<b class="curved_b4"></b>
75
									<b class="curved_b3"></b>
76
									<b class="curved_b2"></b>
77
									<b class="curved_b1"></b>
78
								</b>
79 5847 thanos.pap
							</div>
80 7672 thanos.pap
							<div id="maincolumn2">
81 7783 natalia.ma
                            	<div id="communityPage">
82 7672 thanos.pap
								<b class="curved_top">
83
									<b class="curved_t1"></b>
84
									<b class="curved_t2"></b>
85
									<b class="curved_t3"></b>
86
									<b class="curved_t4"></b>
87
								</b>
88
								<div class="curved_container clearfix">
89 7783 natalia.ma
									<div class="featured_top communityPage_top">
90 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" class="absmiddle" />
91 7672 thanos.pap
										&nbsp;
92
										<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>">
93
											<s:property value="community.name" />
94
										</a>
95 5847 thanos.pap
									</div>
96 7783 natalia.ma
                                    <s:set name="selectedTab" value="%{0}"/>
97 7672 thanos.pap
									<jsp:include page="/pages/community/tabsMenu.jsp" />
98
									<div class="tab-wrapper clearfix">
99
										<div class="mydriveritem col1">
100 7783 natalia.ma
											<form id="editCommunityAction" onSubmit="return checkEdit();" onReset="return resetEdit();" action="EditCommunity2.action" method="POST">
101 7672 thanos.pap
												<input type="hidden" id="editCommunityActionCommunityId" name="communityId" value="<s:property value="communityId" />" />
102
												<input type="hidden" id="editCommunityActionName2" value="<s:property value="name" />" />
103
												<input type="hidden" id="editCommunityActionDescription2" value="<s:property value="description" />" />
104 7783 natalia.ma
												<div class="communityField">
105
                                                	<span class="communityFieldNm">Name</span>
106
                                                 </div>
107
												<div class="communityField">
108 7919 thanos.pap
													<input type="text" name="name" value="" id="editCommunityActionName" maxlength="<s:property value="smallFieldLength" />" size="<s:property value="smallFieldLength" />" />
109
													(max <s:property value="smallFieldLength" /> chars)
110 7672 thanos.pap
												</div>
111 7783 natalia.ma
												<div class="communityField">
112
                                                	<span class="communityFieldNm">Description</span>
113
                                                </div>
114 7672 thanos.pap
												<div class="descLine">
115 7919 thanos.pap
													<input type="text" name="description" id="editCommunityActionDescription" maxlength="<s:property value="mediumFieldLength" />" size="<s:property value="mediumFieldLength" />" />
116
													(max <s:property value="mediumFieldLength" /> chars)
117 7672 thanos.pap
												</div>
118 7783 natalia.ma
                                                <div class="communityField">&nbsp;</div>
119
												<div class="communityField">
120
													<input type="submit" id="editCommunityActionEdit" value="Change" />
121
													<input type="reset" id="editCommunityActionReset" value="Reset"  />
122 7672 thanos.pap
												</div>
123
											</form>
124 5847 thanos.pap
										</div>
125
									</div>
126
								</div>
127 7672 thanos.pap
								<b class="curved_bottom">
128
									<b class="curved_b4"></b>
129
									<b class="curved_b3"></b>
130
									<b class="curved_b2"></b>
131
									<b class="curved_b1"></b>
132
								</b>
133 5847 thanos.pap
							</div>
134 7783 natalia.ma
							</div>
135
							<div id="footer">
136 12995 katerina.i
                            	<s:action name="FooterPage" executeResult="true"/>
137
                        	</div>
138 7783 natalia.ma
                    </div>
139 5847 thanos.pap
					</div>
140
				</div>
141
			</div>
142 4894 thanos.pap
		</div>
143
	</body>
144 12963 antonis.le
</html>