|
User |
|
items per page
|
uri->segment(6)!=""){
$offset_start = $offset + 3;
$offset_end = $offset + $per_page + 2;
if ($offset_end>$total_item+2)
$offset_end=$total_item+2;
}
else{
if ($total_item>$per_page){
$offset_start = 1;
$offset_end = $per_page + 2;
if ($offset_end>$total_item+2)
$offset_end=$total_item+2;
}
else{
$offset_start = 1;
$offset_end = $per_page ;
if ($offset_end>$total_item)
$offset_end=$total_item;
$total_item = $total_item-2;
}
}
?>
of items
|