Added "selectedMenuItem" as a class to all of the menus.

This commit is contained in:
JT Smith 2002-05-24 16:49:20 +00:00
parent bb0fff4f8b
commit 60eebfd0df
4 changed files with 28 additions and 7 deletions

View file

@ -35,8 +35,13 @@ sub _replacement {
} else {
$temp .= $delimeter;
}
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1])
.'">'.$data[0].'</a>';
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
if ($session{page}{pageId} == $data[2]) {
$temp .= '<span class="selectedMenuItem">'.$data[1].'</span>';
} else {
$temp .= $data[1];
}
$temp .= '</a>';
}
}
$sth->finish;