Added new navigation system

This commit is contained in:
Len Kranendonk 2004-02-18 12:23:53 +00:00
parent 0a67c85fc9
commit e7366d5222
5 changed files with 349 additions and 0 deletions

View file

@ -138,6 +138,7 @@ sub process {
WebGUI::URL::page('op=listUsers')=>WebGUI::International::get(7),
WebGUI::URL::page('op=viewStatistics')=>WebGUI::International::get(144),
WebGUI::URL::page('op=listDatabaseLinks')=>WebGUI::International::get(981),
WebGUI::URL::page('op=listNavigation')=>'Manage navigation.'
);
} elsif (WebGUI::Privilege::isInGroup(11)) {
%hash = (

View file

@ -0,0 +1,34 @@
package WebGUI::Macro::Navigation;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2003 Plain Black LLC.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
use strict;
use WebGUI::Macro;
use WebGUI::Session;
use WebGUI::Navigation;
#-------------------------------------------------------------------
sub process {
my @param = WebGUI::Macro::getParams($_[0]);
my $identifier = $param[0];
if ($identifier eq '') {
return WebGUI::Macro::negate(WebGUI::International::get(35,'Navigation'));
} else {
my $navigation = WebGUI::Navigation->new(identifier=>$identifier);
return $navigation->view;
}
}
1;