<?php
/*
Urheber:		Gunnar Ströer
Datum:		100517

Name:			Supportsystem Stadtplan Freiburg
Engine:			PHP-Templatesystem

Adresse:		Stadt Freiburg i. Br.
					Referat für Stadtentwicklung und Bauen (RSB)
					Stabsstelle Geodatenmanagement (GDM)
*/

// Debug-Modus on
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Topics
$section = array();
$section['chpt_intro'] = 'chpt_intro_internet.php';
$section['chpt_overview'] = 'chpt_overview.php';
$section['chpt_quick_search'] = 'chpt_quick_search.php';
$section['chpt_navi'] = 'chpt_navi.php';
$section['chpt_tree'] = 'chpt_tree.php';
$section['chpt_tree_base'] = 'chpt_tree_base_internet.php';
$section['chpt_tree_data'] = 'chpt_tree_data_internet.php';
// $section['chpt_tree_profiles'] = 'chpt_tree_profiles.php';
$section['chpt_tools'] = 'chpt_tools.php';
$section['chpt_tools_gfi'] = 'chpt_tools_gfi.php';
$section['chpt_tools_print'] = 'chpt_tools_print.php';
$section['chpt_tools_search_coords'] = 'chpt_tools_search_coords.php';
$section['chpt_tools_get_coords'] = 'chpt_tools_get_coords.php';
$section['chpt_tools_search'] = 'chpt_tools_search.php';
$section['chpt_tools_measure'] = 'chpt_tools_measure.php';
$section['chpt_tools_write'] = 'chpt_tools_write.php';
$section['chpt_tools_timeline'] = 'chpt_tools_timeline.php';
$section['chpt_tools_import'] = 'chpt_tools_import.php';
$section['chpt_tools_views'] = 'chpt_tools_views.php';
$section['chpt_tools_wms'] = 'chpt_tools_wms.php';
$section['chpt_tools_scale'] = 'chpt_tools_scale.php';
$section['chpt_3d'] = 'chpt_3d.php';
$section['chpt_gn'] = 'chpt_gn.php';
$section['chpt_terms'] = 'chpt_terms.php';

// HTML-Frame
include 'header.php'; // doctype, <html> und das komplette <head>-element

echo "<body id=\"up\">\n";
echo "<div id=\"page\">\n";

include 'menu.php';

echo "<div id=\"content\">\n";

// DynamicViewController
if (isset($_GET['section'], $section[$_GET['section']])) {
	include $section[$_GET['section']];
}
else {
	include $section['chpt_intro'];
}

// HTML Frame
echo "</div>\n";

include 'footer.php';

echo "</div>\n";

include 'w3c.php';

echo "</body>\n";
echo "</html>\n";
?>
