95acecda |
1 | <?php |
2 | /** |
3 | * help_chapter.tpl |
4 | * |
5 | * Template to display help chapter |
6 | * |
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 |
13 | * no error is thrown. |
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 |
19 | * |
20 | * @copyright © 1999-2006 The SquirrelMail Project Team |
21 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
22 | * @version $Id$ |
23 | * @package squirrelmail |
24 | * @subpackage templates |
25 | */ |
26 | |
27 | /** add required includes **/ |
28 | |
29 | /** extract template variables **/ |
30 | extract($t); |
31 | |
32 | /** Begin template **/ |
33 | ?> |
34 | <div id="help"> |
35 | <a name="pagetop"></a> |
36 | <table cellspacing="0" class="table1"> |
37 | <tr> |
38 | <td class="header1"> |
39 | <?php echo _("Help"); ?> |
40 | </td> |
41 | </tr> |
42 | <tr> |
43 | <td class="nav"> |
44 | <small> |
45 | <?php |
46 | if ($chapter_number == 1) { |
47 | echo _("Previous"); |
48 | } else { |
49 | ?> |
50 | <a href="../src/help.php?chapter=<?php echo $chapter_number - 1; ?>"><?php echo _("Previous"); ?></a> |
51 | <?php |
52 | } |
53 | ?> |
54 | | |
55 | <a href="../src/help.php"><?php echo _("Table of Contents"); ?></a> |
56 | | |
57 | <?php |
58 | if ($chapter_number < $chapter_count) { |
59 | ?> |
60 | <a href="../src/help.php?chapter=<?php echo $chapter_number + 1; ?>"><?php echo _("Next"); ?></a> |
61 | <?php |
62 | } else { |
63 | echo _("Next"); |
64 | } |
65 | ?> |
66 | </small> |
67 | </td> |
68 | </tr> |
69 | <tr> |
70 | <td class="help"> |
71 | <?php |
72 | if (!is_null($error_msg)) { |
73 | error_box($error_msg); |
74 | } else { |
75 | ?> |
76 | <h1> |
77 | <?php echo $chapter_number; ?> - <?php echo $chapter_title; ?> |
78 | </h1> |
79 | <h2> |
80 | <?php echo $chapter_summary; ?> |
81 | </h2> |
82 | <?php |
83 | foreach ($sections as $section) { |
84 | ?> |
85 | <h3> |
86 | <?php echo $chapter_number; ?>.<?php echo $section['SectionNumber']; ?> - <?php echo $section['SectionTitle']; ?> |
87 | </h3> |
88 | <?php echo $section['SectionText']; ?> |
89 | <?php |
90 | } |
91 | } |
92 | ?> |
93 | </td> |
94 | </tr> |
95 | <tr> |
96 | <td class="nav"> |
97 | <small><a href="#pagetop"><?php echo _("Top"); ?></a></small> |
98 | </td> |
99 | </tr> |
100 | </table> |
101 | </dib> |