Location: PHPKode > scripts > Quotes Module > quotes-module/quotes_admin.inc.php
<?PHP
/**
 * quotes_admin - Displays admin menu and contains admin switches
 *
 * This is the admin hub of the quotes module. All admin 
 * operational decisions are made here.
 *
 * @module quote
 * @package phpWebSite
 * @author Edward Ritter <hide@address.com>
 * @version $Id: quotes_admin.inc.php,v 1.1 2002/09/03 19:34:33 esritter Exp $
 */
         
// include block options class
include_once ("./mod/$modname/block_set.inc.php");

$box_title = "$modname Administration";
$box_content .="<div align=\"center\">
<a href=\"admin.php\">Site Admin</a> | 
<a href=\"mod.php?mod=$modname&amp;op=".$modname."_admin\">$module_long_name Admin</a> | 
<a href=\"mod.php?mod=$modname&amp;op=".$modname."_admin&amp;adminop=options\">$module_long_name Options</a></div>";

switch ($adminop) {
	case "add":
		$quote = new qotd;
		$quote->add($qquote, $qauthor);
		break;
	case "modify":
		$quote = new qotd;
		$quote->modify($qid);
		break;
	case "update":
		$quote = new qotd;
		$quote->update($qid, $qquote, $qauthor);
		break;
	case "delete":
		$quote = new qotd;
		$quote->delete($qid);
		break;
	case "options":
		$blockadmin = new block_admin;
		thememainbox($box_title, $box_content);
		$blockadmin->block_set();		
		break;
	case "change_title":
		$blockadmin = new block_admin;
		$box_content .= $blockadmin->change_title($title);
		thememainbox($box_title, $box_content);
		break;
	case "change_position":
		$blockadmin = new block_admin;
		$box_content .= $blockadmin->change_position($position);
		thememainbox($box_title, $box_content);
		break;
	case "view_option":
		$blockadmin = new block_admin;
		$box_content .= $blockadmin->view_option($view);
		thememainbox($box_title, $box_content);
		break;
	default:
		$quote = new qotd;
		thememainbox($box_title, $box_content);
		$quote->admin();
		break;
}

?>
Return current item: Quotes Module