2 require(dirname(__FILE__) . '/vitals.inc.php');
6 * prints an unordered html list representation of the multidimensional array.
7 * $pages the array of items to print.
8 * $section the directory name of the files.
10 function hb_print_toc($pages, $section) {
11 global $_pages, $req_lang;
13 foreach ($pages as $page_key => $page_value) {
15 if (is_array($page_value)) {
16 echo '<a href="../'.$section.'/'.$page_key.'?'.$req_lang.'" id="id'.$page_key.'" class="tree">'.$_pages[$page_key].'</a>';
17 hb_print_toc($page_value, $section);
19 echo '<a href="../'.$section.'/'.$page_value.'?'.$req_lang.'" id="id'.$page_value.'" class="leaf">'.$_pages[$page_value].'</a>';
26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
27 <html lang="<?php if ($missing_lang) { echo 'en'; } else { echo $req_lang; } ?>">
29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
30 <title><?php get_text('handbook_toc'); ?></title>
31 <base target="body" />
32 <style type="text/css">
33 body { font-family: Verdana,Arial,sans-serif; font-size: x-small; margin: 0px; padding: 0px; background: #f4f4f4; margin-left: -5px; }
34 ul { list-style: none; padding-left: 0px; margin-left: -15px; }
35 li { margin-left: 19pt; padding-top: 2px; }
36 a { background-repeat: no-repeat; background-position: 0px 1px; padding-left: 12px; text-decoration: none; }
37 a.tree { background-image: url('folder.gif'); }
38 a.leaf { background-image: url('paper.gif'); }
39 a:link, a:visited { color: #006699; }
40 a:hover { color: #66AECC; }
42 <script type="text/javascript">
44 function highlight(page) {
46 if (parent.header.currentPage) {
47 var toc = parent.toc.document.getElementById(parent.header.currentPage);
48 toc.style.color = 'blue';
49 toc.style.fontWeight = 'bold';
52 if (parent.header.currentPage) {
53 var toc = parent.toc.document.getElementById(parent.header.currentPage);
55 toc.style.fontWeight = '';
58 var toc = parent.toc.document.getElementById(page);
59 toc.style.color = 'blue';
60 toc.style.fontWeight = 'bold';
61 parent.header.currentPage = page;
67 <body onload="highlight(false);">
69 require(dirname(__FILE__).'/../'.$section.'/pages.inc.php');
70 if (($req_lang != 'en') && (file_exists(dirname(__FILE__).'/../'.$section.'/'.$req_lang.'/pages.inc.php'))) {
71 require(dirname(__FILE__).'/../'.$section.'/'.$req_lang.'/pages.inc.php');
73 if ($section == 'admin'){
76 'installation.php' => array(
77 'requirements_recommendations.php',
78 'new_installation.php',
81 'configuration.php' => array('my_account.php'),
82 'system_preferences.php' => array(
83 'default_preferences.php',
86 'themes.php' => array(
87 'importing_themes.php',
88 'managing_existing_themes.php',
96 'enrollment.php' => array(
97 'enrollment_privileges.php',
100 'instructor_requests.php',
101 'master_student_list.php',
105 'courses.php' => array(
107 'creating_courses.php',
108 'default_student_tools.php',
109 'default_side_menu.php',
114 'basiclti_external_tools.php',
115 'patcher.php' => array(
118 'troubleshooting.php',
121 hb_print_toc($pages, 'admin');
123 } else if ($section == 'instructor'){
125 'introduction.php' => array('creating_courses.php','student_tools.php', 'fha_student_tools.php','side_menu.php'),
128 'backups.php' => array(
129 'creating_restoring.php',
130 'downloading_uploading.php',
131 'editing_deleting.php'
134 'content.php' => array(
135 'creating_editing_content.php' => array(
137 'content_properties.php', 'glossary_terms.php',
138 'content_preview.php',
139 'arrange_content.php',
140 'content_alternatives.php', 'accessibility.php',
143 'content_packages.php',
145 'tile_repository.php',
149 'enrollment.php' => array(
150 'enrollment_privileges.php',
151 'enrollment_alumni.php',
152 'enrollment_course_list.php'
154 'file_manager.php' => array(
155 'managing_files_folders.php',
156 'extracting_zip_archives.php'
158 'forums.php' => array( 'managing_threads.php' => array('managing_posts.php'),
166 'properties.php' => array('authenticated_access.php', 'delete_course.php'),
169 'tests_surveys.php' => array(
170 'creating_tests_surveys.php',
171 'question_database.php' => array('creating_questions.php'),
172 'question_categories.php',
173 'edit_delete_tests.php',
176 'student_submissions.php',
177 'test_statistics.php'
180 'gradebook.php' => array(
182 'gradebook_update.php',
183 'gradebook_external_marks.php',
184 'gradebook_edit_marks.php',
185 'gradebook_scales.php'
189 hb_print_toc($pages, 'instructor');
196 'browse_courses.php',
197 'password_reminder.php',
198 'my_start_page.php' => array(
199 'my_courses.php' => array('create_course.php'),
204 'inside_course.php' => array(
205 'export_content.php',
211 'my_network.php' => array(
218 'pa_index.php' => array(
224 hb_print_toc($pages, 'general');