2009-06-07 20:59:43 +02:00
|
|
|
<%@ page import="java.text.DateFormat" %>
|
|
|
|
<%@ page import="java.text.SimpleDateFormat" %>
|
|
|
|
<%@ page import="java.util.Calendar" %>
|
2011-10-18 14:29:29 +02:00
|
|
|
|
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<%
|
|
|
|
Calendar calendar = Calendar.getInstance(request.getLocale());
|
|
|
|
calendar.setTimeInMillis(System.currentTimeMillis());
|
|
|
|
DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, request.getLocale());
|
|
|
|
String todayString = dateFormat.format(calendar.getTime());
|
|
|
|
%>
|
2011-10-18 14:29:29 +02:00
|
|
|
<!DOCTYPE HTML>
|
2009-06-07 20:59:43 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2011-10-18 14:29:29 +02:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
|
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/print.css"/>
|
|
|
|
|
2012-02-12 06:55:42 +01:00
|
|
|
<script type='text/javascript' src='../js/mootools-core.js'></script>
|
|
|
|
<script type='text/javascript' src='../js/mootools-more.js'></script>
|
2011-10-18 14:29:29 +02:00
|
|
|
<script type='text/javascript' src='../js/core.js'></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var mapId = '${mindmap.id}';
|
|
|
|
var mapXml = '${mapXml}';
|
|
|
|
var mindReady = false;
|
|
|
|
$(document).addEvent('loadcomplete', function(resource) {
|
|
|
|
mindReady = resource == 'mind' ? true : mindReady;
|
|
|
|
if (mindReady) {
|
|
|
|
|
|
|
|
var editorProperties = {zoom:0.85,saveOnLoad:true,collab:'standalone',readOnly:true};
|
|
|
|
designer = buildDesigner(editorProperties);
|
|
|
|
|
|
|
|
var domDocument = core.Utils.createDocumentFromText(mapXml);
|
2012-02-26 03:32:15 +01:00
|
|
|
var serializer = mindplot.persistence.MLSerializerFactory.getSerializerFromDocument(domDocument);
|
2011-10-18 14:29:29 +02:00
|
|
|
var mindmap = serializer.loadFromDom(domDocument, mapId);
|
|
|
|
|
|
|
|
// Now, load the map ...
|
|
|
|
designer.loadMap(mindmap);
|
|
|
|
|
|
|
|
$('zoomIn').addEvent('click', function() {
|
|
|
|
designer.zoomIn();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('zoomOut').addEvent('click', function() {
|
|
|
|
designer.zoomOut();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2009-06-07 20:59:43 +02:00
|
|
|
</head>
|
|
|
|
<body onload="setTimeout('print()', 5)">
|
2011-10-18 14:29:29 +02:00
|
|
|
|
|
|
|
<div id="waitDialog" style="display:none">
|
|
|
|
<div id="waitingContainer">
|
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
|
|
|
Loading ...
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="errorDialog" style="display:none">
|
|
|
|
<div id="errorContainer">
|
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
|
|
|
Unexpected error loading your map :(
|
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
2011-10-18 14:29:29 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="printHeader">
|
|
|
|
<div id="printLogo"></div>
|
|
|
|
<div id="headerTitle">${mindmap.title}<span id="headerSubTitle"> (<%=todayString%>)</span></div>
|
|
|
|
</div>
|
|
|
|
<center>
|
|
|
|
<div id="mindplot"></div>
|
|
|
|
</center>
|
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
</body>
|
2011-10-18 14:29:29 +02:00
|
|
|
</html>
|