]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/html/default.css
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 1 Oct 2018 02:59:39 +0000 (03:59 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 1 Oct 2018 02:59:39 +0000 (03:59 +0100)
lib/php/db/field.php
lib/php/db/table.php
lib/php/out/div.php
www/dbq/html/default.css
www/dbq/html/default.min.css

index c12a6b7e3584cadba1afab7fe84a17ffbbdcf980..ce3ceb3f2be1d7407cc77812d782f96246f98145 100644 (file)
@@ -115,6 +115,11 @@ class field extends nb {
 
   }
 
+  private function _html_textarea() {
+    $size = ($this->size() and is_scalar($this->size())) ? $this->size() : 0;
+    return ( ($size>500) or preg_match('/^(\w*text|binary|blob|varchar)/i',$this->type) ) ? 'textarea' : 'input';
+       }
+
   public function html_edit($values,$type=null) {
 
     $size = ($this->size() and is_scalar($this->size())) ? $this->size() : 0;
index 5b4c50d479dfe4a68edbd2d274fff04b2b87b1f9..65e60209fde39e2c06738c705a2de86aa47763c9 100644 (file)
@@ -741,13 +741,15 @@ Class Table extends nb {
                }
 
                # NB 01.10.18: TODO 
-               $page = '';
-               /*
+               #$page = ' '.$x;
                $pages = $count ? floor($tot / $count) : 0;
-               #$page = $x == 0 ? '' : ' - '.floor($tot / $x);
+               $page = $count ? (floor($x / $y)+1) : '';
+               #$page = $pages == 0 ? '' : ' - '.floor($tot / $x);
+               /*
                */
                $num_start = $tot ? ($x+1) : 0;
                $num_end = $tot<($x+$y) ? $tot : ($x+$y);
+# NB 01.10.18          $html .= '<span class="count page-item"><span class="page-link">'.$page.' / '.$pages.'</span></span>';
                $html .= '<span class="count page-item"><span class="page-link">'.$num_start.' - '.$num_end.' / '.$tot.$page.'</span></span>';
 
                if ($next<$tot) {
index fd50ff6aa1605fc8d83c578c35551474cf826185..5a83f25dfab0424718742238eabd5d76d3daccbb 100644 (file)
@@ -5,8 +5,8 @@ return [
   'tag_enclose' => 'div class="db-row border rounded p-2 my-2"',
   'tag' => 'div class="row"',
   'row' => 'out_tag',
-  'tag_key' => 'label class="col col-lg-1"',
-  'tag_val' => 'div   class="col col-lg-11 value"',
+  'tag_key' => 'label class="col col-lg-2"',
+  'tag_val' => 'div   class="col col-lg-10 value"',
   #'tag_val' => 'span',
 ];
 ?>
index f832f3144d0dc9014d7c01c4555efe3ae04d5ec7..5cc300e9c9313a46e33c97380e1f0a2e49822560 100644 (file)
@@ -42,6 +42,7 @@ h1 {
 
 h1, h1 a, h1 a:hover {
        color: var(--light);
+       font-weight: normal !important;;
 }
 
 .menu * {
@@ -84,5 +85,15 @@ h1, h1 a, h1 a:hover {
 
 /* Fix centered */
 .pagination * {
-       display: inline-block
+       display: inline-block;
+}
+
+.db-rows th.view,
+div._db-rows div.db-row:first-of-type label,
+div._db-rows label:first-of-type,
+.HIDE{
+       font: 0/0 a;
+       color: transparent;
+       text-shadow: none;
+       background-color: transparent;
 }
index a59fb67df2bfbb367277d09f59727c7a84161062..3bbb3b5766d895864af72babfc758ecee5dfb108 100644 (file)
@@ -1 +1 @@
-@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loader{border:16px solid #fff;border-radius:50%;border-top:16px solid #000;padding:0;margin:0 auto 0 auto;width:8em;height:8em;animation:spin 2s linear infinite;display:block}body.loader{margin-top:8em}.loader *{display:none!important}h1{margin:0 0 .2em 0;font-size:140%;padding-bottom:.3em;margin-bottom:.5em;padding:.3em;background-color:var(--dark)}h1,h1 a,h1 a:hover{color:var(--light)}.menu *{font-size:95%}.menu .form-control{max-width:5rem;height:1.5rem;padding:0 .3rem;margin-top:.4rem;margin-left:.2rem}.menu .btn-group{margin-left:.4rem;max-height:2.5rem}.edit .form-control+.media{margin-top:.25rem}#db-menu-form,#page-bottom,.CENTER,.db-results,.db-rows,.pagination{margin-left:auto;margin-right:auto;width:auto;display:table}.pagination *{display:inline-block}
+@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loader{border:16px solid #fff;border-radius:50%;border-top:16px solid #000;padding:0;margin:0 auto 0 auto;width:8em;height:8em;animation:spin 2s linear infinite;display:block}body.loader{margin-top:8em}.loader *{display:none!important}h1{margin:0 0 .2em 0;font-size:140%;padding-bottom:.3em;margin-bottom:.5em;padding:.3em;background-color:var(--dark)}h1,h1 a,h1 a:hover{color:var(--light);font-weight:400!important}.menu *{font-size:95%}.menu .form-control{max-width:5rem;height:1.5rem;padding:0 .3rem;margin-top:.4rem;margin-left:.2rem}.menu .btn-group{margin-left:.4rem;max-height:2.5rem}.edit .form-control+.media{margin-top:.25rem}#db-menu-form,#page-bottom,.CENTER,.db-results,.db-rows,.pagination{margin-left:auto;margin-right:auto;width:auto;display:table}.pagination *{display:inline-block}.HIDE,.db-rows th.view,div._db-rows div.db-row:first-of-type label,div._db-rows label:first-of-type{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent}