Added "selectedMenuItem" as a class to all of the menus.
This commit is contained in:
parent
bb0fff4f8b
commit
60eebfd0df
4 changed files with 28 additions and 7 deletions
|
|
@ -40,8 +40,13 @@ sub traversePageTree {
|
|||
$sth = WebGUI::SQL->read("select urlizedTitle, menuTitle, pageId from page where parentId='$_[0]' order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
$output .= $depth.'<a class="verticalMenu" href="'.
|
||||
WebGUI::URL::gateway($data[0]).'">'.$data[1].'</a><br>';
|
||||
$output .= $depth.'<a class="verticalMenu" href="'.WebGUI::URL::gateway($data[0]).'">';
|
||||
if ($session{page}{pageId} == $data[2]) {
|
||||
$output .= '<span class="selectedMenuItem">'.$data[1].'</span>';
|
||||
} else {
|
||||
$output .= $data[1];
|
||||
}
|
||||
$output .= '</a><br>';
|
||||
$output .= traversePageTree($data[2],$_[1]+1,$toLevel);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue