r2157 - fixed network TDs class issues
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 21 Aug 2008 06:13:54 +0000 (06:13 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 21 Aug 2008 06:13:54 +0000 (06:13 +0000)
inc/interface.php

index 40915c8b11c9ba7262b32ea6e85ab51aefed0fea..a88e14bef37a42d15562c07aaa04c169f2fb5e8d 100644 (file)
@@ -854,7 +854,7 @@ function renderRackObject ($object_id = 0)
                                if (NULL === $netid)
                                        echo '<td colspan=2>?</td>';
                                else
-                                       printIPv4NetInfoTDs ($netinfo);
+                                       printIPv4NetInfoTDs ($netinfo, $secondclass);
                                echo "<td class='${secondclass}'>";
                                // FIXME: These cals are really heavy, replace them with a more appropriate dedicated function.
                                $netdata = getIPv4Network ($netid);
@@ -5165,8 +5165,8 @@ function printIPv4NetInfoTDs ($netinfo, $tdclass = 'tdleft')
 {
        global $root;
        $tags = loadIPv4PrefixTags ($netinfo['id']);
-       echo "<td class=${tdclass}><a href='${root}?page=iprange&id=${netinfo['id']}'>${netinfo['ip']}/${netinfo['mask']}</a></td>";
-       echo "<td class=${tdclass}>" . niftyString ($netinfo['name']);
+       echo "<td class='${tdclass}'><a href='${root}?page=iprange&id=${netinfo['id']}'>${netinfo['ip']}/${netinfo['mask']}</a></td>";
+       echo "<td class='${tdclass}'>" . niftyString ($netinfo['name']);
        if (count ($tags))
                echo '<br><small>' . serializeTags ($tags, "${root}?page=ipv4space&tab=default&") . '</small>';
        echo "</td>";