Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminPeoplePage.php
<?php
/**
 * A page to change values in the People table of the database.
 * All changes are made using ajax/editPeopleValue.php
 *
 * @package kwalbum
 * @version 2.1.1
 * @since 2.0
 */
require_once 'include/IPage.php';

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

		$title = 'Change People 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 PeopleId, PeopleName FROM '.PEOPLE_TABLE.
		" ORDER BY PeopleName ASC";
		$result = $DB->Query($query);
		require 'AdminPeoplePage.html.php';
	}
}
?>
Return current item: Kwalbum