<?php
# Pull in the photostack.php program.
include('../photostack.php');
# Load photostack.
define('dirRoot', '..');
load('../config.php');
$organize = new organize;
$organize->start(); ?>

<h2>Your Photo Albums</h2>
		<div class="rightBox">
		<h3>Tips</h3>
		<p>To the left are your current albums, click them to edit photos move the album to another folder, rename, the album, and edit photo descriptions.</p>
		
		<h3>Tasks</h3>
		
		<ul>
		<li><a href="<$PSNavigationListing$>?flush=yes">Flush All Thumbnails</a></li>
		<li><a href="<$PSNavigationListing$>">View Your Installation</a></li>
		</ul>
		
		</div>
		
		<ul class="plain">
		<PSAlbums>
		<PSPhotos num="1" offset="0">
		<li style="height:<$PSPhotoThumbHeight$>px;">
			<a href="<?php echo webConfigURL.'album-edit.php?album=<$PSAlbumFolder$>'; ?>"><img 
				src="<$PSPhotoThumbPath$>" 
				alt="<$PSAlbumTitle$>" 
				width="<$PSPhotoThumbWidth$>" 
				height="<$PSPhotoThumbHeight$>" /></PSPhotos></a>
				
				<p><a href="<?php echo webConfigURL.'album-edit.php?album=<$PSAlbumFolder$>'; ?>"><strong><$PSAlbumTitle$></strong><br />
				<$PSAlbumCount$> Photos</a></p>
		</li>
		</PSAlbums>
		
		</ul>
<?php $organize->end(); ?>