forked from extern/egroupware
sidebox->add resource via popup
This commit is contained in:
parent
3ccf51d119
commit
4ffaee20e7
@ -20,16 +20,24 @@ class resources_hooks
|
|||||||
{
|
{
|
||||||
$appname = 'resources';
|
$appname = 'resources';
|
||||||
$location = is_array($args) ? $args['location'] : $args;
|
$location = is_array($args) ? $args['location'] : $args;
|
||||||
|
|
||||||
if ($location == 'sidebox_menu')
|
if ($location == 'sidebox_menu')
|
||||||
{
|
{
|
||||||
$file = array(
|
$title = $GLOBALS['egw_info']['apps']['resources']['title'].' '.lang('Menu');
|
||||||
'resources list' => $GLOBALS['egw']->link('/index.php',array(
|
$file[] = array(
|
||||||
'menuaction' => 'resources.ui_resources.index' )),
|
'text' => lang('resources list'),
|
||||||
/*'add' => $GLOBALS['egw']->link('/index.php',array(
|
'no_lang' => true,
|
||||||
'menuaction' => 'resources.ui_resources.edit' ))*/
|
'link' => $GLOBALS['egw']->link('/index.php',array('menuaction' => 'resources.ui_resources.index' )),
|
||||||
|
// 'icon' =>
|
||||||
);
|
);
|
||||||
display_sidebox($appname,$GLOBALS['egw_info']['apps']['resources']['title'].' '.lang('Menu'),$file);
|
$file[] = array(
|
||||||
|
'text' => '<a class="textSidebox" href="'.$GLOBALS['egw']->link('/index.php',array('menuaction' => 'resources.ui_resources.edit')).
|
||||||
|
'" onclick="window.open(this.href,\'_blank\',\'dependent=yes,width=800,height=600,scrollbars=yes,status=yes\');
|
||||||
|
return false;">'.lang('add resource').'</a>',
|
||||||
|
'no_lang' => true,
|
||||||
|
'link' => false
|
||||||
|
);
|
||||||
|
display_sidebox($appname,$title,$file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if ($GLOBALS['egw_info']['user']['apps']['preferences'] && $location != 'admin')
|
/* if ($GLOBALS['egw_info']['user']['apps']['preferences'] && $location != 'admin')
|
||||||
|
Loading…
Reference in New Issue
Block a user