Location: PHPKode > projects > Kwalbum > kwalbum/pages/LocationsListPage.php
<?php
/**
 * List locations of items
 *
 * @version 2.2
 * @since 2.0 2008-08-24
 * @package kwalbum
 */
require_once 'include/IPage.php';

class LocationsListPage implements IPage
{

	function GetHead(& $title)
	{
		global $URLP;
		$title = $URLP->GetTitle().': Locations';
		return '';
	}

	function ShowBody()
	{
		global $URLP, $DB;
		$query = 'SELECT DISTINCT Location FROM '.LOCATION_TABLE.', '.ITEM_TABLE.' WHERE LocationId=ItemLocationIdFk'.($URLP->GetWhereQuery(false) ? ' AND '.$URLP->GetWhereQuery(false) : null).' ORDER BY Location';
		$result = $DB->Query($query);
		require 'LocationsListPage.html.php';
	}
}
Return current item: Kwalbum