Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminLocationsPage.php
<?php
/*
 * Created on sep 4, 2008
 * 2.0
 */
require_once 'include/IPage.php';

class AdminLocationsPage implements IPage
{
	function GetHead(& $title)
	{
		if (false == USER_IS_ADMIN)
			return;

		$title = 'Change Location Values';
		return '<script type="text/javascript" language="javascript" SRC="ajax/scriptaculous/prototype.js"></script>' .
				'<script type="text/javascript" language="javascript" src="ajax/scriptaculous/scriptaculous.js"></script>';
	}

	function ShowBody()
	{
		if (0 == USER_ID)
			return;
		global $URLP, $DB;
		$query = 'SELECT LocationId, Location FROM '.LOCATION_TABLE.
		" ORDER BY Location ASC";
		$result = $DB->Query($query);
		require 'AdminLocationsPage.html.php';
	}
}
?>
Return current item: Kwalbum