diff --git a/inc/object.class.php b/inc/object.class.php index 0ca19cf..39ffb60 100644 --- a/inc/object.class.php +++ b/inc/object.class.php @@ -646,15 +646,11 @@ public function displayField($canedit, $name, $value, $template, $description = } $this->startColumn(); - echo $searchoption['name']; - if (isset($searchoption['autoname']) && $searchoption['autoname'] && $template) { - echo "* "; - } - $this->endColumn(); - $this->startColumn(); + echo ''; // Keep only main column type by removing anything that is preceded by a space (e.g. " unsigned") // or a parenthesis (e.g. "(255)"). + echo '
'; $column_type = preg_replace('/^([a-z]+)([ (].+)*$/', '$1', $description['Type']); switch ($column_type) { case "int": @@ -774,6 +770,7 @@ public function displayField($canedit, $name, $value, $template, $description = echo ""; break; } + echo '
'; $this->endColumn(); } } @@ -786,10 +783,14 @@ public function displayField($canedit, $name, $value, $template, $description = public function startColumn() { if ($this->cpt == 0) { - echo ""; + echo '
'; + echo '
'; + echo '
'; + echo '
'; + echo '
'; } + echo '
'; - echo ""; $this->cpt++; } @@ -800,12 +801,7 @@ public function startColumn() **/ public function endColumn() { - echo ""; - - if ($this->cpt == 4) { - echo ""; - $this->cpt = 0; - } + echo "
"; } @@ -816,11 +812,7 @@ public function endColumn() public function closeColumn() { if ($this->cpt > 0) { - while ($this->cpt < 4) { - echo ""; - $this->cpt++; - } - echo ""; + echo "
"; } }