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">
|
2011-11-01 20:46:20 +01:00
|
|
|
<link rel="stylesheet/less" type="text/css" href="../css/editor.less"/>
|
2009-06-07 20:59:43 +02:00
|
|
|
|
2011-10-18 14:29:29 +02:00
|
|
|
<script type='text/javascript' src='../js/libraries/mootools/mootools-core-1.3.2-full-compress.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>
|
2011-10-15 18:23:27 +02:00
|
|
|
<script type="text/javascript" src="../dwr/interface/MapEditorService.js"></script>
|
2009-06-11 19:43:45 +02:00
|
|
|
<script type="text/javascript" src="../dwr/interface/LoggerService.js"></script>
|
2011-10-15 18:23:27 +02:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<script type='text/javascript' src='../js/core.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';
|
2011-10-18 14:29:29 +02:00
|
|
|
editorProperties.readOnly = false;
|
|
|
|
designer = buildDesigner(editorProperties);
|
2011-10-02 17:22:09 +02:00
|
|
|
|
|
|
|
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-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> |
|
2011-10-18 14:29:29 +02:00
|
|
|
<span><a id="settings" href="${pageContext.request.contextPath}/c/settings.htm"
|
2011-10-15 03:56:20 +02:00
|
|
|
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">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/save.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2011-10-17 02:42:02 +02:00
|
|
|
<div id="discard" class="buttonOn" title="Discard">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/discard.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2011-10-15 18:23:27 +02:00
|
|
|
<div id="print" class="buttonOn" title="Print">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/print.png"/>
|
2011-10-15 18:23:27 +02:00
|
|
|
</div>
|
|
|
|
<div id="export" class="buttonOn" title="Export">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/export.png"/>
|
2011-10-15 18:23:27 +02:00
|
|
|
</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">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/undo.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="redoEdition" class="buttonOn" title="Redo Edition">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/redo.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</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">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/zoom-in.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="zoomOut" class="buttonOn" title="Zoom Out">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/zoom-out.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</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">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-shape.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="addTopic" class="buttonOn" title="Add Topic">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-add.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="deleteTopic" class="buttonOn" title="Delete">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-delete.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicBorder" class="buttonOn" title="Border Color">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-border.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicColor" class="buttonExtOn" title="Background Color">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-color.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicIcon" class="buttonExtOn" title="Add Icon">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-icon.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicNote" class="buttonOn" title="Add Note">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-note.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicLink" class="buttonOn" title="Add Link">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-link.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="topicRelation" class="buttonOn" title="Add Relationship">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/topic-relation.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</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">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/font-type.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="fontSize" class="buttonExtOn" title="Font Size">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/font-size.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="fontBold" class="buttonOn" title="Bold Style">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/font-bold.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="fontItalic" class="buttonOn" title="Italic Style">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/font-italic.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2011-10-17 15:12:27 +02:00
|
|
|
<div id="fontColor" class="buttonExtOn" title="Fond Color" style="padding-top:4px">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/font-color.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</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-11-01 04:13:05 +01:00
|
|
|
<img src="../images/tag.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="shareIt" class="buttonOn" title="Share">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/share.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
2011-10-15 07:52:44 +02:00
|
|
|
<div id="publishIt" class="buttonOn" title="Publish">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/public.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</div>
|
|
|
|
<div id="history" class="buttonOn" title="History">
|
2011-11-01 04:13:05 +01:00
|
|
|
<img src="../images/history.png"/>
|
2011-10-15 03:56:20 +02:00
|
|
|
</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>
|