Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8"%>
2
<%@ taglib prefix="s" uri="/struts-tags"%>
3
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
4

    
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
6
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8

    
9
    <head>
10
        <link href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/style.css" rel="stylesheet" type="text/css" />        
11
        <sx:head parseContent="true"/>
12
        <title>DRIVER System Announcements</title>
13
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14
        <link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
15
        <script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/announcements.js"></script>
16
        <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" />    </head>
17
    <body>
18
        <div id="center">
19
            <div id="wrapper">
20
                <div class="wrapper_shadowleft">
21
                    <div class="wrapper_shadowright">
22
                        <div id="container">
23
                            <jsp:include page="/pages/banner.jsp" />
24
                            <jsp:include page="/pages/menu.jsp" />
25
                            <div id="leftcolumn">
26
                                <b class="curved_top">
27
                                    <b class="curved_t1"></b>
28
                                    <b class="curved_t2"></b>
29
                                    <b class="curved_t3"></b>
30
                                    <b class="curved_t4"></b>
31
                                </b>
32
                                <div class="curved_container clearfix">
33
                                    <div class="featured_top leftcolumn_top">DRIVER admin</div>
34
                                    <p>&nbsp;</p>
35
                                </div>
36
                                <b class="curved_bottom">
37
                                    <b class="curved_b4"></b>
38
                                    <b class="curved_b3"></b>
39
                                    <b class="curved_b2"></b>
40
                                    <b class="curved_b1"></b>
41
                                </b>
42
                            </div>
43
                            <div id="maincolumn2">
44
                                <div id="communityPage">
45
                                    <b class="curved_top">
46
                                        <b class="curved_t1"></b>
47
                                        <b class="curved_t2"></b>
48
                                        <b class="curved_t3"></b>
49
                                        <b class="curved_t4"></b>
50
                                    </b>
51
                                    <div class="curved_container clearfix">
52
                                        <div class="featured_top communityPage_top">
53
                                        	Announcements
54
                                        </div>
55
                                        <div class="announcementSystem">
56
                                            <sx:tabbedpanel id="announcementsTabs">
57
                                                <sx:div id="newAnouncement" label="New Announcement" labelposition="top">
58
                                                    <div class="announcementSystemField">
59
                                                        <s:textfield name="newAnnouncement.title" id="newAnnouncement.title" label="Title" />
60
                                                    </div>
61
                                                    <div class="announcementSystemField">
62
                                                        <s:checkbox labelposition="left" label="Show Title" id="newAnnouncement.showTitle" name="newAnnouncement.showTitle" />
63
                                                    </div>
64
                                                    <div class="announcementSystemField">
65
                                                        <s:checkbox labelposition="left" label="Is Active" id="newAnnouncement.active" name="newAnnouncement.active" />
66
                                                    </div>
67
                                                    <div class="announcementSystemField">
68
                                                        <span class="announcementSystemFieldNm">Content</span>
69
                                                    </div>
70
                                                    <div class="announcementSystemField">
71
                                                        <s:textarea id="newAnnouncement.content" name="newAnnouncement.content" cols="80" rows="10" cssStyle="background-color: #FCFCFC; border: 1px solid #A0A0A0; min-height:100px; max-height:inherit;" />
72
                                                    </div>
73
                                                    <div class="announcementSystemField">
74
                                                        <sx:datetimepicker id = "newAnnouncement.expirationDate" name="newAnnouncement.expirationDate" label="Expiration Date (dd-MM-yyyy)" displayFormat="dd-MM-yyyy" />
75
                                                    </div>
76
                                                    <div class="announcementSystemField">
77
                                                        <input type="button" onclick="addNew()" name="AddNew" id="AddNew" value = "Insert">
78
                                                    </div>
79
                                                </sx:div>
80

    
81
                                                <sx:div id="oldAnouncement" label="Manage Announcements" >
82
                                                    <sx:div id = "announcementTitles" >
83
                                                        <div class="announcementSystemField">
84
                                                            <span class="announcementSystemFieldNm">Announcement IDs</span>&nbsp;&nbsp;
85
                                                            <span class="announcementSystemFieldComments"> - lick on an ID to see the announcement content</span>
86
                                                        </div>
87
                                                        <div class="announcementSystemField">
88
                                                            <SELECT neme = "announcementIdsControl" id = "announcementIdsControl"  style = "Width: 80%" size="5" onchange="showSelected()" >
89
                                                            </SELECT>
90
                                                        </div>
91
                                                        <div class="announcementSystemField">
92
                                                            <input type="button" onclick="loadIds()" name="Refresh" id="Refresh"  value="Refresh">
93
                                                            <input type="button" onclick="up()" name="Up" id="Up" value = "Up" >
94
                                                            <input type="button" onclick="down()" name="Down" id="Down" value="Down">
95
                                                            <input type="button"  onclick="remove()" name="Remove" id="Remove" value="Remove">
96
                                                        </div>
97
                                                    </sx:div>
98
                                                    <div class="announcementSystemField"><hr></div>
99
                                                    <div class="announcementSystemField">
100
                                                        <s:textfield name="announcement.title" id="announcement.title" label="Title" />
101
                                                    </div>
102
                                                    <div class="announcementSystemField">
103
                                                        <s:checkbox labelposition="left" label="Show Title" id="announcement.showTitle" name="announcement.showTitle" />
104
                                                    </div>
105
                                                    <div class="announcementSystemField">
106
                                                        <s:checkbox labelposition="left" label="Is Active" id="announcement.active" name="announcement.active" />
107
                                                    </div>
108
                                                    <div class="announcementSystemField">
109
                                                   	Content
110
                                                    </div>
111
                                                    <div class="announcementSystemField">
112
                                                        <s:textarea id="announcement.content" name="announcement.content" cols="50" rows="10" />
113
                                                    </div>
114
                                                    <div class="announcementSystemField">
115
                                                        <sx:datetimepicker id = "announcement.expirationDate" name="announcement.expirationDate" label="Expiration Date (dd-MM-yyyy)" displayFormat="dd-MM-yyyy" />
116
                                                    </div>
117
                                                    <div class="announcementSystemField">
118
                                                        <input type="button" title="Update the announcement" onclick="update()" name="Update" id="Update" value="Update">
119
                                                    </div>
120
                                                </sx:div>
121
                                            </sx:tabbedpanel>
122
                                        </div>
123
                                    </div>
124
                                    <b class="curved_bottom">
125
                                        <b class="curved_b4"></b>
126
                                        <b class="curved_b3"></b>
127
                                        <b class="curved_b2"></b>
128
                                        <b class="curved_b1"></b>
129
                                    </b>
130
                                </div>
131
                            </div>
132
                            <div id="footer">
133
                                 <s:action name="FooterPage" executeResult="true"/>  
134
                            </div>
135
                        </div>
136

    
137
                    </div>
138
                </div>
139
            </div>
140
        </div>
141
    </body>
142
</html>
(1-1/2)