<?php
my $search = $system->service->log;
my $page = ($system->param('page') > 0) ? $system->param('page') : 1;
my $amount = ($system->param('amount') > 0) ? $system->param('amount') : 50;
my $start = $page * $amount - $amount + 1;
my $finish = ($page * $amount > $search->count) ? $search->count : $page * $amount;
?>