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 | * |
d4e46166 |
20 | * @copyright © 1999-2009 The SquirrelMail Project Team |
95acecda |
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"> |
95acecda |
35 | <table cellspacing="0" class="table1"> |
36 | <tr> |
37 | <td class="header1"> |
38 | <?php echo _("Help"); ?> |
39 | </td> |
40 | </tr> |
41 | <tr> |
42 | <td class="nav"> |
43 | <small> |
44 | <?php |
45 | if ($chapter_number == 1) { |
46 | echo _("Previous"); |
47 | } else { |
48 | ?> |
49 | <a href="../src/help.php?chapter=<?php echo $chapter_number - 1; ?>"><?php echo _("Previous"); ?></a> |
50 | <?php |
51 | } |
52 | ?> |
53 | | |
54 | <a href="../src/help.php"><?php echo _("Table of Contents"); ?></a> |
55 | | |
56 | <?php |
57 | if ($chapter_number < $chapter_count) { |
58 | ?> |
59 | <a href="../src/help.php?chapter=<?php echo $chapter_number + 1; ?>"><?php echo _("Next"); ?></a> |
60 | <?php |
61 | } else { |
62 | echo _("Next"); |
63 | } |
64 | ?> |
65 | </small> |
66 | </td> |
67 | </tr> |
68 | <tr> |
69 | <td class="help"> |
70 | <?php |
71 | if (!is_null($error_msg)) { |
72 | error_box($error_msg); |
73 | } else { |
74 | ?> |
75 | <h1> |
76 | <?php echo $chapter_number; ?> - <?php echo $chapter_title; ?> |
77 | </h1> |
78 | <h2> |
79 | <?php echo $chapter_summary; ?> |
80 | </h2> |
81 | <?php |
82 | foreach ($sections as $section) { |
83 | ?> |
84 | <h3> |
85 | <?php echo $chapter_number; ?>.<?php echo $section['SectionNumber']; ?> - <?php echo $section['SectionTitle']; ?> |
86 | </h3> |
87 | <?php echo $section['SectionText']; ?> |
88 | <?php |
89 | } |
90 | } |
91 | ?> |
92 | </td> |
93 | </tr> |
94 | <tr> |
95 | <td class="nav"> |
96 | <small><a href="#pagetop"><?php echo _("Top"); ?></a></small> |
97 | </td> |
98 | </tr> |
99 | </table> |
5ce1ef68 |
100 | </div> |