2 require_once('../inc/always.php');
4 require_once('classViewer.php');
5 require_once('classLinks.php');
7 $component = (isset($_GET['t']) ?
clean_string($_GET['t']) : null);
8 $id = (isset($_GET['id']) ?
clean_string($_GET['id']) : null);;
10 require_once('apms_menus.php');
12 $c->stylesheets
[] = "css/view.css";
13 $page_elements = array();
15 if ( ! @include_once
( "view/$component.php" ) ) {
16 $c->messages
[] = "view/$component not found";
19 ///////////////////////////////////////////////////////
20 // From here we start rendering the page to the user...
21 ///////////////////////////////////////////////////////
22 include('page-header.php');
24 // Page elements could be an array of viewers, browsers or something else
25 // that supports the Render() method...
26 $heading_level = null;
27 foreach( $page_elements AS $k => $page_element ) {
28 if ( is_object($page_element) ) {
29 echo $page_element->Render($heading_level);
30 $heading_level = 'h2';
37 if (function_exists("post_render_function")) {
38 post_render_function();
41 include('page-footer.php');