$deviceLines)?$deviceLines:$limitLeft;
}
$eventsSql .= " limit $limitStart, $limitAmount";
}
elseif ( !empty( $_REQUEST['limit'] ) )
{
$eventsSql .= " limit 0, ".$_REQUEST['limit'];
}
$nEvents = dbFetchOne( $countSql, 'EventCount' );
if ( !empty($limit) && $nEvents > $_REQUEST['limit'] )
{
$nEvents = $_REQUEST['limit'];
}
$pages = (int)ceil($nEvents/$deviceLines);
$maxShortcuts = 3;
$pagination = getPagination( $pages, $_REQUEST['page'], $maxShortcuts, $filterQuery.$sortQuery.'&limit='.$_REQUEST['limit'], '&' );
xhtmlHeaders( __FILE__, $SLANG['Events'] );
?>
= substr( $SLANG['Id'], 0, 3 ) ?>= sortTag( 'Id' ) ?> |
= substr( $SLANG['Time'], 0, 3 ) ?>= sortTag( 'StartTime' ) ?> |
= substr( $SLANG['Duration'], 0, 3 ) ?>= sortTag( 'Length' ) ?> |
= substr( $SLANG['Frames'], 0, 3 ) ?>= sortTag( 'Frames' ) ?> |
= substr( $SLANG['Score'], 0, 3 ) ?>= sortTag( 'TotScore' ) ?> |
= $event['Id'] ?> |
= strftime( "%d/%H:%M", strtotime($event['StartTime']) ) ?> |
= sprintf( "%d", $event['Length'] ) ?> |
= $event['AlarmFrames'] ?> |
= $event['MaxScore'] ?> |
= $SLANG['Console'] ?>