Location: PHPKode > projects > Care For Kids > careforkids/content.inc.php
<?php
	if (isset($_REQUEST['msg']))
	{
		echo "<p>".$_REQUEST['msg']."</p>";
	}
	else
	{

	include_once ($_SESSION['base_dir']."/classes/ovc_group.inc.php");
	include_once ($_SESSION['base_dir']."/classes/child.inc.php");
	include_once ($_SESSION['base_dir']."/classes/household.inc.php");
	include_once ($_SESSION['base_dir']."/classes/volunteer.inc.php");

//get all churches
	$church = new Group;
	$church = Group::getAllGroups();
	$count_church = count($church);

//get all children
	$child = new Child;
	$child = Child::getActiveChildren();
	$count_child = count($child);

//get all households
	$household = new Household;
	$household = Household::getActiveHouseholds();
	$count_household = count($household);

//get all volunteers
	$volunteer = new Volunteer;
	$volunteer = Volunteer::getActiveVolunteers();
	$volunteer_count = count($volunteer);


?>
		<h2>Project Summary</h2>
			<table class="summary">
				<tr>
					<td class="data1" width="220">Number of Churches
					</td>
					<td class="data1" align="right" width="120"><?php echo $count_church; ?>
					</td>
				</tr>
				<tr>
					<td class="data2">Total Children
					</td>
					<td class="data2"><?php echo $count_child; ?>
					</td>
				</tr>
				<tr>
					<td class="data1">Total Households
					</td>
					<td class="data1"><?php echo $count_household; ?>
					</td>
				</tr>
				<tr>
					<td class="data2">Total Volunteers
					</td>
					<td class="data2"><?php echo $volunteer_count; ?>
					</td>
				</tr>
			</table>
<?php
	}
?>







Return current item: Care For Kids