* adjust the menu.

This commit is contained in:
wangchunsheng
2009-12-13 15:03:13 +00:00
parent 86878971cc
commit d16e146807
2 changed files with 25 additions and 25 deletions
+5 -3
View File
@@ -156,12 +156,14 @@ EOT;
}
else
{
list($label, $module, $method, $vars) = explode('|', $submenu);
$submenu = explode('|', $submenu);
list($label, $module, $method, $vars) = $submenu;
if(common::hasPriv($module, $method))
{
global $app;
$class = $app->getMethodName() == $method ? " class='active'" : '';
echo "<li $class>" . html::a(helper::createLink($module, $method, $vars), $label) . "</li>\n";
$float = count($submenu) == 4 ? 'left' : 'right';
$active = $app->getMethodName() == $method ? 'active' : '';
echo "<li class='$float $active'>" . html::a(helper::createLink($module, $method, $vars), $label) . "</li>\n";
}
}
}