* Add zdata to the database script automatically.

This commit is contained in:
leiyong
2020-09-16 14:13:59 +08:00
parent d624251ab6
commit 484490eaa5
17 changed files with 218 additions and 34 deletions
+15 -5
View File
@@ -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;