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();
String searchContainerId = ParamUtil.getString(request, "searchContainerId");
%>
<%
JournalArticle curArticle = null;
JournalFolder curFolder = null;
Object result = row.getObject();
if (result instanceof JournalFolder) {
curFolder = (JournalFolder)result;
}
else {
curArticle = (JournalArticle)result;
}
%>
<%
Map rowData = new HashMap();
if (journalDisplayContext.isShowEditActions()) {
rowData.put("draggable", 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()));
String editURL = StringPool.BLANK;
if (JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.UPDATE)) {
PortletURL editArticleURL = liferayPortletResponse.createRenderURL();
editArticleURL.setParameter("mvcPath", "/edit_article.jsp");
editArticleURL.setParameter("redirect", currentURL);
editArticleURL.setParameter("referringPortletResource", referringPortletResource);
editArticleURL.setParameter("groupId", String.valueOf(curArticle.getGroupId()));
editArticleURL.setParameter("folderId", String.valueOf(curArticle.getFolderId()));
editArticleURL.setParameter("articleId", curArticle.getArticleId());
editArticleURL.setParameter("version", String.valueOf(curArticle.getVersion()));
editURL = editArticleURL.toString();
}
%>
<%
Date createDate = curArticle.getModifiedDate();
String modifiedDateDescription = LanguageUtil.getTimeDescription(request, System.currentTimeMillis() - createDate.getTime(), true);
%>