From: Nicolas Boisselier Date: Thu, 27 Sep 2018 12:58:14 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=dffc6511881535f5e2c998410d1ee1dab41afa4f;p=nb.git www/dbq/dbq.php --- diff --git a/lib/php/db/field.php b/lib/php/db/field.php index 2c659970..578a0b37 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -133,7 +133,7 @@ class field extends nb { foreach ((array)$values as $value) { $h = ''; - $class = [ 'label', $this->name ]; + $class = [ 'label', 'form-group', $this->name ]; $mime = Mime::fromContent($value); if ($mime) $class[] = $mime; @@ -174,7 +174,7 @@ class field extends nb { } $html .= '
' - .'' + .'' .'' .$h .'' diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 960e9c35..37458285 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -509,7 +509,7 @@ Class Table extends nb { foreach ($params as $k=>$v) { if (!empty($ignore) and in_array($k,$ignore)) continue; if (isset($v) or $k=='action') { - if (self::p('debug')) $h .= ""; + if (self::p('debug')) $h .= ""; $h .= ''.NB_EOL; } } @@ -630,11 +630,13 @@ Class Table extends nb { echo '
'.NB_EOL; # < fields echo '' - .'
' + #.'
' + .'
' .( empty($_SERVER['HTTP_REFERER']) ? '' : '') - .'' - .'' + .'' + .'' .'
'.NB_EOL + #.'
'.NB_EOL ; echo $form_hidden.''.NB_EOL; @@ -736,13 +738,13 @@ Class Table extends nb { } if ($prev>=0) { - $html .= '< '; + $html .= '<'; } - $html .= ''.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.''; + $html .= ''.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.''; if ($next<$tot) { - $html .= ' >'; + $html .= '>'; } return $html; @@ -1366,9 +1368,9 @@ Class Table extends nb { echo $this->{"rows_end_$format"}(); if ($opt['is_html']) { - $nav = ''.NB_EOL + .''.NB_EOL ; echo $nav; } @@ -1676,7 +1678,7 @@ Class Table extends nb { foreach ($row as $k => $v) { $html .= '
  • ' - .( $k == '0' ? '' : '') + .( $k == '0' ? '' : '') .''.$v.'' .'
  • '.NB_EOL; } @@ -2156,10 +2158,10 @@ Class Table extends nb { public function html_menu($opt=[]) { if (isset($opt['html_menu']) and !$opt['html_menu']) return ''; - $buttons = ''; + $buttons = ''; if (!empty($opt['buttons'])) $buttons = $opt['buttons']; - $r = '