Location: PHPKode > projects > Kwalbum > kwalbum/pages/ThumbnailsPage.html.php
<?php
/**
 * @version 2.2
 * @since 2.0 2008-08-06
 * @package kwalbum
 */
require_once 'include/funcGetImageCode.php';
$monthNames = array('', 'January', 'February', 'March', 'April', 'May', 'June',
				'July', 'August', 'September', 'October', 'November', 'December');
$numPics = $result->num_rows;
?>
<big><b><?php echo $title; ?><?php echo (EDIT_MODE ? ' =Edit Mode=' : null); ?></b></big>
<?php echo ($subtitle ? ' <small>'.$subtitle.'</small>' : null); ?>
<? if (EDIT_MODE) {?>
<br/>
<a href="<?=$extendedURL?>&amp;n=<?=$pageNumber?>&amp;p=EditMultiple">Go to Edit Multiple Items Mode</a>
<br/>
<?}?>
<table border='0' width='100%'><tr>
<td align='left'><?=$prevLinks?></td>
<td align='center'><?=$pageNumberLinks?></td>
<td align='right'><?=$nextPageLinks?></td>
</tr></table>
<?
if ($numPics > 0)
{
	while ($row = $result->fetch_assoc())
	{
		$date = explode('-', $row['ItemDate']);
		$description = strip_tags(preg_replace('/&[^;]+;/','',$row['ItemDescription']));
		echo '<div class="kwalbumBox" style="width:'.(THUMB_X+20).'px;height:'.(THUMB_Y+80).'px;">'.
			('0000' != $date[0] ? (0 < $date[1] ? $monthNames[(int)$date[1]].' '.(0 < $date[2] ? $date[2].', ' : '') : '').$date[0] : '').'<br/>'.
			('00:00:00' != $row['ItemTime'] ? date('g:i a', strtotime($row['ItemTime'])) : '').
			"<a href='{$extendedURL}i=$row[ItemId]'>".GetImageCode($row['ItemPath'], $row['ItemFilename'], $row['ItemTypeId'], $row['ItemId']).
			"</a>".
			($row['ItemHasComments'] ? '<span class="kwalbumHasComments">(has comments)</span><br/>' : null).
			substr($description, 0, 20).(20 < strlen($description) ? '...' : null).
			"</div>\n";
	}
?>
<table border='0' width='100%'><tr>
<td align='left'><?=$prevLinks?></td>
<td align='center'><?=$pageNumberLinks?></td>
<td align='right'><?=$nextPageLinks?></td>
</tr></table>
<?
}
else
{
	echo 'No items were found that match your search.';
}
?>
Return current item: Kwalbum