From: Nicolas Boisselier Date: Mon, 28 Dec 2015 16:26:42 +0000 (+0100) Subject: declare variables X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1e632ad7189a384ac2665e6b0ec77b7db70e2780;p=nb.git declare variables --- diff --git a/lib/php/db.php b/lib/php/db.php index e0cb2859..caa80f19 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -39,10 +39,13 @@ class db extends nb { public $type; public $tables = array(); + # Objects + public $table; + # Web public $dbs; // others databases keys - public $table; public $default_table; + public $limits = array('10','20','50','100','500','1000'); public $help_criterias = array( ' * or % for wildcar', ' ! to negate', @@ -320,9 +323,7 @@ EOF; // Limit $r .= ''; - $r .= ''.html_select_array(array( - '10','20','50','100','500','1000' - ),array( + $r .= ''.html_select_array($this->limits,array( 'html' => 'class="limit" name="limit" id="limit"', 'selected' => $this->p('limit'), 'prettyText' => true,