phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: weather/inc hook_home.inc.php,1.6,1.7


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: weather/inc hook_home.inc.php,1.6,1.7
Date: Fri, 25 Oct 2002 21:05:30 -0400

Update of /cvsroot/phpgroupware/weather/inc
In directory subversions:/tmp/cvs-serv24197/weather/inc

Modified Files:
        hook_home.inc.php 
Log Message:
update hook about

Index: hook_home.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/weather/inc/hook_home.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** hook_home.inc.php   21 Oct 2001 10:49:29 -0000      1.6
--- hook_home.inc.php   26 Oct 2002 01:05:28 -0000      1.7
***************
*** 1,15 ****
  <?php
!   /**************************************************************************\
!   * phpGroupWare - E-Mail                                                    *
!   * http://www.phpgroupware.org                                              *
!   * --------------------------------------------                             *
!   *  This program is free software; you can redistribute it and/or modify it *
!   *  under the terms of the GNU General Public License as published by the   *
!   *  Free Software Foundation; either version 2 of the License, or (at your  *
!   *  option) any later version.                                              *
!   \**************************************************************************/
  
        /* $Id$ */
! {
        global $weather_user, $weather_admin, $g_image_type;
        global $strings,
--- 1,15 ----
  <?php
!       
/**************************************************************************\
!       * phpGroupWare - hook home                                              
   *
!       * http://www.phpgroupware.org                                           
   *
!       * --------------------------------------------                          
   *
!       *  This program is free software; you can redistribute it and/or modify 
it *
!       *  under the terms of the GNU General Public License as published by 
the   *
!       *  Free Software Foundation; either version 2 of the License, or (at 
your  *
!       *  option) any later version.                                           
   *
!       
\**************************************************************************/
  
        /* $Id$ */
!       {
        global $weather_user, $weather_admin, $g_image_type;
        global $strings,
***************
*** 32,69 ****
        weather_get_user_data();
  
!       if ($weather_user["frontpage_enabled"] == 1)
        {
-               $title = '<font color="#FFFFFF">'.lang('Weather').'</font>';
- 
-               $portalbox = CreateObject('phpgwapi.listbox',
-                       Array(
-                               'title' => $title,
-                               'primary'       => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
-                               'secondary'     => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
-                               'tertiary'      => 
$GLOBALS['phpgw_info']['theme']['navbar_bg'],
-                               'width' => '100%',
-                               'outerborderwidth'      => '0',
-                               'header_background_image'       => 
$GLOBALS['phpgw']->common->image('phpgwapi/templates/phpgw_website','bg_filler.gif')
-                       )
-               );
                $app_id = $GLOBALS['phpgw']->applications->name2id('weather');
                $GLOBALS['portal_order'][] = $app_id;
!               $var = Array(
!                       'up'    => Array('url'  => '/set_box.php', 'app'        
=> $app_id),
!                       'down'  => Array('url'  => '/set_box.php', 'app'        
=> $app_id),
!                       'close' => Array('url'  => '/set_box.php', 'app'        
=> $app_id),
!                       'question'      => Array('url'  => '/set_box.php', 
'app'        => $app_id),
!                       'edit'  => Array('url'  => '/set_box.php', 'app'        
=> $app_id)
!               );
! 
!               while(list($key,$value) = each($var))
!               {
!                       $portalbox->set_controls($key,$value);
!               }
!               
!               echo "\r\n".'<!-- start Weather info -->'."\r\n"
!                       .$portalbox->draw(weather_display_frontpage())
!                       .'<!-- ends Weather info -->'."\r\n";
        }
- }
  ?>
--- 32,43 ----
        weather_get_user_data();
  
!       if ($weather_user['frontpage_enabled'] == 1)
        {
                $app_id = $GLOBALS['phpgw']->applications->name2id('weather');
                $GLOBALS['portal_order'][] = $app_id;
!               $GLOBALS['phpgw']->portalbox->set_params(array('app_id' => 
$app_id,
!                                                                               
                                'title' => lang('weather')));
!               $GLOBALS['phpgw']->portalbox->draw(weather_display_frontpage());
!       }
        }
  ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]