+ Add Product Level 2.5 drop-down menu.

This commit is contained in:
tianshujie
2023-06-09 09:38:21 +08:00
parent 398a3735b7
commit 4fff2173fc
2 changed files with 49 additions and 30 deletions
+25
View File
@@ -10,9 +10,34 @@ declare(strict_types=1);
*/
namespace zin;
/* zin: Define the productMenu on main menu. */
$productDropdown = '';
if($execution->hasProduct)
{
$productDropdown = productMenu(
set::title($productOption[$productID]),
set::items($productOption),
set::activeKey($productID),
set::link(helper::createLink('execution', 'bug', "executionID={$execution->id}&productID=%s")),
);
}
$branchDropdown = '';
if($showBranch)
{
$branchDropdown = productMenu(
set::title($branchOption[$branch]),
set::items($branchOption),
set::activeKey($branch),
set::link(helper::createLink('execution', 'bug', "executionID={$execution->id}&productID={$productID}&branch=%s")),
);
}
/* zin: Define the set::module('bug') feature bar on main menu. */
featureBar
(
to::before($productDropdown),
to::before($branchDropdown),
set::current($type),
set::linkParams("executionID={$execution->id}&productID={$productID}&branch={$branchID}&orderBy={$orderBy}&build={$buildID}&type={key}&param=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"),
li(searchToggle(set::module('executionBug')))