mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 06:50:35 +01:00
Fix display of # records available based on search
This commit is contained in:
parent
f796e68e7a
commit
f35ae43c2c
@ -90,7 +90,12 @@
|
|||||||
$search_filter = $phpgw->nextmatchs->show_tpl("index.php",$start, $this->total_records,"&order=$order&filter=$filter&sort=$sort&query=$query","75%", $phpgw_info["theme"]["th_bg"]);
|
$search_filter = $phpgw->nextmatchs->show_tpl("index.php",$start, $this->total_records,"&order=$order&filter=$filter&sort=$sort&query=$query","75%", $phpgw_info["theme"]["th_bg"]);
|
||||||
|
|
||||||
if ($this->total_records > $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]) {
|
if ($this->total_records > $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]) {
|
||||||
$lang_showing=lang("showing x - x of x",($start + 1),($start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]),$this->total_records);
|
if ($start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"] > $this->total_records) {
|
||||||
|
$end = $this->total_records;
|
||||||
|
} else {
|
||||||
|
$end = $start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"];
|
||||||
|
}
|
||||||
|
$lang_showing=lang("showing x - x of x",($start + 1),$end,$this->total_records);
|
||||||
} else {
|
} else {
|
||||||
$lang_showing=lang("showing x",$this->total_records);
|
$lang_showing=lang("showing x",$this->total_records);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user