diff --git a/module/admin/lang/menu.php b/module/admin/lang/menu.php
index 72343eb1b5..df9774e871 100644
--- a/module/admin/lang/menu.php
+++ b/module/admin/lang/menu.php
@@ -96,9 +96,9 @@ $lang->admin->menuList->feature['tabMenu']['my']['block'] = array('link' => "{$l
if($config->vision == 'lite') $lang->admin->menuList->feature['tabMenu']['my']['task'] = array('link' => "{$lang->task->common}|custom|required|module=task", 'links' => array('custom|set|module=task&field=priList'));
$lang->admin->menuList->feature['tabMenu']['product']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product", 'links' => array("custom|browsestoryconcept|", 'custom|product|'), 'alias' => 'browsestoryconcept');
-$lang->admin->menuList->feature['tabMenu']['product']['story'] = array('link' => "{$lang->productCommon}|custom|required|module=story", 'links' => array("custom|set|module=story&field=categoryList"));
-$lang->admin->menuList->feature['tabMenu']['product']['productplan'] = array('link' => "{$lang->productCommon}|custom|required|module=productplan");
-$lang->admin->menuList->feature['tabMenu']['product']['release'] = array('link' => "{$lang->productCommon}|custom|required|module=release");
+$lang->admin->menuList->feature['tabMenu']['product']['story'] = array('link' => "{$lang->SRCommon}|custom|required|module=story", 'links' => array("custom|set|module=story&field=categoryList"));
+$lang->admin->menuList->feature['tabMenu']['product']['productplan'] = array('link' => "{$lang->productplan->shortCommon}|custom|required|module=productplan");
+$lang->admin->menuList->feature['tabMenu']['product']['release'] = array('link' => "{$lang->release->common}|custom|required|module=release");
$lang->admin->menuList->feature['menuOrder']['5'] = 'my';
$lang->admin->menuList->feature['menuOrder']['10'] = 'product';
diff --git a/module/admin/model.php b/module/admin/model.php
index 5993053e55..df2fed669b 100755
--- a/module/admin/model.php
+++ b/module/admin/model.php
@@ -274,15 +274,22 @@ class adminModel extends model
$moduleName = $this->app->rawModule;
$methodName = $this->app->rawMethod;
$paramName = $this->app->rawParams ? reset($this->app->rawParams) : '';
- if($moduleName == 'custom' and strpos(',required,set,', $methodName) !== false)
+ foreach($this->lang->admin->menuList->$menuKey['subMenu'] as $subMenuKey => $subMenu)
{
- if(strpos(',todo,block,', $paramName) !== false) $subMenuKey = 'my';
- if(strpos(',product,story,productplan,release,', $paramName) !== false) $subMenuKey = 'product';
- if($this->config->vision == 'lite' and $paramName == 'task') $subMenuKey = 'my';
- if(isset($subMenuKey)) $this->lang->admin->menuList->$menuKey['subMenu'][$subMenuKey]['subModule'] = $moduleName;
+ $subModule = '';
+ if($moduleName == 'custom' and strpos(',required,set,', $methodName) !== false)
+ {
+ if(strpos(',todo,block,', $paramName) !== false and $subMenuKey == 'my') $subModule = 'custom';
+ if(strpos(',product,story,productplan,release,', $paramName) !== false and $subMenuKey == 'product') $subModule = 'custom';
+ if($this->config->vision == 'lite' and $paramName == 'task' and $subMenuKey == 'my') $subModule = 'custom';
+ }
+
+ if(!empty($subModule)) $subMenu['subModule'] = $subModule;
+ if(isset($this->lang->admin->menuList->$menuKey['tabMenu'][$subMenuKey])) $subMenu['subMenu'] = $this->lang->admin->menuList->$menuKey['tabMenu'][$subMenuKey];
+
+ $this->lang->admin->menu->$subMenuKey = $subMenu;
}
- $this->lang->admin->menu = $this->lang->admin->menuList->$menuKey['subMenu'];
}
if(isset($this->lang->admin->menuList->$menuKey['menuOrder'])) $this->lang->admin->menuOrder = $this->lang->admin->menuList->$menuKey['menuOrder'];
@@ -317,8 +324,16 @@ class adminModel extends model
/* Check tab menu priv. */
foreach($menu['tabMenu'][$subMenuKey] as $tabMenuKey => $tabMenu)
{
- $link = $this->getHasPrivLink($tabMenu);
- if(!empty($link)) break;
+ $tabMenuLink = $this->getHasPrivLink($tabMenu);
+ if(!empty($tabMenuLink))
+ {
+ /* Updated tertiary navigation links. */
+ list($module, $method, $params) = $tabMenuLink;
+ $tabMenuLabel = $tabMenu['link'];
+ $menu['tabMenu'][$subMenuKey][$tabMenuKey]['link'] = substr($tabMenuLabel, 0, strpos($tabMenuLabel, '|') + 1) . $module . '|' . $method . '|' . $params;
+
+ if(empty($link)) $link = $tabMenuLink;
+ }
}
}
else
@@ -330,7 +345,7 @@ class adminModel extends model
{
/* Updated secondary navigation link. */
list($module, $method, $params) = $link;
- $subMenuLabel = $menu['subMenu'][$subMenuKey]['link'];
+ $subMenuLabel = $subMenu['link'];
$menu['subMenu'][$subMenuKey]['link'] = substr($subMenuLabel, 0, strpos($subMenuLabel, '|') + 1) . $module . '|' . $method . '|' . $params;
/* Update the level 1 navigation link. */
diff --git a/module/admin/view/tabmenu.html.php b/module/admin/view/tabmenu.html.php
deleted file mode 100755
index 646627e52b..0000000000
--- a/module/admin/view/tabmenu.html.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
- admin->tabMenu[$activeMenu]) ? $lang->admin->tabMenu[$activeMenu] : array();
- foreach($tabMenuList as $tabMenuKey => $tabMenu)
- {
- $link = $this->admin->getHasPrivLink($tabMenu);
- if(empty($link)) continue;
-
- list($tabModule, $tabMethod, $tabParams) = $link;
-
- $name = $lang->custom->object[$tabMenuKey];
- $paramName = $this->app->rawParams ? reset($this->app->rawParams) : '';
- $currentMethod = $app->rawMethod;
- $active = '';
- if(strpos(',required,set,', ",$currentMethod,",) === false)
- {
- if($currentMethod == $tabMenuKey) $active = 'btn-active-text';
- if(isset($tabMenu['alias']) and strpos(",{$tabMenu['alias']},", ",$currentMethod",) !== false) $active = 'btn-active-text';
- }
- elseif($paramName == $tabMenuKey)
- {
- $active = 'btn-active-text';
- }
-
- common::printLink($tabModule, $tabMethod, $tabParams, "{$name}", '', "class='btn btn-link {$active}' id='{$tabMenuKey}Tab'");
- }
- ?>
-
-
diff --git a/module/custom/view/browsestoryconcept.html.php b/module/custom/view/browsestoryconcept.html.php
index 2871d1053e..ba845b8e31 100644
--- a/module/custom/view/browsestoryconcept.html.php
+++ b/module/custom/view/browsestoryconcept.html.php
@@ -9,7 +9,7 @@
* @version $Id: browsestoryconcept.html.php 4129 2020-09-01 01:58:14Z sgm $
*/
?>
-
+getModuleRoot() . 'common/view/header.html.php';?>
diff --git a/module/custom/view/execution.html.php b/module/custom/view/execution.html.php
index 2d42966221..927dbf38ca 100644
--- a/module/custom/view/execution.html.php
+++ b/module/custom/view/execution.html.php
@@ -9,7 +9,7 @@
* @link http://www.zentao.net
*/
?>
-
+getModuleRoot() . 'common/view/header.html.php';?>