wisemapping-open-source/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp

98 lines
3.4 KiB
Plaintext
Raw Normal View History

2009-06-07 20:59:43 +02:00
<%@ include file="/jsp/init.jsp" %>
<h1>
<spring:message code="EXPORT"/>
'${mindmap.title}'</h1>
<div>
<form method="post" id="exportForm" name="exportForm" action="<c:url value="export.htm"/>" style="height:100%;">
<input type="hidden" name="action" value="export"/>
<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
<table>
<tbody>
2011-10-17 02:42:02 +02:00
<tr>
<td>
<input type="radio" id="svg" name="exportFormat" value="SVG"/>
<b>
<spring:message code="SVG_EXPORT_FORMAT"/>
</b>
2009-06-07 20:59:43 +02:00
2011-10-17 02:42:02 +02:00
<p>
<spring:message code="SVG_EXPORT_FORMAT_DETAILS"/>
</p>
</td>
</tr>
<tr>
<td>
<input type="radio" name="exportFormat" value="PDF" id="pdf"/>
<b>
<spring:message code="PDF_EXPORT_FORMAT"/>
</b>
2009-06-07 20:59:43 +02:00
2011-10-17 02:42:02 +02:00
<p>
<spring:message code="PDF_EXPORT_FORMAT_DETAILS"/>
</p>
</td>
</tr>
<tr>
<td>
<input type="radio" id="freemind" name="exportFormat" value="FREEMIND" checked="checked"/>
<b>
<spring:message code="FREEMIND_EXPORT_FORMAT"/>
</b>
2009-06-07 20:59:43 +02:00
2011-10-17 02:42:02 +02:00
<p>
<spring:message code="FREEMIND_EXPORT_FORMAT_DETAILS"/>
</p>
</td>
</tr>
<tr>
<td>
<input type="radio" name="exportFormat" id="img" value="IMG_EXPORT_FORMAT"/>
<b>
<spring:message code="IMG_EXPORT_FORMAT"/>
</b><select name="imgFormat" id="imgFormat" style="visibility:hidden;margin-left:5px;">
<option>PNG</option>
<option>JPEG</option>
</select>
2009-06-07 20:59:43 +02:00
2011-10-17 02:42:02 +02:00
<p>
<spring:message code="IMG_EXPORT_FORMAT_DETAILS"/>
</p>
</td>
</tr>
<tr>
<td style="text-align:center;margin-top:10px;">
<input type="button" id="ok" value="<spring:message code="OK"/>" class="btn-primary">
2011-10-18 14:29:29 +02:00
<input type="button" id="cancel" value="<spring:message code="CANCEL"/>" class="btn-secondary"
2011-10-17 02:42:02 +02:00
onclick="">
</td>
</tr>
2009-06-07 20:59:43 +02:00
</tbody>
</table>
</form>
</div>
2011-10-17 02:42:02 +02:00
2009-06-07 20:59:43 +02:00
<script type="text/javascript">
$('img').addEvent('click', function(event) {
$('imgFormat').setStyle('visibility', 'visible');
});
$('pdf').addEvent('click', function(event) {
$('imgFormat').setStyle('visibility', 'hidden');
});
$('svg').addEvent('click', function(event) {
$('imgFormat').setStyle('visibility', 'hidden');
});
$('ok').addEvent('click', function(event) {
$('exportForm').submit();
2011-10-17 02:42:02 +02:00
MooDialog.Request.active.close();
2009-06-07 20:59:43 +02:00
});
2011-10-18 14:29:29 +02:00
$('cancel').addEvent('click', function(event) {
MooDialog.Request.active.close();
});
2011-03-28 16:16:32 +02:00
document.exportForm.mapSvg.value = $("workspaceContainer").innerHTML;
2009-06-07 20:59:43 +02:00
</script>