%@page contentType="text/html"%>
<%@ include file="includes/dbinclude.jsp"%>
<%@page import="jim.data.Data"%>
<%@page import="jim.data.ListData"%>
<%@page import="jim.data.PhotoCollectionData"%>
<%@page import="jim.data.PhotoData"%>
<%@page import="jim.session.User"%>
<%@page import="jim.page.PageInfo"%>
<%@page import="jim.page.PhotoPageManager"%>
<%
request.setAttribute("dbconnection", myConn);
PageInfo pageInfo = PhotoPageManager.processRequest(application, pageContext);
ListData currentData = (ListData)pageInfo.getPageContent();
User user = (User)session.getAttribute("user");
String collectionid = request.getParameter("collectionid");
boolean suppressLogEntry = false;
%>
<%@ include file="includes/header.jsp"%>
<%
if (collectionid != null)
{
%>
<%
}
else
{
%>
<%
}
if (collectionid != null) {
%>
" height="<%=INT_IMAGE_HEIGHT%>"--%> border="0" style="border: 4px solid <%=sysbundle.getString("site.photos.bordercolor.hex")%>">
<%
if (user.getLoggedIn())
{
%>Edit Album<%
}
%>
<%
} else {
int albumCounter = 0;
Iterator albumIterator = currentData.getAllData().iterator();
while (albumIterator.hasNext())
{
Data albumData = (Data)albumIterator.next();
%>
<%=albumData.getTitle()%>
">
|
<%=albumData.getContents()%> |
<%
albumCounter++;
}
%>
<%
Menu subMenu = (Menu)currentData;
int currentPage = pageInfo.getStart() + 1;
int menuPages = (int)Math.ceil((double)subMenu.getMenuLength() / (double)subMenu.getItemsPerPage());
if (subMenu.getItemsPerPage() != Menu.SHOW_ALL && menuPages > 1)
{
%><%
if (currentPage > 1)
{
%><-<%
}
for (int i = 1; i <= menuPages; i++)
{
if (currentPage == i)
{
%> <%=i%><%
}
else
{
%> <%=i%><%
}
}
if (currentPage < menuPages)
{
%> -><%
}
%>
<%
}
%>
<%@ include file="includes/features.jsp"%>
<%
}
myConn.close();
%>
<%@ include file="includes/footer.jsp"%>