phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/templates/probusiness navbar.inc.php, 1.1.2.


From: Chris Weiss <address@hidden>
Subject: [Phpgroupware-cvs] phpgwapi/templates/probusiness navbar.inc.php, 1.1.2.1, 1.1.2.2
Date: Thu, 23 Oct 2003 13:34:02 +0000

Update of /cvsroot/phpgroupware/phpgwapi/templates/probusiness
In directory subversions:/tmp/cvs-serv30955/phpgwapi/templates/probusiness

Modified Files:
      Tag: Version-0_9_16-branch
        navbar.inc.php 
Log Message:
converted textonly tabs to sidebar for more consistant look


Index: navbar.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/phpgwapi/templates/probusiness/Attic/navbar.inc.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** navbar.inc.php      23 Oct 2003 02:08:39 -0000      1.1.2.1
--- navbar.inc.php      23 Oct 2003 13:34:00 -0000      1.1.2.2
***************
*** 59,77 ****
        }
  
-       $i = 1;
        $tpl->set_block('navbar_app_table','app_row','app_rows');
        foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
        {
!         if 
($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] == 
'text')
!         {
!           $tabs[$i]['label'] = $app_data['title'];
!           $tabs[$i]['link']  = $app_data['url'];
!           if (ereg($GLOBALS['phpgw_info']['navbar'][$app],$PHP_SELF))
!           {
!                 $selected = $i;
!           }
!           ++$i;
!         }
!         else
          {
            $title = '<img src="' . $app_data['icon'] .
--- 59,67 ----
        }
  
        $tpl->set_block('navbar_app_table','app_row','app_rows');
        foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
        {
!         $title = '';
!         if 
(strpos($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'],
 'icons') !== false)
          {
            $title = '<img src="' . $app_data['icon'] .
***************
*** 79,92 ****
                        '" title="' . $app_data['title'] .
                        '" border="0" />';
!           if 
($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] == 
'icons_and_text')
!           {
!             $title .= "<br />" . $app_data['title'];
!             $var['width'] = '7%';
!           }
!           else
!           {
!                 $var['width']  = '3%';
!           }
! 
            $var['value'] = '<a href="' . $app_data['url'] . '"' . $target . 
'>' . $title . '</a>';
            $var['align'] = 'center';
--- 69,87 ----
                        '" title="' . $app_data['title'] .
                        '" border="0" />';
!         }
!         if 
($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] == 
'icons_and_text')
!         {
!           $title .= "<br />";
!         }
!         if 
(strpos($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'],
 'text') !== false)
!         {
!           $title .= $app_data['title'];
!           $var['width'] = '7%';
!         }
!         else
!         {
!           $var['width']  = '3%';
!         }
!         
            $var['value'] = '<a href="' . $app_data['url'] . '"' . $target . 
'>' . $title . '</a>';
            $var['align'] = 'center';
***************
*** 95,109 ****
            $tpl->fp('app_rows','app_row',true);
          }
-        }
  
-        if 
($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] == 
'text')
-        {
-        $var['navbar_color'] = $GLOBALS['phpgw_info']['theme']['bg_color'];
-        $var['align'] = 'right';
-        $var['value'] = 
$GLOBALS['phpgw']->common->create_tabs($tabs,$selected,-1);
-        $tpl->set_var($var);
-        $tpl->parse('applications','navbar_app',True);
-        $tpl->fp('app_rows','app_row',true);
-        }
         $tpl->parse('navbarview','app_rows',false);
       }
--- 90,94 ----





reply via email to

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