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
|
|
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 checkCreate() {
|
19
|
var name = document.getElementById('createCommunityActionName');
|
20
|
var description = document.getElementById('createCommunityActionDescription');
|
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 resetCreate() {
|
35
|
var name = document.getElementById('createCommunityActionName');
|
36
|
var description = document.getElementById('createCommunityActionDescription');
|
37
|
name.focus();
|
38
|
}
|
39
|
</script>
|
40
|
</head>
|
41
|
<body onLoad="resetCreate();">
|
42
|
<div id="center">
|
43
|
<div id="wrapper">
|
44
|
<div class="wrapper_shadowleft">
|
45
|
<div class="wrapper_shadowright">
|
46
|
<div id="container">
|
47
|
<jsp:include page="/pages/banner.jsp" />
|
48
|
<jsp:include page="/pages/menu.jsp" />
|
49
|
<div id="leftcolumn">
|
50
|
<b class="curved_top">
|
51
|
<b class="curved_t1"></b>
|
52
|
<b class="curved_t2"></b>
|
53
|
<b class="curved_t3"></b>
|
54
|
<b class="curved_t4"></b>
|
55
|
</b>
|
56
|
<div class="curved_container clearfix">
|
57
|
<div class="featured_top leftcolumn_top">Communities</div>
|
58
|
<s:set name="action" value="%{'ViewCommunity.action'}"/>
|
59
|
<jsp:include page="/pages/community/allCommunitiesMenu.jsp" />
|
60
|
</div>
|
61
|
<b class="curved_bottom">
|
62
|
<b class="curved_b4"></b>
|
63
|
<b class="curved_b3"></b>
|
64
|
<b class="curved_b2"></b>
|
65
|
<b class="curved_b1"></b>
|
66
|
</b>
|
67
|
</div>
|
68
|
<div id="maincolumn2">
|
69
|
<div id="communityPage">
|
70
|
<b class="curved_top">
|
71
|
<b class="curved_t1"></b>
|
72
|
<b class="curved_t2"></b>
|
73
|
<b class="curved_t3"></b>
|
74
|
<b class="curved_t4"></b>
|
75
|
</b>
|
76
|
<div class="curved_container clearfix">
|
77
|
<div class="featured_top communityPage_top">
|
78
|
<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" />
|
79
|
|
80
|
Create a community
|
81
|
</div>
|
82
|
<div id="popularDocuments" class="tab-wrapper clearfix">
|
83
|
<div class="mydriveritem col1">
|
84
|
<form id="createCommunityAction" onSubmit="return checkCreate();" onReset="resetCreate();" action="CreateCommunity2.action" method="POST">
|
85
|
<div class="communityField">
|
86
|
<span class="communityFieldNm">Name</span>
|
87
|
</div>
|
88
|
<div class="communityField">
|
89
|
<input type="text" name="name" value="" id="createCommunityActionName" maxlength="<s:property value="smallFieldLength" /> " size="<s:property value="smallFieldLength" />" />
|
90
|
(max <s:property value="smallFieldLength" /> chars)
|
91
|
</div>
|
92
|
<div class="communityField">
|
93
|
<span class="communityFieldNm">Description</span>
|
94
|
</div>
|
95
|
<div class="communityField">
|
96
|
<input type="text" name="description" id="createCommunityActionDescription" maxlength="<s:property value="mediumFieldLength" />" size="<s:property value="mediumFieldLength" />" />
|
97
|
(max <s:property value="mediumFieldLength" /> chars)
|
98
|
</div>
|
99
|
<div class="communityField"> </div>
|
100
|
<div class="communityField">
|
101
|
<input type="submit" id="createCommunityActionCreate" value="Create" />
|
102
|
<input type="reset" id="createCommunityActionReset" value="Reset" />
|
103
|
</div>
|
104
|
</form>
|
105
|
</div>
|
106
|
</div>
|
107
|
</div>
|
108
|
<b class="curved_bottom">
|
109
|
<b class="curved_b4"></b>
|
110
|
<b class="curved_b3"></b>
|
111
|
<b class="curved_b2"></b>
|
112
|
<b class="curved_b1"></b>
|
113
|
</b>
|
114
|
</div>
|
115
|
</div>
|
116
|
<div id="footer">
|
117
|
<s:action name="FooterPage" executeResult="true"/>
|
118
|
</div>
|
119
|
</div>
|
120
|
</div>
|
121
|
</div>
|
122
|
</div>
|
123
|
</div>
|
124
|
</body>
|
125
|
</html>
|