2009-06-07 20:59:43 +02:00
|
|
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.MindMap"--%>
|
|
|
|
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
|
|
|
<%--@elvariable id="user" type="com.wisemapping.model.User"--%>
|
2011-03-28 06:33:16 +02:00
|
|
|
<!DOCTYPE HTML>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
|
|
|
<%@ include file="/jsp/init.jsp" %>
|
|
|
|
<c:url value="mymaps.htm" var="shareMap">
|
|
|
|
<c:param name="action" value="collaborator"/>
|
|
|
|
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
|
|
|
</c:url>
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-03-13 17:24:26 +01:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
2009-07-09 22:06:08 +02:00
|
|
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
2011-10-15 03:56:20 +02:00
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
|
|
|
2011-10-15 07:52:44 +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">
|
|
|
|
<link rel="stylesheet/less" type="text/css" href="../css/editor2.css"/>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-03 02:05:17 +02:00
|
|
|
<script type='text/javascript'
|
|
|
|
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
2011-10-03 01:16:57 +02:00
|
|
|
<script type='text/javascript' src='../js/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
2011-10-15 03:56:20 +02:00
|
|
|
|
2009-06-11 19:43:45 +02:00
|
|
|
<script type="text/javascript" src="../dwr/engine.js"></script>
|
|
|
|
<script type="text/javascript" src="../dwr/interface/LoggerService.js"></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type='text/javascript' src='../js/core.js'></script>
|
2011-10-03 01:16:57 +02:00
|
|
|
<script type='text/javascript' src='../js/editorLib.js'></script>
|
2011-10-15 07:52:44 +02:00
|
|
|
<script type='text/javascript' src='../js/less-1.1.3.min.js'></script>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-02 17:22:09 +02:00
|
|
|
|
2011-10-15 07:52:44 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var mapId = '${mindmap.id}';
|
|
|
|
var mapXml = '${mapXml}';
|
2011-10-02 17:22:09 +02:00
|
|
|
var mindReady = false;
|
|
|
|
$(document).addEvent('loadcomplete', function(resource) {
|
|
|
|
mindReady = resource == 'mind' ? true : mindReady;
|
|
|
|
if (mindReady) {
|
|
|
|
|
|
|
|
var editorProperties = ${mindmap.properties};
|
|
|
|
editorProperties.collab = 'standalone';
|
|
|
|
|
|
|
|
var isTryMode = ${editorTryMode};
|
|
|
|
designer = buildDesigner(editorProperties, isTryMode);
|
|
|
|
|
|
|
|
var domDocument = core.Utils.createDocumentFromText(mapXml);
|
|
|
|
var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument);
|
|
|
|
var mindmap = serializer.loadFromDom(domDocument, mapId);
|
|
|
|
|
|
|
|
// Now, load the map ...
|
|
|
|
designer.loadMap(mindmap);
|
|
|
|
|
|
|
|
// If not problem has arisen, close the dialog ...
|
|
|
|
if (!window.hasUnexpectedErrors) {
|
|
|
|
waitDialog.deactivate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2011-10-02 17:22:09 +02:00
|
|
|
<form method="post" id="printForm" name="printForm" action='<c:url value="export.htm"/>' style="height:100%;"
|
|
|
|
target="${mindmap.title}">
|
|
|
|
<input type="hidden" name="action" value="print">
|
|
|
|
<input type="hidden" name="mapId" value="${mindmap.id}">
|
2011-03-28 16:16:32 +02:00
|
|
|
<input type="hidden" name="mapSvg" value="">
|
2009-06-07 20:59:43 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<div id="waitDialog" style="display:none">
|
2009-06-11 19:43:45 +02:00
|
|
|
<div id="waitingContainer">
|
2009-06-07 20:59:43 +02:00
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
2011-10-15 03:56:20 +02:00
|
|
|
Loading ...
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2009-06-11 19:43:45 +02:00
|
|
|
|
|
|
|
<div id="errorDialog" style="display:none">
|
|
|
|
<div id="errorContainer">
|
|
|
|
<div class="loadingIcon"></div>
|
|
|
|
<div class="loadingText">
|
2011-10-15 03:56:20 +02:00
|
|
|
Unexpected error loading your map :(
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type="text/javascript">
|
2009-06-11 19:43:45 +02:00
|
|
|
|
|
|
|
var waitDialog = new core.WaitDialog();
|
|
|
|
waitDialog.activate(true, $("waitDialog"));
|
|
|
|
$(window).addEvent("error", function(event) {
|
|
|
|
|
|
|
|
// Show error dialog ...
|
|
|
|
waitDialog.changeContent($("errorDialog"), false);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
function printMap() {
|
2011-03-28 16:16:32 +02:00
|
|
|
document.printForm.mapSvg.value = $("workspaceContainer").innerHTML;
|
2009-06-07 20:59:43 +02:00
|
|
|
document.printForm.submit();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2011-10-02 17:22:09 +02:00
|
|
|
|
2011-10-03 02:05:17 +02:00
|
|
|
<div id="actionsContainer"></div>
|
2009-06-07 20:59:43 +02:00
|
|
|
<div>
|
|
|
|
<c:url value="mymaps.htm" var="shareMap">
|
|
|
|
<c:param name="action" value="collaborator"/>
|
|
|
|
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
|
|
|
</c:url>
|
|
|
|
</div>
|
|
|
|
|
2011-10-03 02:05:17 +02:00
|
|
|
<div id="colorPalette">
|
|
|
|
<div id="paletteHeader"></div>
|
|
|
|
</div>
|
|
|
|
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="header">
|
|
|
|
<div id="headerInfo">
|
|
|
|
<div id="headerActions">
|
|
|
|
|
|
|
|
<spring:message code="WELCOME"/>, ${principal.firstname}|<span><a
|
|
|
|
href="${pageContext.request.contextPath}/c/mymaps.htm"><spring:message code="MY_WISEMAPS"/></a></span> |
|
|
|
|
<span><a href="${pageContext.request.contextPath}/c/settings.htm" rel="moodalbox 400px 250px wizard"
|
|
|
|
title="<spring:message code="SETTINGS_DETAIL"/>"><spring:message code="SETTINGS"/></a></span>
|
|
|
|
| <span><a href="${pageContext.request.contextPath}/c/logout.htm" title="<spring:message code="LOGOUT"/>">
|
|
|
|
<spring:message code="LOGOUT"/>
|
|
|
|
</a></span>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<a href="${pageContext.request.contextPath}/c/mymaps.htm">
|
|
|
|
<div id="headerLogo"></div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div id="headerMapTitle">Title: <span>${mindmap.title}</span></div>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="toolbar">
|
|
|
|
<div id="persist" class="buttonContainer">
|
|
|
|
<div id="save" class="buttonOn" title="Save">
|
|
|
|
<img src="../nicons/save.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="discart" class="buttonOn" title="Discart">
|
|
|
|
<img src="../nicons/discart.png"/>
|
|
|
|
</div>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="edit" class="buttonContainer">
|
|
|
|
<div id="undoEdition" class="buttonOn" title="Undo Edition">
|
|
|
|
<img src="../nicons/undo.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="redoEdition" class="buttonOn" title="Redo Edition">
|
|
|
|
<img src="../nicons/redo.png"/>
|
|
|
|
</div>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="zoom" class="buttonContainer">
|
|
|
|
<div id="zoomIn" class="buttonOn" title="Zoom In">
|
|
|
|
<img src="../nicons/zoom-in.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="zoomOut" class="buttonOn" title="Zoom Out">
|
|
|
|
<img src="../nicons/zoom-out.png"/>
|
|
|
|
</div>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="node" class="buttonContainer">
|
|
|
|
<div id="topicShape" class="buttonExtOn" title="Topic Shape">
|
|
|
|
<img src="../nicons/topic-shape.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="addTopic" class="buttonOn" title="Add Topic">
|
|
|
|
<img src="../nicons/topic-add.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="deleteTopic" class="buttonOn" title="Delete">
|
|
|
|
<img src="../nicons/topic-delete.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicBorder" class="buttonOn" title="Border Color">
|
|
|
|
<img src="../nicons/topic-border.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicColor" class="buttonExtOn" title="Background Color">
|
|
|
|
<img src="../nicons/topic-color.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicIcon" class="buttonExtOn" title="Add Icon">
|
|
|
|
<img src="../nicons/topic-icon.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicNote" class="buttonOn" title="Add Note">
|
|
|
|
<img src="../nicons/topic-note.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicLink" class="buttonOn" title="Add Link">
|
|
|
|
<img src="../nicons/topic-link.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="topicRelation" class="buttonOn" title="Add Relationship">
|
|
|
|
<img src="../nicons/topic-relation.png"/>
|
|
|
|
</div>
|
2009-06-11 19:43:45 +02:00
|
|
|
</div>
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="font" class="buttonContainer">
|
|
|
|
<div id="fontFamily" class="buttonOn" title="Font Style">
|
|
|
|
<img src="../nicons/font-type.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="fontSize" class="buttonExtOn" title="Font Size">
|
|
|
|
<img src="../nicons/font-size.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="fontBold" class="buttonOn" title="Bold Style">
|
|
|
|
<img src="../nicons/topic-border.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="fontItalic" class="buttonOn" title="Italic Style">
|
|
|
|
<img src="../nicons/font-italic.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="fontColor" class="buttonExtOn" title="Fond Color">
|
|
|
|
<img src="../nicons/font-color.png"/>
|
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="collaboration" class="buttonContainer">
|
|
|
|
<div id="tagIt" class="buttonOn" title="Tag">
|
2011-10-15 03:56:20 +02:00
|
|
|
<img src="../nicons/tag.png"/>
|
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="shareIt" class="buttonOn" title="Share">
|
2011-10-15 03:56:20 +02:00
|
|
|
<img src="../nicons/share.png"/>
|
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="publishIt" class="buttonOn" title="Publish">
|
2011-10-15 03:56:20 +02:00
|
|
|
<img src="../nicons/public.png"/>
|
|
|
|
</div>
|
|
|
|
<div id="history" class="buttonOn" title="History">
|
|
|
|
<img src="../nicons/history.png"/>
|
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-15 03:56:20 +02:00
|
|
|
<div id="mindplot"></div>
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|