$html .= '<span class="prev page-item"><a class="page-link" href="'.$this->url_list('limit',preg_replace('/^0,/','',"$prev,$y")).'"><</a></span>';
}
- $html .= '<span class="count page-item"><span class="page-link">'.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.'</span></span>';
+ # NB 01.10.18: TODO
+ $page = '';
+ /*
+ $pages = $count ? floor($tot / $count) : 0;
+ #$page = $x == 0 ? '' : ' - '.floor($tot / $x);
+ */
+ $num_start = $tot ? ($x+1) : 0;
+ $num_end = $tot<($x+$y) ? $tot : ($x+$y);
+ $html .= '<span class="count page-item"><span class="page-link">'.$num_start.' - '.$num_end.' / '.$tot.$page.'</span></span>';
if ($next<$tot) {
$html .= '<span class="next page-item"><a class="page-link" href="'.$this->url_list('limit',"$next,$y").'">></a></span>';
$html = '';
- $html .= '<table class="table table-striped table-responsive table-sm db-rows insert-bottom wp-list-table widefat striped">'.NB_EOL;
+ $html .= '<table class="table table-hover table-responsive table-sm db-rows insert-bottom wp-list-table widefat striped">'.NB_EOL;
if ($this->show_header) {
$html .= '<thead>'.NB_EOL;
<?php
return [
'is_html' => true,
- 'enclose' => array("<table class=\"table table-striped table-responsive table-sm db-rows widefat striped\">".NB_EOL,"</table>".NB_EOL),
+ 'enclose' => array("<table class=\"table table-hover table-responsive table-sm db-rows widefat striped\">".NB_EOL,"</table>".NB_EOL),
'tag_enclose' => 'tr class="db-row"',
'tag_head' => 'th',
'tag' => 'td',