mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
Cleanup logic and display
This commit is contained in:
parent
9c24ee424c
commit
5675d3ea35
@ -61,6 +61,11 @@
|
|||||||
$start = 0;
|
$start = 0;
|
||||||
$limit = $offset;
|
$limit = $offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($limit > $total)
|
||||||
|
{
|
||||||
|
$limit = $total;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
echo 'START: ' . $start;
|
echo 'START: ' . $start;
|
||||||
echo 'LIMIT: ' . $limit;
|
echo 'LIMIT: ' . $limit;
|
||||||
@ -127,7 +132,7 @@
|
|||||||
|
|
||||||
if (($start + $limit) > $total)
|
if (($start + $limit) > $total)
|
||||||
{
|
{
|
||||||
$lang_showing = lang('showing x - x of x',($start + 1),$total,$total);
|
$lang_showing = lang('showing x - x of x',($start + 1),$limit,$total);
|
||||||
}
|
}
|
||||||
elseif ($total > $limit)
|
elseif ($total > $limit)
|
||||||
{
|
{
|
||||||
@ -135,7 +140,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$lang_showing=lang('showing x',$c->total_records);
|
$lang_showing=lang('showing x',$total);
|
||||||
}
|
}
|
||||||
$p->set_var('lang_showing',$lang_showing);
|
$p->set_var('lang_showing',$lang_showing);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user