phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: comic/inc hook_home.inc.php,1.8,1.9


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

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

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

Index: hook_home.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/comic/inc/hook_home.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** hook_home.inc.php   19 Aug 2002 12:42:06 -0000      1.8
--- hook_home.inc.php   26 Oct 2002 01:05:28 -0000      1.9
***************
*** 36,72 ****
                if($data_id != -1)
                {
-                       $title = '<font color="#FFFFFF">' . lang('Comic') . 
'</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('comic');
                        $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);
-                       }
                        include($tmp_app_inc . '/functions.inc.php');
!                       $tmp = "\r\n" . '<!-- start Comic info -->' . "\r\n"
!                               . 
$portalbox->draw(comic_display_frontpage($data_id, $scale, $censor_level))
!                               . '<!-- ends Comic info -->'."\r\n";
!                       
$GLOBALS['phpgw']->template->set_var('phpgw_body',$tmp,True);
!                       unset($tmp);
                }
        }
--- 36,46 ----
                if($data_id != -1)
                {
                        $app_id = 
$GLOBALS['phpgw']->applications->name2id('comic');
                        $GLOBALS['portal_order'][] = $app_id;
!                       $GLOBALS['phpgw']->portalbox->set_params(array('app_id' 
=> $app_id,
!                                                                               
                                'title' => lang('comic')));
  
                        include($tmp_app_inc . '/functions.inc.php');
!                       
$GLOBALS['phpgw']->portalbox->draw(comic_display_frontpage($data_id, $scale, 
$censor_level));
                }
        }





reply via email to

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