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-2014 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 <table cellspacing="0" class="table1">
38 <?php echo _("Help"); ?>
45 if ($chapter_number == 1) {
49 <a href="../src/help.php?chapter=<?php echo $chapter_number - 1; ?>"><?php echo _("Previous"); ?></a>
54 <a href="../src/help.php"><?php echo _("Table of Contents"); ?></a>
57 if ($chapter_number < $chapter_count) {
59 <a href="../src/help.php?chapter=<?php echo $chapter_number + 1; ?>"><?php echo _("Next"); ?></a>
71 if (!is_null($error_msg)) {
72 error_box($error_msg);
76 <?php echo $chapter_number; ?> - <?php echo $chapter_title; ?>
79 <?php echo $chapter_summary; ?>
82 foreach ($sections as $section) {
85 <?php echo $chapter_number; ?>.<?php echo $section['SectionNumber']; ?> - <?php echo $section['SectionTitle']; ?>
87 <?php echo $section['SectionText']; ?>
96 <small><a href="#pagetop"><?php echo _("Top"); ?></a></small>