| 1 | <?php |
| 2 | /** |
| 3 | * help_toc.tpl |
| 4 | * |
| 5 | * Help Table of Contents template |
| 6 | * |
| 7 | * The following variables are available in this template: |
| 8 | * $toc - array containing table of contents. Each element is an |
| 9 | * array representing a chapter with the following fields: |
| 10 | * $el['Chapter'] - integer chapter Number |
| 11 | * $el['Title'] - string title of the chapter |
| 12 | * $el['Summary'] - string description of the chapter |
| 13 | * |
| 14 | * @copyright © 1999-2006 The SquirrelMail Project Team |
| 15 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 16 | * @version $Id$ |
| 17 | * @package squirrelmail |
| 18 | * @subpackage templates |
| 19 | */ |
| 20 | |
| 21 | /** add required includes **/ |
| 22 | |
| 23 | /** extract template variables **/ |
| 24 | extract($t); |
| 25 | |
| 26 | /** Begin template **/ |
| 27 | ?> |
| 28 | <div id="help"> |
| 29 | <table cellspacing="0" class="table1"> |
| 30 | <tr> |
| 31 | <td class="header1"> |
| 32 | <?php echo _("Help"); ?> |
| 33 | </td> |
| 34 | </tr> |
| 35 | <tr> |
| 36 | <td class="header3"> |
| 37 | <?php echo _("Table of Contents"); ?> |
| 38 | </td> |
| 39 | </tr> |
| 40 | <tr> |
| 41 | <td class="help"> |
| 42 | <ol> |
| 43 | <?php |
| 44 | foreach ($toc as $chapter) { |
| 45 | ?> |
| 46 | <li> |
| 47 | <a href="../src/help.php?chapter=<?php echo $chapter['Chapter']; ?>"><?php echo $chapter['Title']; ?></a> |
| 48 | <ul><?php echo $chapter['Summary']; ?></ul> |
| 49 | </li> |
| 50 | <?php |
| 51 | } |
| 52 | ?> |
| 53 | </ol> |
| 54 | </td> |
| 55 | </tr> |
| 56 | </table> |
| 57 | </div> |