* Add zdata to the database script automatically.
This commit is contained in:
+15
-5
@@ -530,6 +530,16 @@ class commonModel extends model
|
||||
if(common::hasPriv($currentModule, $currentMethod)) echo "<li class=$active>" . html::a(helper::createLink($currentModule, $currentMethod, $vars), $title) . '</li>';
|
||||
if(($lastMenu != $nav) && strpos($lang->dividerMenu, ",{$group},") !== false) echo "<li class='divider'></li>";
|
||||
}
|
||||
|
||||
echo '<li><hr></li>';
|
||||
echo '<li><span><i class="icon icon-menu-doc"></i>' . $lang->recent . '</span></li>';
|
||||
echo '<li>' . html::a(helper::createLink('project', 'view', 'project=1'), 'zentao001') . '</li>';
|
||||
echo '<li>' . html::a(helper::createLink('project', 'view', 'project=1'), 'zentao001') . '</li>';
|
||||
echo '<li>' . html::a(helper::createLink('project', 'view', 'project=1'), 'zentao001') . '</li>';
|
||||
echo '<li>' . html::a(helper::createLink('project', 'view', 'project=1'), 'an') . '</li>';
|
||||
echo '<li>' . html::a(helper::createLink('project', 'view', 'project=1'), 'zentao') . '</li>';
|
||||
echo '<li onclick="getMorePRJ();" class="text-center"><span>' . $lang->more . '</span></li>';
|
||||
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
@@ -2130,29 +2140,29 @@ EOD;
|
||||
public static function setMainMenuByGroup($group, $moduleName, $methodName)
|
||||
{
|
||||
global $lang;
|
||||
if($group == 'my')
|
||||
if($group == 'my')
|
||||
{
|
||||
$lang->menu = $lang->my->menu;
|
||||
$lang->menuOrder = $lang->my->menuOrder;
|
||||
}
|
||||
if($group == 'system')
|
||||
if($group == 'system')
|
||||
{
|
||||
$lang->menu = $lang->system->menu;
|
||||
$lang->menuOrder = $lang->system->menuOrder;
|
||||
$lang->report->menu = $lang->measurement->menu;
|
||||
}
|
||||
if($group == 'doclib') return;
|
||||
if($group == 'reporting')
|
||||
if($group == 'reporting')
|
||||
{
|
||||
$lang->menu = $lang->report->menu;
|
||||
$lang->menuOrder = $lang->report->menuOrder;
|
||||
}
|
||||
if($group == 'attend')
|
||||
if($group == 'attend')
|
||||
{
|
||||
$lang->menu = $lang->attend->menu;
|
||||
$lang->menuOrder = $lang->attend->menuOrder;
|
||||
}
|
||||
if($group == 'admin')
|
||||
if($group == 'admin')
|
||||
{
|
||||
$lang->menu = $lang->admin->menu;
|
||||
$lang->menuOrder = $lang->admin->menuOrder;
|
||||
|
||||
Reference in New Issue
Block a user