Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/init.jsp" %>
<%
String referringPortletResource = ParamUtil.getString(request, "referringPortletResource");
SearchContainer articleSearchContainer = journalDisplayContext.getSearchContainer(false);
String displayStyle = journalDisplayContext.getDisplayStyle();
%>
<%
JournalArticle article = null;
JournalArticle curArticle = null;
JournalFolder curFolder = null;
boolean latestVersion = false;
Object result = row.getObject();
if (result instanceof JournalFolder) {
curFolder = (JournalFolder)result;
}
else {
curArticle = (JournalArticle)result;
article = journalDisplayContext.getLatestArticle(curArticle);
if (curArticle.equals(article)) {
latestVersion = true;
}
}
%>
<%
Map rowData = new HashMap();
if (journalDisplayContext.isShowEditActions()) {
rowData.put("draggable", !BrowserSnifferUtil.isMobile(request) && (JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.DELETE) || JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.UPDATE)));
}
rowData.put("title", HtmlUtil.escape(curArticle.getTitle(locale)));
row.setData(rowData);
row.setPrimaryKey(HtmlUtil.escape(curArticle.getArticleId()));
PortletURL rowURL = null;
if (journalDisplayContext.isShowEditActions() && JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.UPDATE)) {
rowURL = liferayPortletResponse.createRenderURL();
rowURL.setParameter("mvcPath", "/edit_article.jsp");
rowURL.setParameter("redirect", currentURL);
rowURL.setParameter("referringPortletResource", referringPortletResource);
rowURL.setParameter("groupId", String.valueOf(curArticle.getGroupId()));
rowURL.setParameter("folderId", String.valueOf(curArticle.getFolderId()));
rowURL.setParameter("articleId", curArticle.getArticleId());
rowURL.setParameter("version", String.valueOf(curArticle.getVersion()));
}
%>
<%
Date createDate = curArticle.getModifiedDate();
String modifiedDateDescription = LanguageUtil.getTimeDescription(request, System.currentTimeMillis() - createDate.getTime(), true);
%>