fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7348] bkbooking: added link for documentation in bac


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [7348] bkbooking: added link for documentation in backend
Date: Mon, 06 Jun 2011 08:47:21 +0000

Revision: 7348
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7348
Author:   kjell
Date:     2011-06-06 08:47:21 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
bkbooking: added link for documentation in backend

Modified Paths:
--------------
    trunk/booking/inc/class.menu.inc.php

Modified: trunk/booking/inc/class.menu.inc.php
===================================================================
--- trunk/booking/inc/class.menu.inc.php        2011-06-06 08:11:01 UTC (rev 
7347)
+++ trunk/booking/inc/class.menu.inc.php        2011-06-06 08:47:21 UTC (rev 
7348)
@@ -3,6 +3,9 @@
        {
                function get_menu()
                {
+                       $bodoc = CreateObject('booking.bodocumentation');
+                       $manual  =  $bodoc->so->getBackendDoc();        
+
                        $incoming_app = 
$GLOBALS['phpgw_info']['flags']['currentapp'];
                        $GLOBALS['phpgw_info']['flags']['currentapp'] = 
'booking';
                        $menus = array();
@@ -17,7 +20,7 @@
                                        'order' => 10,
                                        'group' => 'office'
                                )
-                       );
+               );
 
                        $menus['navigation'] =  array
                        (
@@ -277,6 +280,15 @@
                                                        ),
                                                )
                                        );
+                                       if ($manual !== null)
+                                       {
+                                               
$menus['navigation']['documentation'] = array
+                                               (
+                                                       'text'  => 
lang('Documentation'),
+                                                       'url'   => $manual,
+                                                       'image' => 
array('property', 'documentation'),
+                                               );
+                                       }
                        }
 
                        if ( $GLOBALS['phpgw']->acl->check('run', 
phpgwapi_acl::READ, 'admin')
@@ -321,6 +333,8 @@
                                        ),
                                );
                        }
+
+                       
                        $menus['folders'] = 
phpgwapi_menu::get_categories('bergen');
 
                        $GLOBALS['phpgw_info']['flags']['currentapp'] = 
$incoming_app;




reply via email to

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