Fixing spelling error (I hope).
[squirrelmail.git] / plugins / preview_pane / templates / default_advanced / collapse_buttons.tpl
CommitLineData
b5e94525 1<?php
2
3/**
4 * collapse_buttons.tpl
5 *
6 * Template for building (un)collapse (and clear) buttons for preview pane.
7 *
8 * The following variables are available in this template:
010ff205 9 * + $orientation - Either "cols" or "rows" depending on how the
b5e94525 10 * preview pane is oriented
11 * + $down_arrow - The value to be displayed on the collapse button
12 * + $up_arrow - The value to be displayed on the uncollapse button
13 * + $base_uri - The SquirrelMail base URI
14 * + $previewPane_size - The user's configured size of the preview pane
15 *
d4e46166 16 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
37779891 17 * @author Paul Lesniewski <paul@squirrelmail.org>
b5e94525 18 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
19 * @version $Id$
20 * @package plugins
21 * @subpackage preview_pane
22 *
23 */
24
25
26// retrieve the template vars
27//
28extract($t);
29
30
010ff205 31?><script type="text/javascript" language="JavaScript">
b5e94525 32<!--
33
34 function set_preview_pane_size(new_size)
35 {
36 if (document.all)
37 {
010ff205 38 parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + new_size;
b5e94525 39 }
40 else if (this.document.getElementById)
41 {
010ff205 42 parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + new_size;
b5e94525 43 }
44 }
45// -->\n</script>
e55a6ead 46<form style="margin:0" action="">
b5e94525 47 <input type="button" value="<?php echo $down_arrow; ?>" onclick="set_preview_pane_size(0)" />
48 <input type="button" value="X" onclick="parent.bottom.document.location='<?php echo $base_uri; ?>plugins/preview_pane/empty_frame.php'" />
49 <input type="button" value="<?php echo $up_arrow; ?>" onclick="set_preview_pane_size(<?php echo $previewPane_size; ?>)" />
50</form>