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

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

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