<?php
include ('referrals_fns.php');
session_start();
header("Cache-control: private");
/***************************
*
* show_organization.php
*
* Displays organization
*
***************************/
$orgid = $_GET['orgid'];
// Make sure the organization exists
$orgexists = organization_exists($orgid);
if ($orgexists == 2)
{
do_html_header("Displaying organization");
echo "Failure displaying organization, it does not exist.<P>";
}
else
{
// get this organization out of database
// from organization_fns.php
$organization = get_organization_details($orgid);
$orgtitle = "$organization[2]";
do_html_header($orgtitle);
// from organization_fns.php
$categories = get_organization_categories($orgid);
// from output_fns.php
// Send $organization as enumerated array
// Send $categories as enumerated to enumerated array
display_organization_details($organization, $categories);
// set url for "continue button"
$target = "index.php";
if($organization["catid"])
{
$target = "show_cat.php?catid=".$organization["catid"];
}
}
do_html_footer();
?>