EMC > Land Surface > =$bcarray[$tab]?>
# navigation tabs ?>
-
# build nav tabs by reading tabs.txt
$file="$branch/tabs.txt";
if (file_exists($file))
{
# open tabs file
$fh=fopen($file,"r");
while(!feof($fh))
{
$line=fgets($fh);
$line=rtrim($line);
$arr=split(":",$line);
$tabname=$arr[0];
$tabsym=$arr[1];
$tabfile=$arr[2];
$tabsarr=array($tabname,$tabsym,$tabfile);
if ($tabname=="") {continue;}
if ($tab==$tabsym)
{print("
- $tabname \n");} else {print("
- $tabname \n");} } fclose($file); } ?>
- More Info
LAND SURFACE
if ($tab=="")
{
$file="$branch/summary.php";
if (file_exists($file))
{require($file);}
else
{print("Summary information does not exist.\n");}
}
else
{
$file="$branch/$tab.php";
if (file_exists($file))
{require("$tab.php");}
else
{print("$tab file does not exist.\n");}
}
?>