home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / themes / lush / simple_header.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  55 lines

  1. <html>
  2. <head>
  3. <script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js">
  4. </script>
  5. <link rel="stylesheet" href="<?php echo $GO_THEME->stylesheet; ?>">
  6. <link rel="shortcut icon" href="<?php echo $GO_CONFIG->host; ?>lib/favicon.ico" />
  7. <link href="<?php echo $GO_CONFIG->control_url; ?>jscalendar/calendar-go.css" type="text/css" rel="stylesheet" />
  8. <link href="<?php echo $GO_THEME->theme_url.'htmlarea.css'; ?>" rel="stylesheet" type="text/css" />
  9. <?php if (isset($GO_HEADER['head'])) echo $GO_HEADER['head']; ?>
  10. <title>
  11. <?php
  12. echo $GO_CONFIG->title;
  13. if (isset($page_title))
  14. {
  15.         echo " - ".$page_title;
  16. }
  17. echo "</title>";
  18. //if user uses the calendar then check for events to remind
  19. if ($calendar_module = $GO_MODULES->get_module('calendar'))
  20. {
  21.     require_once($GO_CONFIG->class_path.'calendar.class.inc');
  22.     $header_cal = new calendar();
  23.  
  24.     $remind_events = $header_cal->get_events_to_remind($GO_SECURITY->user_id);
  25.     if ($remind_events)
  26.     {
  27.         echo '<script language="javascript" type="text/javascript">popup("'.$calendar_module['url'].'reminder.php", "500", "200");</script>';
  28.     }
  29.     unset($header_cal);
  30. }
  31. echo "</head>";
  32.  
  33. echo '<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"';
  34. if (isset($GO_HEADER['body_arguments'])) echo ' '.$GO_HEADER['body_arguments'];
  35. echo '>';
  36. ?>
  37. <script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js">
  38. </script>
  39. <script type="text/javascript" language="javascript">
  40. function hidestatus(){
  41.         window.status='Group-Office <?php echo $GO_CONFIG->version; ?>'
  42.         return true
  43. }
  44.  
  45. if (document.layers)
  46. {
  47.     document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
  48. }
  49.  
  50. document.onmouseover=hidestatus
  51. document.onmouseout=hidestatus
  52. </script>
  53. <!--Einde header-->
  54.  
  55.