- Migrate to Spring 3.1
- Remove Acegy - Fix editor partially
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
|
||||
<%@ page import="org.acegisecurity.Authentication" %>
|
||||
<%@ page import="org.acegisecurity.ui.AccessDeniedHandlerImpl" %>
|
||||
|
||||
<h1>Sorry, access is denied</h1>
|
||||
|
||||
|
||||
<p>
|
||||
<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%>
|
||||
|
||||
<p>
|
||||
|
||||
<%
|
||||
|
||||
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
|
||||
if (auth != null) {
|
||||
|
||||
%>
|
||||
Authentication object as a String: <%= auth.toString() %><BR><BR>
|
||||
<% } %>
|
||||
<%--<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>--%>
|
||||
<%--<%@ page import="org.acegisecurity.Authentication" %>--%>
|
||||
<%--<%@ page import="org.acegisecurity.ui.AccessDeniedHandlerImpl" %>--%>
|
||||
|
||||
<%--<h1>Sorry, access is denied</h1>--%>
|
||||
|
||||
|
||||
<%--<p>--%>
|
||||
<%--<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%>--%>
|
||||
|
||||
<%--<p>--%>
|
||||
|
||||
<%--<%--%>
|
||||
|
||||
<%--Authentication auth = SecurityContextHolder.getContext().getAuthentication();--%>
|
||||
<%--if (auth != null) {--%>
|
||||
|
||||
<%--%>--%>
|
||||
<%--Authentication object as a String: <%= auth.toString() %><BR><BR>--%>
|
||||
<%--<% } %>--%>
|
||||
|
@@ -12,8 +12,8 @@
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../css/embedded.css"/>
|
||||
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-core-1.3.2-full-compress.js'></script>
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
||||
<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>
|
||||
|
||||
|
||||
|
@@ -1,3 +1,3 @@
|
||||
<%
|
||||
response.sendRedirect(request.getContextPath() + "/c/login.htm");
|
||||
<%
|
||||
response.sendRedirect(request.getContextPath() + "/c/mymaps.htm");
|
||||
%>
|
@@ -1,106 +1,106 @@
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
<script type="text/javascript">
|
||||
if(typeof isOldIE != "undefined"){
|
||||
window.onload = function() {
|
||||
var simpleButtonGenerator = RUZEE.ShadedBorder.create({ corner:8, border:1 });
|
||||
simpleButtonGenerator.render('login');
|
||||
|
||||
$('submitButton').onclick = displayLoading;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="loginContent">
|
||||
|
||||
<div id="news" class="sb">
|
||||
<h1>What is New: </h1>
|
||||
<ul>
|
||||
<li>Links Between Nodes</li>
|
||||
<li>FreeMind 0.9 Update</li>
|
||||
<li>Improved HTML 5.0 Support</li>
|
||||
<li>Firefox 4.0 is officially supported</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="login" class="sb">
|
||||
<h1>
|
||||
<spring:message code="SIGN_IN"/>
|
||||
</h1>
|
||||
|
||||
<form action="<c:url value='j_acegi_security_check'/>" method="POST">
|
||||
<table>
|
||||
<tbody>
|
||||
<c:if test="${not empty param.login_error}">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="errorMsg">
|
||||
<c:choose>
|
||||
<c:when test="${param.login_error == 3}">
|
||||
<spring:message code="USER_INACTIVE"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<spring:message code="LOGIN_ERROR"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<spring:message code="EMAIL"/>
|
||||
:
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' tabindex="1" id="email" name='j_username'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<spring:message code="PASSWORD"/>
|
||||
:
|
||||
</td>
|
||||
<td>
|
||||
<input type='password' tabindex="2" id="password" name='j_password'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<input type="checkbox" id="rememberme" name="_acegi_security_remember_me"/>
|
||||
</td>
|
||||
<td>
|
||||
<spring:message code="REMEMBER_ME"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" class="btn-primary" id="submitButton"
|
||||
value="<spring:message code="SIGN_IN"/>">
|
||||
|
||||
<div style="text-align:right;"><a href="<c:url value="forgotPassword.htm"/>">
|
||||
<spring:message code="FORGOT_PASSWORD"/>
|
||||
</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="register">
|
||||
<b>
|
||||
<spring:message code="NOT_READY_A_USER"/>
|
||||
</b>
|
||||
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
|
||||
<a href="userRegistration.htm">
|
||||
<spring:message code="JOIN_NOW"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<c:if test="${isHsql== 'true'}">
|
||||
|
||||
|
||||
<div style="padding:10px;background-color: #E0EFFF; border-radius: 5px 5px 5px 5px;border-style:solid;border-color:gray"><img src="../images/info.png" style="margin:0px 4px">Note: Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.5 instead. You can find more information how to configure MySQL <a href="http://www.wisemapping.org/documentation/configu">here</a>.</div>
|
||||
</c:if>
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
<script type="text/javascript">
|
||||
if(typeof isOldIE != "undefined"){
|
||||
window.onload = function() {
|
||||
var simpleButtonGenerator = RUZEE.ShadedBorder.create({ corner:8, border:1 });
|
||||
simpleButtonGenerator.render('login');
|
||||
|
||||
$('submitButton').onclick = displayLoading;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="loginContent">
|
||||
|
||||
<div id="news" class="sb">
|
||||
<h1>What is New: </h1>
|
||||
<ul>
|
||||
<li>Links Between Nodes</li>
|
||||
<li>FreeMind 0.9 Update</li>
|
||||
<li>Improved HTML 5.0 Support</li>
|
||||
<li>Firefox 4.0 is officially supported</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="login" class="sb">
|
||||
<h1>
|
||||
<spring:message code="SIGN_IN"/>
|
||||
</h1>
|
||||
|
||||
<form action="<c:url value='/j_spring_security_check'/>" method="POST">
|
||||
<table>
|
||||
<tbody>
|
||||
<c:if test="${not empty param.login_error}">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="errorMsg">
|
||||
<c:choose>
|
||||
<c:when test="${param.login_error == 3}">
|
||||
<spring:message code="USER_INACTIVE"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<spring:message code="LOGIN_ERROR"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<spring:message code="EMAIL"/>
|
||||
:
|
||||
</td>
|
||||
<td>
|
||||
<input type='text' tabindex="1" id="email" name='j_username'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<spring:message code="PASSWORD"/>
|
||||
:
|
||||
</td>
|
||||
<td>
|
||||
<input type='password' tabindex="2" id="password" name='j_password'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="formLabel">
|
||||
<input type="checkbox" id="rememberme" name="_spring_security_remember_me"/>
|
||||
</td>
|
||||
<td>
|
||||
<spring:message code="REMEMBER_ME"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" class="btn-primary" id="submitButton"
|
||||
value="<spring:message code="SIGN_IN"/>">
|
||||
|
||||
<div style="text-align:right;"><a href="<c:url value="forgotPassword.htm"/>">
|
||||
<spring:message code="FORGOT_PASSWORD"/>
|
||||
</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="register">
|
||||
<b>
|
||||
<spring:message code="NOT_READY_A_USER"/>
|
||||
</b>
|
||||
<spring:message code="NOT_READY_A_USER_MESSAGE"/>
|
||||
<a href="userRegistration.htm">
|
||||
<spring:message code="JOIN_NOW"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<c:if test="${isHsql== 'true'}">
|
||||
|
||||
|
||||
<div style="padding:10px;background-color: #E0EFFF; border-radius: 5px 5px 5px 5px;border-style:solid;border-color:gray"><img src="../images/info.png" style="margin:0px 4px">Note: Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.5 instead. You can find more information how to configure MySQL <a href="http://www.wisemapping.org/documentation/configu">here</a>.</div>
|
||||
</c:if>
|
||||
|
@@ -1,454 +1,454 @@
|
||||
<!DOCTYPE HTML>
|
||||
|
||||
<%@ page import="com.wisemapping.view.MindMapBean" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="java.util.Collections" %>
|
||||
<%@ page import="java.util.ArrayList" %>
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<spring:message code="SITE.TITLE"/>
|
||||
</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/mymaps.css"/>
|
||||
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-core-1.3.2-full-compress.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<jsp:include page="header.jsp">
|
||||
<jsp:param name="removeSignin" value="false"/>
|
||||
<jsp:param name="showLogout" value="true"/>
|
||||
</jsp:include>
|
||||
|
||||
|
||||
<c:url value="mymaps.htm" var="mapDetail">
|
||||
<c:param name="action" value="detail"/>
|
||||
</c:url>
|
||||
<c:url value="mymaps.htm" var="deleteSelectedMapUrl">
|
||||
<c:param name="action" value="deleteAll"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
|
||||
<div id="mapListContainer">
|
||||
|
||||
<div id="myDocsContainer">
|
||||
|
||||
<div id="recentFiles" class="sb">
|
||||
<div id="recentText">
|
||||
<spring:message code="RECENT_FILES"/>
|
||||
</div>
|
||||
<div id="recentItems" class="sb">
|
||||
<div class="recentItemContainer">
|
||||
<%
|
||||
int MAX_RECENT_MAPS = 6;
|
||||
List<MindMapBean> list = (List<MindMapBean>) request.getAttribute("wisemapsList");
|
||||
if (list != null && !list.isEmpty()) {
|
||||
List<MindMapBean> recentMaps = new ArrayList<MindMapBean>();
|
||||
recentMaps.addAll(list);
|
||||
Collections.sort(recentMaps, new MindMapBean.MindMapBeanComparator());
|
||||
for (int i = recentMaps.size() - 1; i >= 0 && i >= recentMaps.size() - MAX_RECENT_MAPS; i--) {
|
||||
%>
|
||||
|
||||
<div class="recentItemIcon"></div>
|
||||
<div class="recentItemTitle">
|
||||
<a href="javascript:openMap('<%=recentMaps.get(i).getId()%>')">
|
||||
<%=recentMaps.get(i).getTitle()%>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<%
|
||||
}
|
||||
} else {
|
||||
%>
|
||||
<div class="recentItemTitle">
|
||||
<spring:message code="EMPTY_MINDMAP_TABLE"/>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="mydocs">
|
||||
<div id="toolbar">
|
||||
<input id="selectedMapIds" type="hidden" value=""/>
|
||||
|
||||
<div class="leftMenu">
|
||||
<div class="button">
|
||||
<a href="newMap.htm" rel="moodalbox 500px 190px" title="<spring:message code="NEW_MAP_MSG"/>">
|
||||
<spring:message code="NEW_MINDMAP"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button menuLink"
|
||||
onclick="updateLinks($(this).getParent()); new Windoo.Confirm('<spring:message code="DELETE_SELECTED_CONFIRMATION"/>',
|
||||
{
|
||||
'window': {theme:Windoo.Themes.wise,
|
||||
title:'<spring:message code="DELETE_MAP"/>'
|
||||
},
|
||||
'onConfirm':function(){
|
||||
$(document.toolbarForm.mindmapIds).value=$('selectedMapIds').value;
|
||||
$(document.toolbarForm).action='<c:out value="${deleteSelectedMapUrl}" escapeXml="true"/>';
|
||||
$(document.toolbarForm).submit();
|
||||
}
|
||||
});">
|
||||
<spring:message code="DELETE_SELECTED"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button">
|
||||
<a href="importMap.htm" rel="moodalbox 500px 250px" title="<spring:message code="IMPORT_MINDMAP_DETAILS"/>">
|
||||
<spring:message code="IMPORT_MINDMAP"/>
|
||||
</a>
|
||||
</div>
|
||||
</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>
|
||||
<c:url value="mymaps.htm" var="deleteMapUrl">
|
||||
<c:param name="action" value="delete"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
<c:url value="mymaps.htm" var="changeStatus">
|
||||
<c:param name="action" value="changeStatus"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
<div id="docTable">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:3%;"/>
|
||||
<col style="width:3%;"/>
|
||||
<col style="width:15%;"/>
|
||||
<col style="width:30%;"/>
|
||||
<col style="width:14%;"/>
|
||||
<col style="width:10%;"/>
|
||||
<col style="width:20%;"/>
|
||||
<col style="width:5%;"/>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">
|
||||
<label for="checkAll"></label><input id="checkAll" type="checkbox" onchange="selectAllMaps(this);">
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="FILE"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="NAME"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="DESCRIPTION"/>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<spring:message code="STATUS"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="CREATOR"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="LAST_EDITOR"/>
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${wisemapsList}" var="mindmap">
|
||||
<tr>
|
||||
<td>
|
||||
<div style="text-align:center;"><input type="checkbox" name="chk" id="chk${mindmap.id}"
|
||||
onclick="addToSelectedMapList(this);"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="leftMenu">
|
||||
<img src="../images/icon_list.png" class="button" style="display:block;border:0;">
|
||||
|
||||
<div class="subMenu2">
|
||||
<a href="javascript:openMap('${mindmap.id}')" title="<spring:message code="OPEN_MSG"/>">
|
||||
<spring:message code="OPEN"/>
|
||||
</a>
|
||||
<c:if test="${mindmap.owner==requestScope.user}">
|
||||
<a href="renameMap.htm?mapId=${mindmap.id}" rel="moodalbox 400px 180px wizard"
|
||||
title="<spring:message code="RENAME_DETAILS"/>">
|
||||
<spring:message code="RENAME"/>
|
||||
</a>
|
||||
</c:if>
|
||||
<a href="history.htm?action=list&goToMindmapList&mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard" title="<spring:message code="HISTORY_INFO"/>">
|
||||
<spring:message code="HISTORY"/>
|
||||
</a>
|
||||
|
||||
<div class="menuButton menuLink subMenu2Sep"
|
||||
onclick="new Windoo.Confirm('<spring:message code="DELETE_CONFIRMATION"/>',
|
||||
{
|
||||
window: {'theme':Windoo.Themes.wise,
|
||||
title:'<spring:message code="DELETE_MAP"/>'
|
||||
},
|
||||
'onConfirm':function(){
|
||||
var form = new Element('form').setProperties({action: '<c:out value="${deleteMapUrl}" escapeXml="true"/>&mapId=${mindmap.id}', method:'post'}).injectInside(document.body);
|
||||
form.submit();
|
||||
}
|
||||
});">
|
||||
<spring:message code="DELETE"/>
|
||||
</div>
|
||||
<a href="tags.htm?mapId=${mindmap.id}" rel="moodalbox 400px 200px wizard"
|
||||
title="<spring:message code="TAGS_DETAILS"/>">
|
||||
<spring:message code="TAGS"/>
|
||||
</a>
|
||||
<c:if test="${mindmap.owner==requestScope.user}">
|
||||
<a href="<c:out value="${shareMap}" escapeXml="true"/>&mapId=${mindmap.id}"
|
||||
rel="moodalbox 780px 530px wizard"
|
||||
title="<spring:message code="SHARE_DETAILS"/>">
|
||||
<spring:message code="COLLABORATION"/>
|
||||
</a>
|
||||
<a class="subMenu2Sep" href="publish.htm?mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard" title="<spring:message code="PUBLISH_MSG"/>">
|
||||
<spring:message code="PUBLISH"/>
|
||||
</a>
|
||||
</c:if>
|
||||
<%--<a href="export.htm?mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px" title="<spring:message code="EXPORT_DETAILS"/>">
|
||||
<spring:message code="EXPORT"/>
|
||||
</a>--%>
|
||||
<%--<a href="javascript:printMap(${mindmap.id});">
|
||||
<spring:message code="PRINT"/>
|
||||
</a>--%>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<div class="mapTitle">
|
||||
<a href="javascript:openMap('${mindmap.id}')">
|
||||
${mindmap.title}
|
||||
</a>
|
||||
</div>
|
||||
<div class="mapTags">
|
||||
${mindmap.tags}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
${mindmap.description}
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${not mindmap.public}">
|
||||
<img src="../images/key.png"
|
||||
title="<spring:message code="PRIVATE"/>: <spring:message code="ONLY_VIEW_PRIVATE"/>"
|
||||
alt="<spring:message code="PRIVATE"/>"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<img src="../images/world2.png"
|
||||
title="<spring:message code="PUBLIC"/>: <spring:message code="ALL_VIEW_PUBLIC"/>"
|
||||
alt="World"
|
||||
<spring:message code="PUBLIC"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>${mindmap.creationUser}</td>
|
||||
<td>${mindmap.lastEditDate} by ${mindmap.lastEditor}</td>
|
||||
<td><a href="<c:out value="${mapDetail}" escapeXml="true"/>&mapId=${mindmap.id}">
|
||||
<spring:message code="DETAIL"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ds1" class="submenu" style="display:none;">
|
||||
<a href="<c:out value="${deleteSelectedMapUrl}" escapeXml="true"/>&mindmapIds=" rel="moodalbox 300px 120px">Delete</a>
|
||||
<a href="#">Tag</a>
|
||||
<a href="#">Publish</a>
|
||||
</div>
|
||||
|
||||
<div id="ds2" class="submenu" style="position:absolute; display:none;">
|
||||
<a href="<c:out value="${shareMap}" escapeXml="true"/>&mapId=" rel="moodalbox 780px 530px"
|
||||
title="Share WiseMap">Share</a>
|
||||
<a href="publish.htm?mapId=" rel="moodalbox 600px 400px wizard" title="<spring:message code="PUBLISH_DETAILS"/>">
|
||||
<spring:message code="PUBLISH"/>
|
||||
</a>
|
||||
<a href="<c:out value="${deleteMapUrl}" escapeXml="true"/>&mapId=" rel="moodalbox 300px 120px"
|
||||
title="Delete Confirmation">
|
||||
Delete
|
||||
</a>
|
||||
<a href="export.htm?mapId=" rel="moodalbox 750px 400px" title="<spring:message code="EXPORT_DETAILS"/>">
|
||||
<spring:message code="EXPORT"/>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:url value="editor.htm" var="mindmapEditorUrl"/>
|
||||
<form name="openForm" action="${mindmapEditorUrl}" method="post">
|
||||
<input type="hidden" name="action" value="open"/>
|
||||
<input type="hidden" name="mapId" value=""/>
|
||||
</form>
|
||||
<form name="toolbarForm" method="post">
|
||||
<input type="hidden" name="mindmapIds"/>
|
||||
</form>
|
||||
<form method="post" id="printForm" name="printForm" action="<c:url value="export.htm"/>" target="new">
|
||||
<input type="hidden" name="action" value="print"/>
|
||||
<input type="hidden" name="mapId" value="${mindmap.id}"/>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function openMap(mapId) {
|
||||
document.openForm.mapId.value = mapId;
|
||||
document.openForm.submit();
|
||||
}
|
||||
function deleteOkButton(url) {
|
||||
var form = document.createElement('form');
|
||||
form.method = 'post';
|
||||
form.action = url;
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
Window.onDomReady(initDropDowns);
|
||||
function initDropDowns() {
|
||||
$ES('li[rel="submenu"]', $(document.body)).each(function(el) {
|
||||
var items = $E('ul', el);
|
||||
el.addEvent('click', showMenu.bind(items));
|
||||
}, this);
|
||||
}
|
||||
|
||||
function showMenu(evt) {
|
||||
if ($(document).onclick) {
|
||||
$(document).fireEvent('click', 0);
|
||||
showMenu.delay(110, this, evt);
|
||||
}
|
||||
else {
|
||||
this.myEffect = $(this).effects({duration:100, transition: Fx.Transitions.linear});
|
||||
this.myEffect.start({'opacity':[0,1]});
|
||||
$(document).onclick = hide.bind(this);
|
||||
var event = new Event(evt);
|
||||
event.stop();
|
||||
}
|
||||
}
|
||||
|
||||
function hide() {
|
||||
this.myEffect.start({'opacity':[1,0]});
|
||||
$(document).onclick = '';
|
||||
}
|
||||
|
||||
function updateLinks(el) {
|
||||
$ES('a', el).each(function(link) {
|
||||
if (!link.ohref) {
|
||||
link.ohref = link.getProperty('ohref');
|
||||
}
|
||||
link.href = link.ohref + $('selectedMapIds').value;
|
||||
});
|
||||
}
|
||||
|
||||
function openWizard(href, title, rel) {
|
||||
href = href + $('selectedMapIds').value;
|
||||
// MOOdalBox.open(href, title, rel);
|
||||
}
|
||||
|
||||
function addToSelectedMapList(el) {
|
||||
var ids = $('selectedMapIds');
|
||||
var id = el.id.replace(/[^\d]/g, '');
|
||||
|
||||
var value = ids.getProperty("value");
|
||||
|
||||
if (value != "") {
|
||||
var allIds = $A(ids.value.split(','));
|
||||
var changed = false;
|
||||
if (allIds.contains(id) && !el.checked) {
|
||||
allIds.remove(id);
|
||||
changed = true;
|
||||
}
|
||||
else if (!allIds.contains(id) && el.checked) {
|
||||
allIds.extend([id]);
|
||||
changed = true;
|
||||
}
|
||||
if (changed) {
|
||||
var finalIds = "";
|
||||
$each(allIds, function(el) {
|
||||
if (!finalIds == "") {
|
||||
el = "," + el;
|
||||
}
|
||||
finalIds = finalIds + el;
|
||||
});
|
||||
value = finalIds;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (el.checked) {
|
||||
value = id;
|
||||
}
|
||||
}
|
||||
ids.setProperty("value", value);
|
||||
}
|
||||
|
||||
|
||||
function selectAllMaps(elem) {
|
||||
var value = elem.checked;
|
||||
var ids = "";
|
||||
$ES('input[type="checkbox"]', $('docTable')).each(function(el) {
|
||||
if (el.name.contains('chk')) {
|
||||
el.checked = value;
|
||||
var id = el.id.replace(/[^\d]/g, '');
|
||||
if (!ids == "") {
|
||||
id = "," + id;
|
||||
}
|
||||
ids = ids + id;
|
||||
}
|
||||
});
|
||||
if (!value) {
|
||||
$('selectedMapIds').setProperty('value', '');
|
||||
}
|
||||
else {
|
||||
$('selectedMapIds').setProperty('value', ids);
|
||||
}
|
||||
/*var allElems = document.getElementsByName("chk");
|
||||
for (var i = 0; i < allElems.length; i++)
|
||||
{
|
||||
allElems[i].checked = value;
|
||||
}*/
|
||||
}
|
||||
|
||||
function printMap(mapId) {
|
||||
document.printForm.mapId.value = mapId;
|
||||
document.printForm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function removeCollaborator(collaboratorEmail) {
|
||||
document.removeCollaboratorForm.colaboratorId.value = collaboratorEmail;
|
||||
document.removeCollaboratorForm.submit();
|
||||
//submitDialog('removeCollaboratorForm');
|
||||
}
|
||||
function addFriendsEmails() {
|
||||
var newUsers = "";
|
||||
var ob = $('friendList');
|
||||
while (ob.selectedIndex != -1) {
|
||||
newUsers = newUsers + ", " + ob.options[ob.selectedIndex].value;
|
||||
ob.options[ob.selectedIndex].selected = false;
|
||||
}
|
||||
var dest = $('emailList');
|
||||
if (dest.value == "")
|
||||
newUsers = newUsers.substr(2, newUsers.length);
|
||||
dest.value = dest.value + newUsers;
|
||||
}
|
||||
function changeStatus(collaboratorEmail) {
|
||||
document.removeCollaboratorForm.userEmail.value = collaboratorEmail;
|
||||
submitDialog('removeCollaboratorForm');
|
||||
}
|
||||
|
||||
</script>
|
||||
<jsp:include page="footer.jsp"/>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE HTML>
|
||||
|
||||
<%@ page import="com.wisemapping.view.MindMapBean" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="java.util.Collections" %>
|
||||
<%@ page import="java.util.ArrayList" %>
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<spring:message code="SITE.TITLE"/>
|
||||
</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/mymaps.css"/>
|
||||
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<script type='text/javascript' src='../js/mootools-core.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<jsp:include page="header.jsp">
|
||||
<jsp:param name="removeSignin" value="false"/>
|
||||
<jsp:param name="showLogout" value="true"/>
|
||||
</jsp:include>
|
||||
|
||||
|
||||
<c:url value="mymaps.htm" var="mapDetail">
|
||||
<c:param name="action" value="detail"/>
|
||||
</c:url>
|
||||
<c:url value="mymaps.htm" var="deleteSelectedMapUrl">
|
||||
<c:param name="action" value="deleteAll"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
|
||||
<div id="mapListContainer">
|
||||
|
||||
<div id="myDocsContainer">
|
||||
|
||||
<div id="recentFiles" class="sb">
|
||||
<div id="recentText">
|
||||
<spring:message code="RECENT_FILES"/>
|
||||
</div>
|
||||
<div id="recentItems" class="sb">
|
||||
<div class="recentItemContainer">
|
||||
<%
|
||||
int MAX_RECENT_MAPS = 6;
|
||||
List<MindMapBean> list = (List<MindMapBean>) request.getAttribute("wisemapsList");
|
||||
if (list != null && !list.isEmpty()) {
|
||||
List<MindMapBean> recentMaps = new ArrayList<MindMapBean>();
|
||||
recentMaps.addAll(list);
|
||||
Collections.sort(recentMaps, new MindMapBean.MindMapBeanComparator());
|
||||
for (int i = recentMaps.size() - 1; i >= 0 && i >= recentMaps.size() - MAX_RECENT_MAPS; i--) {
|
||||
%>
|
||||
|
||||
<div class="recentItemIcon"></div>
|
||||
<div class="recentItemTitle">
|
||||
<a href="javascript:openMap('<%=recentMaps.get(i).getId()%>')">
|
||||
<%=recentMaps.get(i).getTitle()%>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<%
|
||||
}
|
||||
} else {
|
||||
%>
|
||||
<div class="recentItemTitle">
|
||||
<spring:message code="EMPTY_MINDMAP_TABLE"/>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="mydocs">
|
||||
<div id="toolbar">
|
||||
<input id="selectedMapIds" type="hidden" value=""/>
|
||||
|
||||
<div class="leftMenu">
|
||||
<div class="button">
|
||||
<a href="newMap.htm" rel="moodalbox 500px 190px" title="<spring:message code="NEW_MAP_MSG"/>">
|
||||
<spring:message code="NEW_MINDMAP"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button menuLink"
|
||||
onclick="updateLinks($(this).getParent()); new Windoo.Confirm('<spring:message code="DELETE_SELECTED_CONFIRMATION"/>',
|
||||
{
|
||||
'window': {theme:Windoo.Themes.wise,
|
||||
title:'<spring:message code="DELETE_MAP"/>'
|
||||
},
|
||||
'onConfirm':function(){
|
||||
$(document.toolbarForm.mindmapIds).value=$('selectedMapIds').value;
|
||||
$(document.toolbarForm).action='<c:out value="${deleteSelectedMapUrl}" escapeXml="true"/>';
|
||||
$(document.toolbarForm).submit();
|
||||
}
|
||||
});">
|
||||
<spring:message code="DELETE_SELECTED"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button">
|
||||
<a href="importMap.htm" rel="moodalbox 500px 250px" title="<spring:message code="IMPORT_MINDMAP_DETAILS"/>">
|
||||
<spring:message code="IMPORT_MINDMAP"/>
|
||||
</a>
|
||||
</div>
|
||||
</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>
|
||||
<c:url value="mymaps.htm" var="deleteMapUrl">
|
||||
<c:param name="action" value="delete"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
<c:url value="mymaps.htm" var="changeStatus">
|
||||
<c:param name="action" value="changeStatus"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
<div id="docTable">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width:3%;"/>
|
||||
<col style="width:3%;"/>
|
||||
<col style="width:15%;"/>
|
||||
<col style="width:30%;"/>
|
||||
<col style="width:14%;"/>
|
||||
<col style="width:10%;"/>
|
||||
<col style="width:20%;"/>
|
||||
<col style="width:5%;"/>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">
|
||||
<label for="checkAll"></label><input id="checkAll" type="checkbox" onchange="selectAllMaps(this);">
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="FILE"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="NAME"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="DESCRIPTION"/>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<spring:message code="STATUS"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="CREATOR"/>
|
||||
</th>
|
||||
<th>
|
||||
<spring:message code="LAST_EDITOR"/>
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${wisemapsList}" var="mindmap">
|
||||
<tr>
|
||||
<td>
|
||||
<div style="text-align:center;"><input type="checkbox" name="chk" id="chk${mindmap.id}"
|
||||
onclick="addToSelectedMapList(this);"></div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="leftMenu">
|
||||
<img src="../images/icon_list.png" class="button" style="display:block;border:0;">
|
||||
|
||||
<div class="subMenu2">
|
||||
<a href="javascript:openMap('${mindmap.id}')" title="<spring:message code="OPEN_MSG"/>">
|
||||
<spring:message code="OPEN"/>
|
||||
</a>
|
||||
<c:if test="${mindmap.owner==requestScope.user}">
|
||||
<a href="renameMap.htm?mapId=${mindmap.id}" rel="moodalbox 400px 180px wizard"
|
||||
title="<spring:message code="RENAME_DETAILS"/>">
|
||||
<spring:message code="RENAME"/>
|
||||
</a>
|
||||
</c:if>
|
||||
<a href="history.htm?action=list&goToMindmapList&mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard" title="<spring:message code="HISTORY_INFO"/>">
|
||||
<spring:message code="HISTORY"/>
|
||||
</a>
|
||||
|
||||
<div class="menuButton menuLink subMenu2Sep"
|
||||
onclick="new Windoo.Confirm('<spring:message code="DELETE_CONFIRMATION"/>',
|
||||
{
|
||||
window: {'theme':Windoo.Themes.wise,
|
||||
title:'<spring:message code="DELETE_MAP"/>'
|
||||
},
|
||||
'onConfirm':function(){
|
||||
var form = new Element('form').setProperties({action: '<c:out value="${deleteMapUrl}" escapeXml="true"/>&mapId=${mindmap.id}', method:'post'}).injectInside(document.body);
|
||||
form.submit();
|
||||
}
|
||||
});">
|
||||
<spring:message code="DELETE"/>
|
||||
</div>
|
||||
<a href="tags.htm?mapId=${mindmap.id}" rel="moodalbox 400px 200px wizard"
|
||||
title="<spring:message code="TAGS_DETAILS"/>">
|
||||
<spring:message code="TAGS"/>
|
||||
</a>
|
||||
<c:if test="${mindmap.owner==requestScope.user}">
|
||||
<a href="<c:out value="${shareMap}" escapeXml="true"/>&mapId=${mindmap.id}"
|
||||
rel="moodalbox 780px 530px wizard"
|
||||
title="<spring:message code="SHARE_DETAILS"/>">
|
||||
<spring:message code="COLLABORATION"/>
|
||||
</a>
|
||||
<a class="subMenu2Sep" href="publish.htm?mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard" title="<spring:message code="PUBLISH_MSG"/>">
|
||||
<spring:message code="PUBLISH"/>
|
||||
</a>
|
||||
</c:if>
|
||||
<%--<a href="export.htm?mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px" title="<spring:message code="EXPORT_DETAILS"/>">
|
||||
<spring:message code="EXPORT"/>
|
||||
</a>--%>
|
||||
<%--<a href="javascript:printMap(${mindmap.id});">
|
||||
<spring:message code="PRINT"/>
|
||||
</a>--%>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<div class="mapTitle">
|
||||
<a href="javascript:openMap('${mindmap.id}')">
|
||||
${mindmap.title}
|
||||
</a>
|
||||
</div>
|
||||
<div class="mapTags">
|
||||
${mindmap.tags}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
${mindmap.description}
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${not mindmap.public}">
|
||||
<img src="../images/key.png"
|
||||
title="<spring:message code="PRIVATE"/>: <spring:message code="ONLY_VIEW_PRIVATE"/>"
|
||||
alt="<spring:message code="PRIVATE"/>"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<img src="../images/world2.png"
|
||||
title="<spring:message code="PUBLIC"/>: <spring:message code="ALL_VIEW_PUBLIC"/>"
|
||||
alt="World"
|
||||
<spring:message code="PUBLIC"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>${mindmap.creationUser}</td>
|
||||
<td>${mindmap.lastEditDate} by ${mindmap.lastEditor}</td>
|
||||
<td><a href="<c:out value="${mapDetail}" escapeXml="true"/>&mapId=${mindmap.id}">
|
||||
<spring:message code="DETAIL"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ds1" class="submenu" style="display:none;">
|
||||
<a href="<c:out value="${deleteSelectedMapUrl}" escapeXml="true"/>&mindmapIds=" rel="moodalbox 300px 120px">Delete</a>
|
||||
<a href="#">Tag</a>
|
||||
<a href="#">Publish</a>
|
||||
</div>
|
||||
|
||||
<div id="ds2" class="submenu" style="position:absolute; display:none;">
|
||||
<a href="<c:out value="${shareMap}" escapeXml="true"/>&mapId=" rel="moodalbox 780px 530px"
|
||||
title="Share WiseMap">Share</a>
|
||||
<a href="publish.htm?mapId=" rel="moodalbox 600px 400px wizard" title="<spring:message code="PUBLISH_DETAILS"/>">
|
||||
<spring:message code="PUBLISH"/>
|
||||
</a>
|
||||
<a href="<c:out value="${deleteMapUrl}" escapeXml="true"/>&mapId=" rel="moodalbox 300px 120px"
|
||||
title="Delete Confirmation">
|
||||
Delete
|
||||
</a>
|
||||
<a href="export.htm?mapId=" rel="moodalbox 750px 400px" title="<spring:message code="EXPORT_DETAILS"/>">
|
||||
<spring:message code="EXPORT"/>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<c:url value="editor.htm" var="mindmapEditorUrl"/>
|
||||
<form name="openForm" action="${mindmapEditorUrl}" method="post">
|
||||
<input type="hidden" name="action" value="open"/>
|
||||
<input type="hidden" name="mapId" value=""/>
|
||||
</form>
|
||||
<form name="toolbarForm" method="post">
|
||||
<input type="hidden" name="mindmapIds"/>
|
||||
</form>
|
||||
<form method="post" id="printForm" name="printForm" action="<c:url value="export.htm"/>" target="new">
|
||||
<input type="hidden" name="action" value="print"/>
|
||||
<input type="hidden" name="mapId" value="${mindmap.id}"/>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function openMap(mapId) {
|
||||
document.openForm.mapId.value = mapId;
|
||||
document.openForm.submit();
|
||||
}
|
||||
function deleteOkButton(url) {
|
||||
var form = document.createElement('form');
|
||||
form.method = 'post';
|
||||
form.action = url;
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
Window.onDomReady(initDropDowns);
|
||||
function initDropDowns() {
|
||||
$ES('li[rel="submenu"]', $(document.body)).each(function(el) {
|
||||
var items = $E('ul', el);
|
||||
el.addEvent('click', showMenu.bind(items));
|
||||
}, this);
|
||||
}
|
||||
|
||||
function showMenu(evt) {
|
||||
if ($(document).onclick) {
|
||||
$(document).fireEvent('click', 0);
|
||||
showMenu.delay(110, this, evt);
|
||||
}
|
||||
else {
|
||||
this.myEffect = $(this).effects({duration:100, transition: Fx.Transitions.linear});
|
||||
this.myEffect.start({'opacity':[0,1]});
|
||||
$(document).onclick = hide.bind(this);
|
||||
var event = new Event(evt);
|
||||
event.stop();
|
||||
}
|
||||
}
|
||||
|
||||
function hide() {
|
||||
this.myEffect.start({'opacity':[1,0]});
|
||||
$(document).onclick = '';
|
||||
}
|
||||
|
||||
function updateLinks(el) {
|
||||
$ES('a', el).each(function(link) {
|
||||
if (!link.ohref) {
|
||||
link.ohref = link.getProperty('ohref');
|
||||
}
|
||||
link.href = link.ohref + $('selectedMapIds').value;
|
||||
});
|
||||
}
|
||||
|
||||
function openWizard(href, title, rel) {
|
||||
href = href + $('selectedMapIds').value;
|
||||
// MOOdalBox.open(href, title, rel);
|
||||
}
|
||||
|
||||
function addToSelectedMapList(el) {
|
||||
var ids = $('selectedMapIds');
|
||||
var id = el.id.replace(/[^\d]/g, '');
|
||||
|
||||
var value = ids.getProperty("value");
|
||||
|
||||
if (value != "") {
|
||||
var allIds = $A(ids.value.split(','));
|
||||
var changed = false;
|
||||
if (allIds.contains(id) && !el.checked) {
|
||||
allIds.remove(id);
|
||||
changed = true;
|
||||
}
|
||||
else if (!allIds.contains(id) && el.checked) {
|
||||
allIds.extend([id]);
|
||||
changed = true;
|
||||
}
|
||||
if (changed) {
|
||||
var finalIds = "";
|
||||
$each(allIds, function(el) {
|
||||
if (!finalIds == "") {
|
||||
el = "," + el;
|
||||
}
|
||||
finalIds = finalIds + el;
|
||||
});
|
||||
value = finalIds;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (el.checked) {
|
||||
value = id;
|
||||
}
|
||||
}
|
||||
ids.setProperty("value", value);
|
||||
}
|
||||
|
||||
|
||||
function selectAllMaps(elem) {
|
||||
var value = elem.checked;
|
||||
var ids = "";
|
||||
$ES('input[type="checkbox"]', $('docTable')).each(function(el) {
|
||||
if (el.name.contains('chk')) {
|
||||
el.checked = value;
|
||||
var id = el.id.replace(/[^\d]/g, '');
|
||||
if (!ids == "") {
|
||||
id = "," + id;
|
||||
}
|
||||
ids = ids + id;
|
||||
}
|
||||
});
|
||||
if (!value) {
|
||||
$('selectedMapIds').setProperty('value', '');
|
||||
}
|
||||
else {
|
||||
$('selectedMapIds').setProperty('value', ids);
|
||||
}
|
||||
/*var allElems = document.getElementsByName("chk");
|
||||
for (var i = 0; i < allElems.length; i++)
|
||||
{
|
||||
allElems[i].checked = value;
|
||||
}*/
|
||||
}
|
||||
|
||||
function printMap(mapId) {
|
||||
document.printForm.mapId.value = mapId;
|
||||
document.printForm.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function removeCollaborator(collaboratorEmail) {
|
||||
document.removeCollaboratorForm.colaboratorId.value = collaboratorEmail;
|
||||
document.removeCollaboratorForm.submit();
|
||||
//submitDialog('removeCollaboratorForm');
|
||||
}
|
||||
function addFriendsEmails() {
|
||||
var newUsers = "";
|
||||
var ob = $('friendList');
|
||||
while (ob.selectedIndex != -1) {
|
||||
newUsers = newUsers + ", " + ob.options[ob.selectedIndex].value;
|
||||
ob.options[ob.selectedIndex].selected = false;
|
||||
}
|
||||
var dest = $('emailList');
|
||||
if (dest.value == "")
|
||||
newUsers = newUsers.substr(2, newUsers.length);
|
||||
dest.value = dest.value + newUsers;
|
||||
}
|
||||
function changeStatus(collaboratorEmail) {
|
||||
document.removeCollaboratorForm.userEmail.value = collaboratorEmail;
|
||||
submitDialog('removeCollaboratorForm');
|
||||
}
|
||||
|
||||
</script>
|
||||
<jsp:include page="footer.jsp"/>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -25,8 +25,8 @@
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../css/print.css"/>
|
||||
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-core-1.3.2-full-compress.js'></script>
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
||||
<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>
|
||||
|
||||
|
||||
|
@@ -1,44 +1,44 @@
|
||||
<!DOCTYPE HTML>
|
||||
<%@page pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles" %>
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
|
||||
<tiles:importAttribute name="title" scope="request"/>
|
||||
<tiles:importAttribute name="details" scope="request"/>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<spring:message code="SITE.TITLE"/>
|
||||
-
|
||||
<c:choose>
|
||||
<c:when test="${requestScope.viewTitle!=null}">
|
||||
${requestScope.viewTitle}
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<spring:message code="${requestScope.title}"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/wisehome.css"/>
|
||||
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
||||
<script type='text/javascript' src='../js/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="header.jsp"/>
|
||||
|
||||
<div class="pageBody">
|
||||
|
||||
<div class="pageBodyContent">
|
||||
<tiles:insert name="body"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<jsp:include page="footer.jsp"/>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE HTML>
|
||||
<%@page pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles" %>
|
||||
<%@ include file="/jsp/init.jsp" %>
|
||||
|
||||
<tiles:importAttribute name="title" scope="request"/>
|
||||
<tiles:importAttribute name="details" scope="request"/>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<spring:message code="SITE.TITLE"/>
|
||||
-
|
||||
<c:choose>
|
||||
<c:when test="${requestScope.viewTitle!=null}">
|
||||
${requestScope.viewTitle}
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<spring:message code="${requestScope.title}"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/wisehome.css"/>
|
||||
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
|
||||
<script type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
||||
<script type='text/javascript' src='../js/mootools-more.js'></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jsp:include page="header.jsp"/>
|
||||
|
||||
<div class="pageBody">
|
||||
|
||||
<div class="pageBodyContent">
|
||||
<tiles:insert name="body"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<jsp:include page="footer.jsp"/>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user