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

  1. <?php
  2. $load_start = getmicrotime();
  3. $charset = isset($charset) ? $charset : 'iso-8859-1';
  4. header('Content-Type: text/html; charset='.$charset);
  5. ?>
  6. <html>
  7. <head>
  8. <link rel="shortcut icon" href="<?php echo $GO_CONFIG->host; ?>lib/favicon.ico" />
  9. <?php if (isset($GO_HEADER['head'])) echo $GO_HEADER['head']; ?>
  10. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
  11. <script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js"></script>
  12. <link rel="shortcut icon" href="<?php echo $GO_CONFIG->host; ?>lib/favicon.ico" />
  13. <link href="<?php echo $GO_THEME->theme_url.'style.css'; ?>" rel="stylesheet" type="text/css" />
  14. <link href="<?php echo $GO_THEME->theme_url.'htmlarea.css'; ?>" rel="stylesheet" type="text/css" />
  15. <link href="<?php echo $GO_CONFIG->control_url; ?>jscalendar/calendar-go.css" type="text/css" rel="stylesheet" />
  16. <title>
  17. <?php
  18. echo $GO_CONFIG->title;
  19. if (isset($page_title))
  20. {
  21.         echo " - ".$page_title;
  22. }
  23.  
  24. echo '</title>';
  25. if(isset($auto_refresh_url))
  26. {
  27.      echo '<meta http-equiv="refresh" content="'.$GO_CONFIG->refresh_rate.';url='.$auto_refresh_url.'">';
  28. }
  29. //if user uses the calendar then check for events to remind
  30. if ($calendar_module = $GO_MODULES->get_module('calendar'))
  31. {
  32.     require_once($GO_CONFIG->class_path.'calendar.class.inc');
  33.     $header_cal = new calendar();
  34.  
  35.     $remind_events = $header_cal->get_events_to_remind($GO_SECURITY->user_id);
  36.     if ($remind_events)
  37.     {
  38.         echo '<script language="javascript" type="text/javascript">popup("'.$calendar_module['url'].'reminder.php", "500", "200");</script>';
  39.     }
  40.     unset($header_cal);
  41. }
  42. echo "</head>\r\n";
  43. echo '<body ';
  44. if (isset($GO_HEADER['body_arguments'])) echo ' '.$GO_HEADER['body_arguments'];
  45. echo '>';
  46. ?>
  47.  
  48. <!--Einde header-->
  49.