]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/html/default.js
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 12 Sep 2018 01:35:30 +0000 (02:35 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 12 Sep 2018 01:35:30 +0000 (02:35 +0100)
lib/php/db/table.php
lib/php/out/div.php
lib/php/out/table.php

index cc620d16d3c593c5b5d467c0e32d4202bcb7353a..a6bf406f10d1c442f3ba47f49612b7ce4bb8ccdd 100644 (file)
@@ -1611,13 +1611,14 @@ Class Table extends nb {
 
                $html = '';
 
-               $html .= '<table class="table table-bordered db-rows rows wp-list-table widefat striped">'.NB_EOL;
+               $html .= '<table class="table table-striped db-rows wp-list-table widefat striped">'.NB_EOL;
 
                if ($this->show_header) {
                        $html .= '<thead>'.NB_EOL;
 
                        // Columns names
-                       $html .= '<tr class="head">'.NB_EOL;
+# NB 12.09.18                  $html .= '<tr class="head">'.NB_EOL;
+                       $html .= '<tr>'.NB_EOL;
                        if ($this->buttons() and DB_HTML_EDIT) $html .= '<th class="edit"></th>'.NB_EOL;
                        foreach ($fields as $name => $f) {
                                $html .= '<th'.$this->_rows_table_class($f).'>'.$this->url_sort($name).'</th>'.NB_EOL;
@@ -1635,7 +1636,7 @@ Class Table extends nb {
 
                $buttons = $this->html_row_buttons($row);
 
-               $html = '<tr class="db-row row">'.NB_EOL;
+               $html = '<tr class="db-row">'.NB_EOL;
 
                if ($this->buttons() and !empty($buttons[0])) $html .= '<td class="action">'.$buttons[0].'</td>'.NB_EOL;
 
@@ -1661,14 +1662,14 @@ Class Table extends nb {
                Html Div
        -----------------------------------------------------------------*/
        private function rows_begin_div() {
-               return '<div class="db-row rows db-search-results search-results">'.NB_EOL;
+               return '<div class="db-row db-search-results search-results">'.NB_EOL;
        }
 
        private function rows_rec_div(&$row) {
 
                $html = '';
 
-               $html .= '<ul class="db-row row">'.NB_EOL;
+               $html .= '<ul class="db-row">'.NB_EOL;
 
                if ($this->buttons()) {
                        $html .= '<li class="buttons">'.NB_EOL;
index fa63a600fe78cab0035ab8bededaa53180349d20..faf21721f0036e514510e33637b8079485e2aab0 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 return [
   'is_html' => true,
-  'enclose' => ["<div class=\"db-rows rows\">".NB_EOL,"</div>".NB_EOL],
-  'tag_enclose' => 'div class="db-row row"',
+  'enclose' => ["<div class=\"db-rows\">".NB_EOL,"</div>".NB_EOL],
+  'tag_enclose' => 'div class="db-row"',
   'tag' => 'div',
   'row' => 'out_tag',
   'tag_key' => 'label',
index 698db88899b43b73e94ad73b4f282896ed838a86..8f73838b7b9fe00b9b375da40c37a3e6cafb1b1c 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 return [
   'is_html' => true,
-  'enclose' => array("<table class=\"table table-bordered db-rows rows widefat striped\">".NB_EOL,"</table>".NB_EOL),
-  'tag_enclose' => 'tr class="db-row row"',
+  'enclose' => array("<table class=\"table table-bordered db-rows widefat striped\">".NB_EOL,"</table>".NB_EOL),
+  'tag_enclose' => 'tr class="db-row"',
   'tag_head' => 'th',
   'tag' => 'td',
   'row' => 'out_tag',