home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / themes / crystal / header.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  47 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. <?php if (isset($GO_HEADER['head'])) echo $GO_HEADER['head']; ?>
  9. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
  10. <script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js"></script>
  11. <link href="<?php echo $GO_THEME->theme_url.'style.css'; ?>" rel="stylesheet" type="text/css" />
  12. <link href="<?php echo $GO_THEME->theme_url.'htmlarea.css'; ?>" rel="stylesheet" type="text/css" />
  13. <link href="<?php echo $GO_CONFIG->control_url; ?>jscalendar/calendar-go.css" type="text/css" rel="stylesheet" />
  14. <link rel="shortcut icon" href="<?php echo $GO_CONFIG->host; ?>lib/favicon.ico" />
  15. <title>
  16. <?php
  17. echo $GO_CONFIG->title;
  18. if (isset($page_title))
  19. {
  20.         echo " - ".$page_title;
  21. }
  22. echo "</title>\r\n";
  23. if(isset($auto_refresh_url))
  24. {
  25.      echo '<meta http-equiv="refresh" content="'.$GO_CONFIG->refresh_rate.';url='.$auto_refresh_url.'">';
  26. }
  27. //if user uses the calendar then check for events to remind
  28. if ($calendar_module = $GO_MODULES->get_module('calendar'))
  29. {
  30.     require_once($GO_CONFIG->class_path.'calendar.class.inc');
  31.     $header_cal = new calendar();
  32.  
  33.     $remind_events = $header_cal->get_events_to_remind($GO_SECURITY->user_id);
  34.     if ($remind_events)
  35.     {
  36.         echo '<script language="javascript" type="text/javascript">popup("'.$calendar_module['url'].'reminder.php", "500", "200");</script>';
  37.     }
  38.     unset($header_cal);
  39. }
  40.  
  41. echo "</head>\r\n";
  42. echo '<body ';
  43. if (isset($GO_HEADER['body_arguments'])) echo ' '.$GO_HEADER['body_arguments'];
  44. echo '>';
  45. ?>
  46. <!--Einde header-->
  47.