* fix a bug.

This commit is contained in:
wangyidong
2014-09-09 05:54:09 +00:00
parent c3f733e8b3
commit 9508206dd9
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ js::set('onlybody', $onlybody); // set the onlybody var.
if(isset($pageJS)) js::execute($pageJS); // load the js for current page.
/* Load hook files for current page. */
$extPath = dirname(dirname(dirname(realpath($viewFile)))) . '/common/ext/view/';
$extPath = $this->app->getModuleRoot() . '/common/ext/view/';
$extHookRule = $extPath . 'footer.*.hook.php';
$extHookFiles = glob($extHookRule);
if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
+3 -2
View File
@@ -6,9 +6,10 @@
ksort($lang->reportList->$submenu->lists);
foreach($lang->reportList->$submenu->lists as $list)
{
list($label, $module, $method) = explode('|', $list);
$list .= '|';
list($label, $module, $method, $params) = explode('|', $list);
$class = $label == $title ? ' active' : '';
echo html::a($this->createLink($module, $method), "<i class='icon-bar-chart'></i> " . $label, '', "class='list-group-item $class'");
echo html::a($this->createLink($module, $method, $params), "<i class='icon-bar-chart'></i> " . $label, '', "class='list-group-item $class'");
}
?>
</ul>