<%
/**
 * Copyright (c) 2000-2011 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.
 */
%>

<%
for (int j = 0; j < entryColumns.length; j++) {
	String bookmarksEntryColumn = entryColumns[j];
%>

	<c:choose>
		<c:when test='<%= bookmarksEntryColumn.equals("action") %>'>

			<%
			String align = SearchEntry.DEFAULT_ALIGN;

			if ((j + 1) == entryColumns.length) {
				align = "right";
			}
			%>

			<liferay-ui:search-container-column-jsp
				align="<%= align %>"
				path="/html/portlet/bookmarks/entry_action.jsp"
			/>
		</c:when>
		<c:when test='<%= bookmarksEntryColumn.equals("modified-date") %>'>
			<liferay-ui:search-container-column-text
				href="<%= rowHREF %>"
				name="<%= bookmarksEntryColumn %>"
				target="<%= target %>"
				value="<%= dateFormatDate.format(entry.getModifiedDate()) %>"
			/>
		</c:when>
		<c:when test='<%= bookmarksEntryColumn.equals("name") %>'>
			<liferay-ui:search-container-column-text
				href="<%= rowHREF %>"
				name="<%= bookmarksEntryColumn %>"
				target="<%= target %>"
				value="<%= HtmlUtil.escape(entry.getName()) %>"
			/>
		</c:when>
		<c:when test='<%= bookmarksEntryColumn.equals("url") %>'>
			<liferay-ui:search-container-column-text
				href="<%= rowHREF %>"
				name="<%= bookmarksEntryColumn %>"
				target="<%= target %>"
				value="<%= entry.getUrl() %>"
			/>
		</c:when>
		<c:when test='<%= bookmarksEntryColumn.equals("visits") %>'>
			<liferay-ui:search-container-column-text
				href="<%= rowHREF %>"
				name="<%= bookmarksEntryColumn %>"
				target="<%= target %>"
				value="<%= String.valueOf(entry.getVisits()) %>"
			/>
		</c:when>
	</c:choose>

<%
}
%>