|
if ($menulocation == 2) PrintMenu ("vert"); ?>
|
|
switch ($PAGE)
{
case 'MEMBERS':
echo "Please choose a member from below for more information about the person.\n";
// Open up members.txt and print out info.
$fp = fopen ($labroot . "/text/members.txt","r");
while (($data = fgetcsv ($fp, 5000, ",")) ) {
echo "- $data[0]
\n";
}
fclose($fp);
echo " ";
break;
case 'IMAGES':
// Open up photos.txt and find info on the pic.
$fp = fopen ($labroot . "/text/photos.txt","r");
echo " ";
if (empty ($imgdata))
$imgdata = $first;
echo "";
if ($imgdata[0][0] != '.' && $imgdata[0][0] != '/')
$imgdata[0] = "/labs/" . $LAB . "/photos/" . $imgdata[0];
echo " $imgdata[1]
$imgdata[2]";
echo "";
echo "| ";
if (!empty ($imgprev[0]))
echo "Previous";
echo " | ";
if (!empty ($imgnext[0]))
echo "Next";
echo " | ";
break;
case 'OBJECTIVE': include($labroot . '/text/objectives.txt'); break;
case 'DIRMSG': include($labroot . '/text/director.txt'); break;
case 'INFO': include($labroot . '/text/related.txt'); break;
case 'CONTACT': include($labroot . '/text/contact.txt'); break;
case 'ABOUT':
default: include($labroot . '/text/overview.txt'); break;
}
?>
|
|
if ($menulocation == 3) PrintMenu ("vert"); ?>
|