2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /************************************************************************/
14 if (!defined('AT_INCLUDE_PATH')) { exit; }
16 global $next_prev_links;
17 global $_base_path, $_my_uri;
19 global $system_courses;
22 $stack_files = array();
24 if (isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0) {
25 $savant->assign('my_uri', $_my_uri);
27 $savant->assign('right_menu_open', TRUE);
28 $savant->assign('popup_help', 'MAIN_MENU');
29 $savant->assign('menu_url', '<a name="menu"></a>');
30 $savant->assign('close_menu_url', htmlspecialchars($_my_uri).'disable=PREF_MAIN_MENU');
31 $savant->assign('close_menus', _AT('close_menus'));
33 //copyright can be found in include/html/copyright.inc.php
35 $side_menu = explode('|', $system_courses[$_SESSION['course_id']]['side_menu']);
37 foreach ($side_menu as $side) {
38 if (isset($_stacks[$side])) {
39 $stack_files[] = $_stacks[$side]['file'];
44 $theme_img = $_base_path . 'themes/'. $_SESSION['prefs']['PREF_THEME'] . '/images/';
45 $savant->assign('img', $theme_img);
48 $err->showErrors(); // print all the errors caught on this page
50 $savant->assign('side_menu', $stack_files);
52 // this js is indep of the theme used:
54 <script language="javascript" type="text/javascript">
57 function rowselect(obj) {
58 obj.className = 'selected';
59 if (selected && selected != obj.id)
60 document.getElementById(selected).className = '';
63 function rowselectbox(obj, checked, handler) {
64 var functionDemo = new Function(handler + ";");
68 obj.className = 'selected';
76 if ($framed || $popup) {
77 $savant->display('include/fm_footer.tmpl.php');
79 $savant->display('include/footer.tmpl.php');
84 $mtime = explode(" ", $mtime);
85 $mtime = $mtime[1] + $mtime[0];
87 $totaltime = ($endtime - $starttime);
88 debug ($totaltime. ' seconds.', "TIME USED");
91 if (defined('AT_DEVEL') && AT_DEVEL) {
92 debug(TABLE_PREFIX, 'TABLE_PREFIX');
93 debug(DB_NAME, 'DB_NAME');
94 debug(VERSION, 'VERSION');