Current code.
[capital-apms.git] / html / browse.php
bloba5e668c006efa9edd15338affbeb1dfbbabdeef8
1 <?php
2 require_once('../inc/always.php');
3 require_once('classBrowser.php');
4 require_once('classLinks.php');
6 $c->stylesheets[] = "css/browse.css";
7 $page_elements = array();
9 if ( ! @include_once( "browse/$component.php" ) ) {
10 $c->messages[] = "browse/$component not found";
13 include('page-header.php');
15 // Page elements could be an array of viewers, browsers or something else
16 // that supports the Render() method...
17 $heading_level = null;
18 foreach( $page_elements AS $k => $page_element ) {
19 if ( is_object($page_element) ) {
20 echo $page_element->Render($heading_level);
21 $heading_level = 'h2';
23 else {
24 echo $page_element;
28 if (function_exists("post_render_function")) {
29 post_render_function();
33 include('page-footer.php');