[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] folders/inc/class.uifolders.inc.php, 1.6
From: |
nomail |
Subject: |
[Phpgroupware-cvs] folders/inc/class.uifolders.inc.php, 1.6 |
Date: |
Fri, 19 Nov 2004 10:30:26 +0100 |
Update of /folders/inc
Modified Files:
Branch:
class.uifolders.inc.php
date: 2004/11/19 09:30:26; author: fipsfuchs; state: Exp; lines: +29 -2
Log Message:
logout button added
folders may recieve values directly form modules
=====================================================================
Index: folders/inc/class.uifolders.inc.php
diff -u folders/inc/class.uifolders.inc.php:1.5
folders/inc/class.uifolders.inc.php:1.6
--- folders/inc/class.uifolders.inc.php:1.5 Fri Apr 23 09:34:44 2004
+++ folders/inc/class.uifolders.inc.php Fri Nov 19 09:30:26 2004
@@ -93,7 +93,28 @@
$this->t->set_root(PHPGW_SERVER_ROOT .
'/folders/templates/default/');
$this->t->set_file(array('helpers_t' => 'helpers.tpl'));
$this->t->set_block('helpers_t','iframe');
- $var['source'] =
$GLOBALS['phpgw']->link('/index.php','menuaction=folders.uifolders.showfolders');
+
+ $parameters =
'menuaction=folders.uifolders.showfolders';
+ while(list($param_name, $param_value) =
each($iframe_linkdata))
+ {
+ $parameters .= '&'.$param_name.'='.$param_value;
+ }
+
+ $hookAppLinkData =
$GLOBALS['phpgw']->hooks->process('getFolderLinkData');
+ while(list($app_name, $app_linkdata) =
each($hookAppLinkData))
+ {
+ if(!is_array($app_linkdata) ||
(count($app_linkdata)==0))
+ {
+ continue;
+ }
+
+ while(list($link_param_name, $link_param_value)
= each($app_linkdata))
+ {
+ $parameters .=
'&'.$app_name.'_'.$link_param_name.'='.$link_param_value;
+ }
+ }
+
+ $var['source'] =
$GLOBALS['phpgw']->link('/index.php',$parameters);
$this->t->set_var($var);
$this->t->fp('out','iframe');
@@ -125,11 +146,17 @@
if
(substr($GLOBALS['phpgw']->session->appsession('mode', 'folders'),0,7) ==
'enabled')
{
+ $logouturl =
$GLOBALS['phpgw_info']['navbar']['logout']['url'];
+ $logouttitle =
$GLOBALS['phpgw_info']['navbar']['logout']['title'];
+ $logoutbutton = '<input type="button"
id="logoutlink" value="'.$logouttitle.'"
onClick="self.location.href=\''.$logouturl.'\'"> ';
+ $var['logoutbutton'] = $logoutbutton;
+
$var['linkvalue'] =
$GLOBALS['phpgw']->link('/index.php','menuaction=folders.uifolders.disablefolders');
$var['linkname'] = lang('modules');
}
else
{
+ $var['logoutbutton'] = '';
$var['linkvalue'] =
$GLOBALS['phpgw']->link('/index.php','menuaction=folders.uifolders.enablefolders');
$var['linkname'] = lang('folders');
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] folders/inc/class.uifolders.inc.php, 1.6,
nomail <=