]> git.nbdom.net Git - nb.git/commitdiff
dbq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 11:33:51 +0000 (11:33 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 11:33:51 +0000 (11:33 +0000)
lib/php/db/table.php
www/dbq/html/default.css

index fa79c5907264045edc97216f8e90e62a86716f9a..ede96045865b3d9bf7680d58eaa473396792b2dc 100644 (file)
@@ -646,13 +646,16 @@ Class Table extends nb {
       if (preg_match("/(LIKE|$regexp) ..$/","$equal$v") and $field->null) {
 # NB 20.12.16         $k = "COALESCE($k,".$this->db()->quote('').")";
         $k = 'COALESCE('.$field->sql_name().','.$this->db()->quote('').")";
+
       } elseif ($field->extras) {
         $k = $this->extras[$k]->sql_name();
 
       } elseif ($number and $field->null) {
         $k = 'COALESCE('.$field->sql_name().",0)";
+
       } elseif (!$number and $field->null) {
         $k = 'COALESCE('.$field->sql_name().",'')";
+
       } else {
         $k = $field->sql_name();
 
index c573deec3ce37f7a0d0cbf4fd1d6065b9371c106..372c744d21ea899d79c609ff7ef5874f7b9c2ed6 100644 (file)
@@ -114,6 +114,22 @@ a:hover,
   opacity: 0.8;
 }
 
+form.menu .criterias span.label {
+  width: 23%;
+  display: inline-block;
+  border: solid 1px #fff;
+  padding: 0.1em 0.3em;
+  margin: 0.2em 0.2em 0 0;
+  border-radius: 3px;
+}
+form.menu .criterias label {
+  width: 60%;
+  display: inline-block;
+}
+form.menu .criterias input {
+  width: 30%;
+  display: inline-block;
+}
 /*
 form a.button:visited, form a.button {
   display: inline-block;
@@ -121,6 +137,9 @@ form a.button:visited, form a.button {
   top: -1px;
 }
 */
+
+/*
+EDIT PAGE
 form.edit .fields label {
   width: 25%;
   text-align: right;
@@ -137,3 +156,21 @@ form.edit .fields .label span {
 form.edit .fields input, form.edit .fields textarea, form.edit .fields select {
   width: 65%;
 }
+
+form.edit .fields label {
+  width: 25%;
+  text-align: right;
+  display: inline-block;
+  margin-right: 1em;
+  vertical-align: top;
+}
+form.edit .fields .label span {
+  width: 54%;
+  display: inline-block;
+  text-align: left;
+}
+
+form.edit .fields input, form.edit .fields textarea, form.edit .fields select {
+  width: 65%;
+}
+*/