]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 22 Oct 2017 18:55:40 +0000 (19:55 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 22 Oct 2017 18:55:40 +0000 (19:55 +0100)
lib/php/db/page.php
lib/php/db/table.php
www/dbq/dbq.php

index 16f771f8ea8586f3ffc92482eae261ac84e41d91..2f69c69ed1589cb7c4252f62933dd9f85f6c8599 100644 (file)
@@ -16,13 +16,10 @@ $Page = new Page([
   ],
   'content_type' => Page::content_type_and_set_format(),
   'nav' => [
-    [ 'Home', '/' ]
+    [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
+    ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
+    ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
   ],
-# NB 21.10.17   '_nav' => [
-# NB 21.10.17     [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
-# NB 21.10.17     ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
-# NB 21.10.17     ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
-# NB 21.10.17   ],
   'call' => array(
     'begin',
     #['out', "Hello World !!!\n"],
index 5a78bf8c581ff5176b477b3cccf27a8a417fe0f9..210a8185b1ec4e24eb2df250746213c0807c0533 100644 (file)
@@ -46,8 +46,9 @@ Class Table extends nb {
   public $show_buttons = true;
   public $show_url_sort = true;
   public $show_header = true;
-  public static $params = [ 'db', 'table', 'limit', 'debug', 'action'
-    , 'page', 'paged' # wordpress
+  public static $params = [
+    'db', 'table', 'limit', 'debug', 'action',
+    'page', 'paged', # wordpress
   ];
 
   function __construct($name,$opt=[]) {
@@ -106,16 +107,7 @@ Class Table extends nb {
       }
     }
 
-    # NB 22.12.16: TODEL 
-    #$this->show_header = (bool)$this->p('header',$this->show_header);
-    #$this->pdef('header',$this->show_header);
-
     if (isset($_GET['rows.header'])) $this->show_header = $_GET['rows.header'];
-    #$this->pdef('header',$this->show_header);
-    #$this->show_header = (bool)$this->p('header',$this->show_header);
-    #bye($this->show_header);
-    #$this->show_header = (bool)$this->show_header;
-    #$this->db()->out->header($this->show_header);
 
   }
 
index 3dc497405ca7cd6540487ae5d2d7543c14ad7c71..724c6a70a210aa352f606b9303962739b896737d 100644 (file)
@@ -17,7 +17,6 @@ class DbQ extends nb {
     'admin' => self::ADMIN,
     'delete' => self::DELETE,
     'write' => self::WRITE,
-# NB 27.07.17     'view' => self::READ,
     'read' => self::READ,
   ];