505e00aa |
1 | <?php |
2 | |
3 | /** |
4 | * empty_frame.tpl |
5 | * |
6 | * Template for showing a blank frame. |
7 | * |
8 | * @copyright © 1999-2007 The SquirrelMail Project Team |
9 | * @author Paul Lesneiwski <paul@squirrelmail.org> |
10 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
11 | * @version $Id$ |
12 | * @package plugins |
13 | * @subpackage preview_pane |
14 | * |
15 | */ |
16 | |
17 | |
18 | // retrieve the template vars |
19 | // |
20 | extract($t); |
21 | |
22 | |
23 | ?><body> |
6cdb7844 |
24 | <?php |
25 | |
26 | global $data_dir, $username; |
27 | $use_previewPane = getPref($data_dir, $username, 'use_previewPane', 0); |
28 | $show_preview_pane = checkForJavascript() && $use_previewPane; |
29 | |
30 | // do a conditional refresh of message list if needed |
31 | // "pp_rr" = "preview pane read refresh" (this itself is irrelevant here) |
32 | // "pp_rr_force" = force pp_rr even if this is not the first time the message has been read |
33 | if ($show_preview_pane && sqGetGlobalVar('pp_rr_force', $pp_rr_force, SQ_FORM)) |
34 | echo "<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\nif (self.name == 'bottom' && typeof(parent.right.pp_refresh) != 'undefined') { parent.right.pp_refresh(); }\n// -->\n</script>\n"; |
35 | |