5 * This template generates the "Options" toolbar while reading a message.
7 * The following variables are available in this template:
9 * $links - array containing various elements to be displayed in the toolbar.
10 * Each element is an array representing an option that contains the
12 * $link['URL'] - URL needed to access the action
13 * $link['Text'] - Text to be displayed for the action.
15 * @copyright © 1999-2006 The SquirrelMail Project Team
16 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
18 * @package squirrelmail
19 * @subpackage templates
22 /** add required includes **/
24 /** extract template variables **/
27 /** Begin template **/
31 foreach ($links as $count=>$link) {
33 if (empty($link['Text']))
36 # Printer firendly link must be handled a little differently
37 if ($link['Text'] == _("View Printable Version")) {
40 <script type="text/javascript">
42 function printFormat () {
43 print_win = window.open("../src/printer_friendly_main.php<?php echo $link['URL']; ?>", "Print", "width=800; height=600");
48 <a href="javascript:printFormat()"><?php echo $link['Text']; ?></a>
51 # everything else follows this format...
53 <a href="../src/printer_friendly_bottom.php<?php echo $link['URL']; ?>" target="_blank"><?php $link['Text']; ?></a>
58 <a href="<?php echo $link['URL']; ?>"><?php echo $link['Text']; ?></a>
62 # Spit out a divider between each element
63 if ($count < count($links)-1) {