* adjust for project batchedit menu.

This commit is contained in:
wangyidong
2022-06-16 15:51:06 +08:00
parent 7383076af1
commit 048c5e362e
3 changed files with 8 additions and 4 deletions
+7 -1
View File
@@ -3104,7 +3104,7 @@ EOD;
return;
}
if($currentModule == $tab && $currentMethod== 'create')
if($currentModule == $tab && $currentMethod == 'create')
{
$lang->menu = $lang->$tab->homeMenu;
return;
@@ -3128,6 +3128,12 @@ EOD;
$lang->menu = $lang->$tab->homeMenu;
return;
}
if(isset($menu['subModule']) and strpos(",{$menu['subModule']},", ",$currentModule,") !== false)
{
$lang->menu = $lang->$tab->homeMenu;
return;
}
}
/* Default, display menu. */
+1 -1
View File
@@ -142,7 +142,7 @@ class message extends control
else
{
echo <<<EOT
<div class='alert alert-info with-icon alert-dismissable' style='width:380px; position:fixed; bottom:25px; right:15px; z-index: 9999;'>
<div class='alert alert-info with-icon alert-dismissable' style='width:380px; position:fixed; margin-bottom:0px; bottom:0px; right:15px; z-index: 9999;'>
<i class='icon icon-envelope-o'> </i>
<div class='content'>{$messages}</div>
<button type="button" class="close" data-dismiss="alert">×</button>
-2
View File
@@ -710,8 +710,6 @@ class project extends control
return print(js::locate($this->session->projectList, 'parent'));
}
if($this->app->tab == 'program') $this->loadModel('program')->setMenu(0);
if(!$this->post->projectIdList) return print(js::locate($this->session->projectList, 'parent'));
$projectIdList = $this->post->projectIdList;
$projects = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->in($projectIdList)->fetchAll('id');