5 * Template to display help chapter
7 * The following variables are available in this template:
8 * $chapter_number - current chapter number. Empty on error.
9 * $chapter_count - total number of chapters in the help. Empty on error.
10 * $chapter_title - title of this chapter. Empty on error.
11 * $chapter_summary - summary of this chapter. Empty on error.
12 * $error_msg - Error message if an error is generated. NULL if
14 * $sections - array containing all secionts of this chapter. Each
15 * element contains the following fields:
16 * $el['SectionNumber'] - the number of each section
17 * $el['SectionTitle'] - the title of this section
18 * $el['SectionText'] - the text for this section
20 * @copyright © 1999-2006 The SquirrelMail Project Team
21 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @package squirrelmail
24 * @subpackage templates
27 /** add required includes **/
29 /** extract template variables **/
32 /** Begin template **/
35 <a name="pagetop"></a>
36 <table cellspacing="0" class="table1">
39 <?php echo _("Help"); ?>
46 if ($chapter_number == 1) {
50 <a href="../src/help.php?chapter=<?php echo $chapter_number - 1; ?>"><?php echo _("Previous"); ?></a>
55 <a href="../src/help.php"><?php echo _("Table of Contents"); ?></a>
58 if ($chapter_number < $chapter_count) {
60 <a href="../src/help.php?chapter=<?php echo $chapter_number + 1; ?>"><?php echo _("Next"); ?></a>
72 if (!is_null($error_msg)) {
73 error_box($error_msg);
77 <?php echo $chapter_number; ?> - <?php echo $chapter_title; ?>
80 <?php echo $chapter_summary; ?>
83 foreach ($sections as $section) {
86 <?php echo $chapter_number; ?>.<?php echo $section['SectionNumber']; ?> - <?php echo $section['SectionTitle']; ?>
88 <?php echo $section['SectionText']; ?>
97 <small><a href="#pagetop"><?php echo _("Top"); ?></a></small>