2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
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 /************************************************************************/
13 define('TR_INCLUDE_PATH', '../include/');
14 include(TR_INCLUDE_PATH.'vitals.inc.php');
15 include(TR_INCLUDE_PATH.'handbook_pages.inc.php');
17 global $handbook_pages;
19 if (isset($_GET['p'])) {
20 $p = htmlentities($_GET['p']);
22 // go to first handbook page defined in $handbook_pages
23 foreach ($handbook_pages as $page_key => $page_value)
25 if (is_array($page_key))
27 if (isset($_pages[$page_key])) $display_page = $page_key;
31 if (isset($_pages[$page_value])) $display_page = $page_value;
33 if (isset($display_page))
35 header('Location: index.php?p='.htmlentities($page_key));
40 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
42 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo DEFAULT_LANGUAGE_CODE; ?>" lang="<?php echo DEFAULT_LANGUAGE_CODE; ?>">
44 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
45 <title><?php echo htmlspecialchars(_AT('Transformable_handbook'), ENT_QUOTES, 'UTF-8'); ?></title>
47 <script type="text/javascript">
52 var fs = document.getElementById('frameset1');
61 window.setTimeout('show2()', 1);
67 window.setTimeout('show2()', 1);
72 var fs = document.getElementById('frameset1');
81 window.setTimeout('hide2()', 1);
88 window.setTimeout('hide2()', 1);
93 <frameset rows="24,*">
94 <frame src="frame_header.php?p=<?php echo $p; ?>" frameborder="0" name="header" title="header" scrolling="no" noresize="noresize">
95 <frameset cols="22%, *" id="frameset1">
96 <frame frameborder="0" scrolling="auto" marginwidth="0" marginheight="0" src="frame_toc.php" name="toc" id="toc" title="Table of Contents">
97 <frame frameborder="0" src="frame_content.php?p=<?php echo $p; ?>" name="body" id="body" title="Content">
101 <h1><?php echo _AT('Transformable_handbook'); ?></h1>
102 <p><a href="frame_toc.html">Table of Contents</a></p>