This commit is contained in:
wangyidong
2011-03-09 04:03:38 +00:00
parent a556e655b7
commit b89aec14df
17 changed files with 234 additions and 15 deletions
+7 -2
View File
@@ -297,8 +297,13 @@ class commonModel extends model
/* Is the currentModule active? */
if($currentModule == $subModule) $active = 'active';
if($module == $currentModule and ($method == $currentMethod or strpos($alias, $currentMethod) !== false)) $active = 'active';
echo "<li class='$float $active'>" . html::a(helper::createLink($module, $method, $vars), $label, $target) . "</li>\n";
if($method == "byQuery")
{
echo "<li class='$float $active'>" . html::a('#',$label,$target,"id='$method'") . "</li>\n";
}else
{
echo "<li class='$float $active'>" . html::a(helper::createLink($module, $method, $vars), $label, $target) . "</li>\n";
}
}
}
}