Location: PHPKode > projects > Web-NoteTaker > notetaker/include/report.php
<?php
// NoteTaker
// Created and Coded by Bo Ahlberg
// Copyright 2008 by Bo Ahlberg ( bahlberg at mac.com )
// This code is licensed "AS-IS", No warranty is expressed or implied as to the
// suitability of this software for any purpose. Further, this code is licensed
//	under the:
//    Creative Commons Attribution-Share Alike 3.0 United States License
// This means you are free to:
//		to Share - to copy, distribute, display, and perorm work
//	  to remix - to make derivative works
//  Under the Following Conditions:
//		Attribution - You must attribute the work in the manner 
//    		specified by the author or licensor (but not in any way 
//    		that suggests that they endorse you or your use of the work).
//    Share Alike. If you alter, transform, or build upon this work, 
//				you may distribute the resulting work only under the same, 
//				similar or a compatible license.
//	For any reuse or distribution, you must make clear to others the license 
//		terms of this work. The best way to do this is with a link to this web page.
//	Any of the above conditions can be waived if you get permission from the 
//		copyright holder.
//	Apart from the remix rights granted under this license, nothing in this 
//		license impairs or restricts the author's moral rights.
//

function reportMain(  )
{
	$mode = (array_key_exists( 'mode', $_REQUEST ))? $_REQUEST['mode'] : "default";
	$id   = (array_key_exists( 'id',   $_REQUEST ))? $_REQUEST['id']   : 0;
	$bdy  = "";
	switch( $mode )
	{
		case 'post' :
			$bdy.= processReportInput( $id );
			$bdy.= listReport( $id );
			break;
		case 'edit' :
			$bdy.= editReportDef( $id );
			$bdy.= listReport( $id );
			break;
		default:
			if ( $mode != "" )
				$bdy.= listReport( $id );
			else
				$bdy.= "";
			break;
	}
	return $bdy;
}

function processReportInput( $id )
{
	return makeTable( 0,makeRow( makeCell( 1, "Process Report Input (".$id.")" ) ) );
}

function editReportDef( $id )
{
	return makeTable( 0, makeRow( makeCell( 1, "Process Report Input (".$id.")" ) ) );
}

function listReport( $id )
{
	return makeTable( 0, makeRow( makeCell( 1, "Process Report Input (".$id.")" ) ) );
}
?>
Return current item: Web-NoteTaker