1
|
<%@ taglib prefix="s" uri="/struts-tags"%>
|
2
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
3
|
|
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
|
<head>
|
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
|
<title>DRIVER Communities</title>
|
11
|
<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
|
<!-- MB - ADD mootools here: new version -->
|
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-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
|
<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
|
return false;
|
43
|
}
|
44
|
</script>
|
45
|
</head>
|
46
|
<body onLoad="resetEdit();">
|
47
|
<div id="center">
|
48
|
<div id="wrapper">
|
49
|
<div class="wrapper_shadowleft">
|
50
|
<div class="wrapper_shadowright">
|
51
|
<div id="container">
|
52
|
<jsp:include page="/pages/banner.jsp" />
|
53
|
<jsp:include page="/pages/menu.jsp" />
|
54
|
<p class="clear" />
|
55
|
<div id="leftcolumn">
|
56
|
<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
|
<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
|
<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
|
</div>
|
80
|
<div id="maincolumn2">
|
81
|
<div id="communityPage">
|
82
|
<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
|
<div class="featured_top communityPage_top">
|
90
|
<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
|
|
92
|
<a href="ViewCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
93
|
<s:property value="community.name" />
|
94
|
</a>
|
95
|
</div>
|
96
|
<s:set name="selectedTab" value="%{0}"/>
|
97
|
<jsp:include page="/pages/community/tabsMenu.jsp" />
|
98
|
<div class="tab-wrapper clearfix">
|
99
|
<div class="mydriveritem col1">
|
100
|
<form id="editCommunityAction" onSubmit="return checkEdit();" onReset="return resetEdit();" action="EditCommunity2.action" method="POST">
|
101
|
<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
|
<div class="communityField">
|
105
|
<span class="communityFieldNm">Name</span>
|
106
|
</div>
|
107
|
<div class="communityField">
|
108
|
<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
|
</div>
|
111
|
<div class="communityField">
|
112
|
<span class="communityFieldNm">Description</span>
|
113
|
</div>
|
114
|
<div class="descLine">
|
115
|
<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
|
</div>
|
118
|
<div class="communityField"> </div>
|
119
|
<div class="communityField">
|
120
|
<input type="submit" id="editCommunityActionEdit" value="Change" />
|
121
|
<input type="reset" id="editCommunityActionReset" value="Reset" />
|
122
|
</div>
|
123
|
</form>
|
124
|
</div>
|
125
|
</div>
|
126
|
</div>
|
127
|
<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
|
</div>
|
134
|
</div>
|
135
|
<div id="footer">
|
136
|
<s:action name="FooterPage" executeResult="true"/>
|
137
|
</div>
|
138
|
</div>
|
139
|
</div>
|
140
|
</div>
|
141
|
</div>
|
142
|
</div>
|
143
|
</body>
|
144
|
</html>
|