empty_frame.tpl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * empty_frame.tpl
  4. *
  5. * Template for showing a blank frame.
  6. *
  7. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  8. * @author Paul Lesneiwski <paul@squirrelmail.org>
  9. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10. * @version $Id$
  11. * @package plugins
  12. * @subpackage preview_pane
  13. *
  14. */
  15. // retrieve the template vars
  16. //
  17. extract($t);
  18. ?><body>
  19. <?php
  20. global $data_dir, $username;
  21. $use_previewPane = getPref($data_dir, $username, 'use_previewPane', 0);
  22. $show_preview_pane = checkForJavascript() && $use_previewPane;
  23. // do a conditional refresh of message list if needed
  24. // "pp_rr" = "preview pane read refresh" (this itself is irrelevant here)
  25. // "pp_rr_force" = force pp_rr even if this is not the first time the message has been read
  26. if ($show_preview_pane && sqGetGlobalVar('pp_rr_force', $pp_rr_force, SQ_FORM))
  27. 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";