2012-06-30 07:26:21 +02:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
|
|
|
<%@include file="/jsp/init.jsp" %>
|
2012-04-05 19:18:13 +02:00
|
|
|
|
2012-08-16 02:28:51 +02:00
|
|
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
2012-04-05 19:18:13 +02:00
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
|
|
<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%>
|
|
|
|
|
2012-06-30 07:26:21 +02:00
|
|
|
<!DOCTYPE HTML>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-06-25 01:03:25 +02:00
|
|
|
<base href="${baseURL}/">
|
2012-04-05 19:18:13 +02:00
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
|
|
|
|
2011-10-18 14:29:29 +02:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
|
|
|
|
2012-06-04 01:23:31 +02:00
|
|
|
<link rel="stylesheet/less" type="text/css" href="css/embedded.less"/>
|
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
<style type="text/css" media="print">
|
|
|
|
@page {
|
|
|
|
size: A4 landscape;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
overflow: visible
|
|
|
|
}
|
|
|
|
|
|
|
|
#embFooter {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footerLogo {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#printLogo {
|
|
|
|
width: 114px;
|
|
|
|
height: 56px;
|
|
|
|
position: absolute;
|
|
|
|
display: list-item;
|
|
|
|
list-style-image: url(../images/logo-xsmall.png);
|
|
|
|
list-style-position: inside;
|
|
|
|
right: 10px;
|
|
|
|
bottom: -30px;
|
|
|
|
}
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
</style>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
<script type='text/javascript' src='js/mootools-core.js'></script>
|
|
|
|
<script type='text/javascript' src='js/mootools-more.js'></script>
|
|
|
|
<script type='text/javascript' src='js/core.js'></script>
|
2012-06-04 01:23:31 +02:00
|
|
|
<script type='text/javascript' src='js/less.js'></script>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
|
|
|
|
2011-10-18 14:29:29 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var mapId = '${mindmap.id}';
|
2012-04-05 19:18:13 +02:00
|
|
|
var mapXml = '${mindmap.xmlAsJsLiteral}';
|
2012-07-06 05:46:54 +02:00
|
|
|
|
|
|
|
$(document).addEvent('loadcomplete', function (resource) {
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
// Configure designer options ...
|
|
|
|
var options = loadDesignerOptions();
|
2012-07-06 05:46:54 +02:00
|
|
|
options.locale = '${locale}';
|
2012-04-05 19:18:13 +02:00
|
|
|
options.size.height = options.size.height + 50;
|
|
|
|
|
|
|
|
var userOptions = ${mindmap.properties};
|
|
|
|
options.zoom = userOptions.zoom;
|
|
|
|
|
|
|
|
// Set map id ...
|
|
|
|
options.mapId = mapId;
|
|
|
|
|
|
|
|
// Print is read only ...
|
|
|
|
options.readOnly = true;
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
// Build designer ...
|
|
|
|
var designer = buildDesigner(options);
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
// Load map from XML ...
|
2012-05-27 23:15:46 +02:00
|
|
|
var parser = new DOMParser();
|
|
|
|
var domDocument = parser.parseFromString(mapXml, "text/xml");
|
|
|
|
|
2012-07-06 05:46:54 +02:00
|
|
|
var mindmap = mindplot.PersistenceManager.loadFromDom(mapId, domDocument);
|
2012-04-05 19:18:13 +02:00
|
|
|
designer.loadMap(mindmap);
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-07-06 05:46:54 +02:00
|
|
|
$('zoomIn').addEvent('click', function () {
|
2012-04-05 19:18:13 +02:00
|
|
|
designer.zoomIn();
|
|
|
|
});
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-07-06 05:46:54 +02:00
|
|
|
$('zoomOut').addEvent('click', function () {
|
2012-04-05 19:18:13 +02:00
|
|
|
designer.zoomOut();
|
|
|
|
});
|
2011-10-18 14:29:29 +02:00
|
|
|
});
|
|
|
|
</script>
|
2009-06-07 20:59:43 +02:00
|
|
|
</head>
|
2012-04-05 19:18:13 +02:00
|
|
|
<body>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
<div id="mapContainer">
|
|
|
|
<div id="mindplot"></div>
|
|
|
|
<div id="printLogo"></div>
|
|
|
|
|
|
|
|
<div id="embFooter">
|
2012-07-02 03:42:18 +02:00
|
|
|
<a href="c/home" target="new">
|
2012-04-05 19:18:13 +02:00
|
|
|
<div id="footerLogo"></div>
|
|
|
|
</a>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
2012-04-05 19:18:13 +02:00
|
|
|
<div id="zoomOut" class="button"></div>
|
2012-07-16 04:40:13 +02:00
|
|
|
<div id="zoomIn" class="button"></div>
|
2012-04-05 19:18:13 +02:00
|
|
|
|
|
|
|
<div id="mapDetails">
|
2012-08-30 00:42:24 +02:00
|
|
|
<span class="title"><spring:message code="CREATOR"/>:</span><span><c:out value="${mindmap.creator.fullName}"/></span>
|
|
|
|
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span><c:out value="${mindmap.title}"/></span>
|
2011-10-18 14:29:29 +02:00
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
2011-10-18 14:29:29 +02:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
2012-08-31 04:26:15 +02:00
|
|
|
<%@ include file="/jsp/mindmapEditorFooter.jsf" %>
|
2009-06-07 20:59:43 +02:00
|
|
|
</body>
|
2011-10-18 14:29:29 +02:00
|
|
|
</html>
|