1
0

Show versions without OTA in different style.

This commit is contained in:
2017-12-17 19:33:33 +01:00
parent c8dd58aab1
commit 3de1b94816
3 changed files with 21 additions and 3 deletions

View File

@ -33,9 +33,14 @@ foreach ($allVars as $family => $models) {
foreach ($variants as $ref => $name) {
echo '<tr><td class="ref">' . $ref . '</td>';
$refVersions = $db->getAllVersionsForRef($ref);
$allOta = $db->getAllVersionsForRef($ref, $db::OTA_ONLY);
foreach ($allVersions as $v) {
if (in_array($v, $refVersions, true)) {
echo '<td>' . $v . '</td>';
if (in_array($v, $allOta)) {
echo '<td>' . $v . '</td>';
} else {
echo '<td class="fullonly">' . $v . '</td>';
}
} else {
echo '<td class="empty">- - -</td>';
}