Fix display of # records available based on search

This commit is contained in:
Miles Lott 2001-02-21 23:17:29 +00:00
parent f796e68e7a
commit f35ae43c2c

View File

@ -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"]);
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 {
$lang_showing=lang("showing x",$this->total_records);
}