AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / docs / include / sidemenus / content_nav.inc.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 if (!defined('TR_INCLUDE_PATH')) { exit; }
14 require_once(TR_INCLUDE_PATH.'vitals.inc.php');
15 require_once(TR_INCLUDE_PATH.'classes/DAO/CoursesDAO.class.php');
16
17 global $_base_path;
18 global $savant;
19 global $contentManager, $_course_id;
20
21 ob_start();
22
23 echo '<div style="white-space:nowrap;">';
24
25 echo '<a href="'.$_base_path.'home/course/outline.php?_course_id='.$_course_id.'">'._AT('outline').'</a><br />';
26
27 /* @See classes/ContentManager.class.php        */
28 $contentManager->printMainMenu();
29
30 echo '</div>';
31
32 $savant->assign('dropdown_contents', ob_get_contents());
33 ob_end_clean();
34
35 $coursesDAO = new CoursesDAO();
36 $course_row = $coursesDAO->get($_course_id);
37
38 $savant->assign('title', $course_row['title']);
39 //$savant->assign('title', _AT('content_navigation'));
40 $savant->display('include/box.tmpl.php');
41 ?>