This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
updateservice.jsp
84 lines (74 loc) · 3.18 KB
/
updateservice.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<jsp:include page="header.jsp" flush="true" />
<%-- $HeadURL$
This file is part of deegree, http://deegree.org/
Copyright (C) 2001-2009 by:
- Department of Geography, University of Bonn -
and
- lat/lon GmbH -
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact information:
lat/lon GmbH
Aennchenstr. 19, 53177 Bonn
Germany
http://lat-lon.de/
Department of Geography, University of Bonn
Prof. Dr. Klaus Greve
Postfach 1147, 53001 Bonn
Germany
http://www.geographie.uni-bonn.de/deegree/
e-mail: info@deegree.org
--%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="logotable.jsp" flush="true" />
<jsp:include page="menutable.jsp" flush="true" />
<%@ page import="org.deegree.security.drm.model.*"%>
<%@ page import="org.deegree.portal.standard.security.control.*"%>
<%@ page import="java.util.*"%>
<%@ page import="org.deegree.framework.util.*"%>
<script language="JavaScript1.2" type="text/javascript" src="js/updateservice.js"></script>
<script language="JavaScript1.2" type="text/javascript">
function init() {
services = {}
<%
Service oldService = (Service)request.getAttribute("OLDSERVICE");
Service newService = (Service)request.getAttribute("NEWSERVICE");
out.println("oldservice = {}");
out.println("oldservice[\"title\"] = '" + (oldService.getServiceTitle() == null ? "(kein Titel)" : oldService.getServiceTitle()) + "'");
out.println("oldservice.objects = {}");
out.println("oldservice.type = '" + oldService.getServiceType() + "'");
out.println("oldservice.address = '" + oldService.getAddress() + "'");
for(StringPair pair : oldService.getObjects()){
out.println("oldservice.objects[\"" + pair.first + "\"] = '" + pair.second.replace("'", "\\'") + "'");
}
out.println("newservice = {}");
out.println("newservice[\"title\"] = '" + (newService.getServiceTitle() == null ? "(kein Titel)" : newService.getServiceTitle()) + "'");
out.println("newservice.objects = {}");
out.println("newservice.type = '" + newService.getServiceType() + "'");
out.println("newservice.address = '" + newService.getAddress() + "'");
for(StringPair pair : newService.getObjects()){
out.println("newservice.objects[\"" + pair.first + "\"] = '" + pair.second.replace("'", "\\'") + "'");
}
%>
generateComparison()
}
</script>
<table class="maintablebig">
<tr>
<td valign="top">
<h2>Service aktualisieren</h2>
<div id="comparison">
</div>
</td>
</tr>
</table>
<jsp:include page="footer.jsp" flush="true" />