if($this->NavPageNomer > 1)
{
?>
}
else //$this->NavPageNomer > 1
{
?>
} //$this->NavPageNomer > 1
//$NavRecordGroup = $this->nStartPage;
$NavRecordGroup = 1;
while($NavRecordGroup <= $this->NavPageCount)
{
if($NavRecordGroup == $this->NavPageNomer)
{
?>
=$NavRecordGroup?>
}
else // ($NavRecordGroup == $this->NavPageNomer):
{
?>
=$NavRecordGroup?>
} //endif($NavRecordGroup == $this->NavPageNomer):
if($NavRecordGroup == 2 && $this->nStartPage > 3)
{
if($this->nStartPage - $NavRecordGroup > 1)
{
$middlePage = ceil(($this->nStartPage + $NavRecordGroup)/2);
?>
=$middlePage?>
}
$NavRecordGroup = $this->nStartPage;
}
elseif($NavRecordGroup == $this->nEndPage && $this->nEndPage < $this->NavPageCount - 2)
{
if( $this->NavPageCount-1 - $NavRecordGroup > 1)
{
$middlePage = floor(($this->NavPageCount + $this->nEndPage - 1)/2);
?>
=$middlePage?>
}
$NavRecordGroup = $this->NavPageCount-1;
}
else
{
$NavRecordGroup++;
}
} // endwhile;//($NavRecordGroup <= $this->nEndPage):
if($this->NavPageNomer < $this->NavPageCount)
{
?>
}
else //($this->NavPageNomer < $this->NavPageCount):
{
?>
} //endif; //($this->NavPageNomer < $this->NavPageCount):
?>
echo $title." ".(($this->NavPageNomer-1)*$this->NavPageSize+1)." – ";
if($this->NavPageNomer <> $this->NavPageCount)
echo($this->NavPageNomer * $this->NavPageSize);
else
echo($this->NavRecordCount);
echo " ".GetMessage("navigation_records_of")." ".$this->NavRecordCount;
?>