Browse Source

excluded LARA column from overview display fro KNM10 and later

Thomas Thümmler 7 months ago
parent
commit
f4cdb6a4fc
1 changed files with 19 additions and 14 deletions
  1. 19 14
      public/index.php

+ 19 - 14
public/index.php

@@ -85,13 +85,15 @@
             {
                 $colname=$result->columnName($i);
                 $colname = str_replace('_', ' ', $colname);
-                if ($i < 5){
-                  echo "<th>$colname</th>";
+                if ($tableName.length < 5 || $i != 11) // column 11 = LARA, which is skipped since KNM10 (length 5, KNM9 and before length 4)
+                {  
+                  if ($i < 5){
+                    echo "<th>$colname</th>";
+                  } 
+                  else {
+                    echo "<th class='vertical'><div class='vertical'>$colname</div></th>";
+                  }
                 }
-                else {
-                  echo "<th class='vertical'><div class='vertical'>$colname</div></th>";
-                }
-
             }
             echo "</tr>";
             $rowCount = 0;
@@ -111,14 +113,17 @@
                       echo "<script>localStorage.setItem('lastChecked', '$lastChecked')</script>";
                     }
 
-                    if ($value == "good"){
-                      echo "<th id='green'>$value</th>";
-                    }
-                    elseif ($value == "bad") {
-                      echo "<th id='red'>$value</th>";
-                    }
-                    else {
-                      echo "<th id='normal'>$value</th>";
+                    if ($tableName.length < 5 || $i != 11) // skip column 11 = LARA, which is true since KNM10 (length 5, KNM9 and before length 4)
+                    {
+                      if ($value == "good"){
+                        echo "<th id='green'>$value</th>";
+                      } 
+                      elseif ($value == "bad") {
+                        echo "<th id='red'>$value</th>";
+                      }
+                      else {
+                        echo "<th id='normal'>$value</th>";
+                      }
                     }
                 }
                 $value=$row[$numColumns-1];