From 511ceb9022d30a3406587b2b563a3925e2e672d4 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 10 Apr 2023 12:32:13 +0800 Subject: [PATCH] * code for task #89909. --- module/doc/view/myspace.html.php | 2 +- module/doc/view/tablecontents.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/view/myspace.html.php b/module/doc/view/myspace.html.php index 6ea427bd7b..8976510abc 100644 --- a/module/doc/view/myspace.html.php +++ b/module/doc/view/myspace.html.php @@ -23,7 +23,7 @@ doc->featureBar['tableContents'] as $barType => $barName):?> rawMethod == 'tablecontents' ? "type=$type&objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType": "objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType";?> - createLink('doc', $app->rawMethod, $linkParams), $barName, '', "class='btn btn-link $active' id='{$barType}Tab'");?> + createLink('doc', $app->rawMethod, $linkParams), $barName . ($active ? "{$pager->recTotal}" : ''), '', "class='btn btn-link $active' id='{$barType}Tab'");?> doc->searchDoc;?> diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index b2f37485d7..661555d41b 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -23,7 +23,7 @@ doc->featureBar['tableContents'] as $barType => $barName):?> rawMethod == 'tablecontents' ? "type=$type&objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType": "objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType";?> - createLink('doc', $app->rawMethod, $linkParams), $barName, '', "class='btn btn-link $active' id='{$barType}Tab'");?> + createLink('doc', $app->rawMethod, $linkParams), $barName . ($active ? "{$pager->recTotal}" : ''), '', "class='btn btn-link $active' id='{$barType}Tab'");?> doc->searchDoc;?>