home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / themes / nuvola / simple_header.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  54 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. echo '<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"';
  33. if (isset($GO_HEADER['body_arguments'])) echo ' '.$GO_HEADER['body_arguments'];
  34. echo '>';
  35. ?>
  36. <script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js">
  37. </script>
  38. <script type="text/javascript" language="javascript">
  39. function hidestatus(){
  40.         window.status='Group-Office <?php echo $GO_CONFIG->version; ?>'
  41.         return true
  42. }
  43.  
  44. if (document.layers)
  45. {
  46.     document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
  47. }
  48.  
  49. document.onmouseover=hidestatus
  50. document.onmouseout=hidestatus
  51. </script>
  52. <!--Einde header-->
  53.  
  54.