Reduce confusion about what user is running the web server
[squirrelmail.git] / plugins / preview_pane / templates / default_advanced / collapse_buttons.tpl
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:
9 * + $orientation - Either "cols" or "rows" depending on how the
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 *
16 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
17 * @author Paul Lesneiwski <paul@squirrelmail.org>
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 //
28 extract($t);
29
30
31 ?><script type="text/javascript" language="JavaScript">
32 <!--
33
34 function set_preview_pane_size(new_size)
35 {
36 if (document.all)
37 {
38 parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + new_size;
39 }
40 else if (this.document.getElementById)
41 {
42 parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + new_size;
43 }
44 }
45 // -->\n</script>
46 <form style="margin:0" action="">
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>