[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/templates/edge-it/ -> head.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare                                                               *
   4      * http://www.egroupware.org                                                *
   5      * --------------------------------------------                             *
   6      *  This program is free software; you can redistribute it and/or modify it *
   7      *  under the terms of the GNU General Public License as published by the   *
   8      *  Free Software Foundation; either version 2 of the License, or (at your  *
   9      *  option) any later version.                                              *
  10      \**************************************************************************/
  11  
  12      /* $Id: head.inc.php 16305 2004-08-09 12:32:46Z reinerj $ */
  13  
  14      if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
  15      {
  16          $mtime = microtime(); 
  17          $mtime = explode(' ',$mtime); 
  18          $mtime = $mtime[1] + $mtime[0]; 
  19          $GLOBALS['page_start_time'] = $mtime; 
  20      }
  21  
  22      // get used language code
  23      $lang_code = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
  24  
  25      $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" alink="'
  26          . $GLOBALS['phpgw_info']['theme']['alink'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" vlink="'
  27          . $GLOBALS['phpgw_info']['theme']['vlink'] . '"';
  28  
  29      if(!$GLOBALS['phpgw_info']['server']['htmlcompliant'])
  30      {
  31          $bodyheader .= '';
  32      }
  33  
  34      #_debug_array($GLOBALS['phpgw_info']['user']['preferences']['common']);
  35      $theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
  36      if(!file_exists($theme_css))
  37      {
  38          $theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
  39      }
  40  
  41      //pngfix defaults to yes
  42      if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix'])
  43      {
  44          $pngfix_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/js/pngfix.js';
  45          $pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 and higher --> 
  46          <!--[if gte IE 5.5000]>
  47          <script src="'.$pngfix_src.'" type="text/javascript">
  48          </script>
  49          <![endif]-->';
  50      }
  51  
  52      if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_slider_effects'])
  53      {
  54          $slider_effects_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/js/slidereffects.js';
  55          $slider_effects = '<script src="'.$slider_effects_src.'" type="text/javascript">
  56          </script>';
  57      }
  58      else
  59      {
  60          $simple_show_hide_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/js/simple_show_hide.js';
  61          $simple_show_hide = '<script src="'.$simple_show_hide_src.'" type="text/javascript">
  62          </script>';
  63      }
  64  
  65      $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
  66      $tpl->set_unknowns('remove');
  67      $tpl->set_file(array('_head' => 'head.tpl'));
  68      $tpl->set_block('_head','head');
  69  
  70      if ($GLOBALS['phpgw_info']['flags']['app_header'])
  71      {
  72          $app = $GLOBALS['phpgw_info']['flags']['app_header'];
  73      }
  74      else
  75      {
  76          $app = $GLOBALS['phpgw_info']['flags']['currentapp'];
  77          $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app);
  78      }
  79      $var = Array(
  80          'img_icon'      => PHPGW_IMAGES_DIR . '/favicon.ico',
  81          'img_shortcut'  => PHPGW_IMAGES_DIR . '/favicon.ico',
  82          'pngfix'        => $pngfix,
  83          'slider_effects'=> $slider_effects,
  84          'simple_show_hide'=> $simple_show_hide,
  85          'lang_code'=> $lang_code,
  86          'charset'       => $GLOBALS['phpgw']->translation->charset(),
  87          'font_family'   => $GLOBALS['phpgw_info']['theme']['font'],
  88          'website_title' => $GLOBALS['phpgw_info']['server']['site_title']. ($app ? " [$app]" : ''),
  89          'body_tags'     => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(),
  90          'theme_css'     => $theme_css,
  91          'css'           => $GLOBALS['phpgw']->common->get_css(),
  92          'java_script'   => $GLOBALS['phpgw']->common->get_java_script(),
  93      );
  94      $tpl->set_var($var);
  95      $tpl->pfp('out','head');
  96      unset($tpl);
  97  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7