Project

General

Profile

1 5847 thanos.pap
<%@ taglib prefix="s" uri="/struts-tags"%>
2
<%@ page contentType="text/html; charset=UTF-8"%>
3 8398 katerina.i
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 5847 thanos.pap
	<head>
9
		<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
		<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/smarthoverbox.js"></script>
18 5847 thanos.pap
		<script type="text/javascript" language="javascript">
19
			function checkEdit() {
20
				var content = document.getElementById('editForumPostActionContent');
21
				if ((content.value == null) || (content.value == '')) {
22
					alert('Please enter content');
23
					content.focus();
24
					return false;
25
				}
26
				return true;
27
			}
28
29
			function resetEdit() {
30 7672 thanos.pap
				var content = document.getElementById('editForumThreadPostContent');
31 5847 thanos.pap
				var content2 = document.getElementById('editForumPostActionContent2');
32
				content.value = content2.value;
33
				content.focus();
34 7919 thanos.pap
			}
35
36
			function checkMaxLength(maxLength) {
37
				var content = document.getElementById('editForumPostActionContent');
38
				if (content.value.length > maxLength)
39
					content.value = content.value.substring(0, maxLength);
40
			}
41 5847 thanos.pap
		</script>
42
	</head>
43 6568 thanos.pap
	<body onload="resetEdit();">
44 5847 thanos.pap
		<div id="center">
45
			<div id="wrapper">
46 7399 katerina.i
				<div class="wrapper_shadowleft">
47
					<div class="wrapper_shadowright">
48 5847 thanos.pap
						<div id="container">
49
							<jsp:include page="/pages/banner.jsp" />
50 7672 thanos.pap
							<jsp:include page="/pages/menu.jsp" />
51
							<p class="clear" />
52
							<div id="leftcolumnNH">
53
								<b class="curved_top">
54
									<b class="curved_t1"></b>
55
									<b class="curved_t2"></b>
56
									<b class="curved_t3"></b>
57
									<b class="curved_t4"></b>
58
								</b>
59
								<s:if test="%{displayMyDriverMenu}">
60
									<jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
61
								</s:if>
62
								<s:else>
63
									<s:set name="action" value="%{'ViewForumThreads.action'}"/>
64
									<jsp:include page="/pages/community/allCommunitiesMenu.jsp" />
65
								</s:else>
66
								<b class="curved_bottom">
67
									<b class="curved_b4"></b>
68
									<b class="curved_b3"></b>
69
									<b class="curved_b2"></b>
70
									<b class="curved_b1"></b>
71
								</b>
72 5847 thanos.pap
							</div>
73 7672 thanos.pap
							<div id="maincolumn2">
74
								<b class="curved_top">
75
									<b class="curved_t1"></b>
76
									<b class="curved_t2"></b>
77
									<b class="curved_t3"></b>
78
									<b class="curved_t4"></b>
79
								</b>
80
								<div class="curved_container clearfix">
81
									<div class="featured_top petroltop">
82 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" />
83 7672 thanos.pap
										&nbsp;
84
										<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>">
85
											<s:property value="community.name" />
86
										</a>
87 5847 thanos.pap
									</div>
88 7919 thanos.pap
                                    <s:set name="selectedTab" value="%{2}"/>
89 7672 thanos.pap
									<jsp:include page="/pages/community/tabsMenu.jsp" />
90
									<div class="tab-wrapper clearfix">
91
										<div class="mydriveritem col1">
92 7919 thanos.pap
											<div class="communitySubmenu">Edit post</div>
93
											<div class="communityAdminButtons">
94
												<a class="ovalbutton" href="ViewForumThread.action?communityId=<s:property value="communityId" />&amp;threadId=<s:property value="threadId" /><s:if test="%{displayMyDriverMenu}">&amp;displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&amp;initialLetter=<s:property value="initialLetter" /></s:if>">
95
													<span>Back to discussion</span>
96
												</a>
97
											</div>
98 7672 thanos.pap
											<form id="editForumPostAction" onsubmit="return checkEdit();" onreset="return resetEdit();" action="EditForumPost2.action" method="POST">
99
												<input type="hidden" name="communityId" value="<s:property value="communityId" />" />
100
												<input type="hidden" name="threadId" value="<s:property value="threadId" />" />
101
												<input type="hidden" name="postId" value="<s:property value="postId" />" />
102
												<input type="hidden" id="editForumPostActionContent2" value="<s:property value="content" />" />
103 7919 thanos.pap
												<div class="communityField">
104
													<span class="communityFieldNm">Content</span>
105
													(max <s:property value="largeFieldLength" /> chars)
106 7672 thanos.pap
												</div>
107 7919 thanos.pap
												<div class="communityField">
108
													<textarea id="editForumPostActionContent" name="content" cols="60" rows="5" onkeyup="checkMaxLength(<s:property value="largeFieldLength" />);"><s:property value="content" /></textarea>
109
												</div>
110 7672 thanos.pap
												<div class="fieldHdr">
111
													<input type="submit" value="Edit" class="ovalbutton" />
112
													<input type="reset" value="Reset" class="ovalbutton" />
113
												</div>
114
											</form>
115 5847 thanos.pap
										</div>
116
									</div>
117
								</div>
118 7672 thanos.pap
								<b class="curved_bottom">
119
									<b class="curved_b4"></b>
120
									<b class="curved_b3"></b>
121
									<b class="curved_b2"></b>
122
									<b class="curved_b1"></b>
123
								</b>
124 5847 thanos.pap
							</div>
125 12995 katerina.i
							 <s:action name="FooterPage" executeResult="true"/>
126 5847 thanos.pap
						</div>
127
					</div>
128
				</div>
129
			</div>
130
		</div>
131
	</body>
132 12963 antonis.le
</html>