r1254 + display barcodes in "Unmounted objects" and "Object group" portlets
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 9 Nov 2007 22:27:09 +0000 (22:27 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 9 Nov 2007 22:27:09 +0000 (22:27 +0000)
inc/interface.php

index a991af19645f9902ee465ebc0b40f142d46d09d4..9bf719f6c20ac882454d5fa89588c3bdfbf92dd4 100644 (file)
@@ -1336,12 +1336,13 @@ function renderUnmountedObjectsPortlet ()
        global $root, $nextorder;
        $order = 'odd';
        echo '<br><br><table border=0 cellpadding=5 cellspacing=0 align=center class=cooltable>';
-       echo '<tr><th>Common name</th><th>Visible label</th><th>Asset number</th></tr>';
+       echo '<tr><th>Common name</th><th>Visible label</th><th>Asset number</th><th>Barcode</th></tr>';
        foreach ($objs as $obj)
        {
                echo "<tr class=row_${order}><td><a href='${root}?page=object&object_id=${obj['id']}'>${obj['dname']}</a></td>";
                echo "<td>${obj['label']}</td>";
-               echo "<td>${obj['asset_no']}</td></tr>";
+               echo "<td>${obj['asset_no']}</td>";
+               echo "<td>${obj['barcode']}</td></tr>";
                $order = $nextorder[$order];
        }
        echo "</table><br>\n";
@@ -1426,7 +1427,7 @@ function renderObjectGroup ($group_id = 0)
 
        startPortlet ('Object group');
        echo '<br><br><table border=0 cellpadding=5 cellspacing=0 align=center class=cooltable>';
-       echo '<tr><th>Common name</th><th>Visible label</th><th>Asset tag</th><th>Rack</th></tr>';
+       echo '<tr><th>Common name</th><th>Visible label</th><th>Asset tag</th><th>Barcode</th><th>Rack</th></tr>';
        $order = 'odd';
        global $nextorder;
        foreach ($objects as $obj)
@@ -1434,6 +1435,7 @@ function renderObjectGroup ($group_id = 0)
                echo "<tr class=row_${order}><td><a href='${root}?page=object&object_id=${obj['id']}'>${obj['dname']}</a></td>";
                echo "<td>${obj['label']}</td>";
                echo "<td>${obj['asset_no']}</td>";
+               echo "<td>${obj['barcode']}</td>";
                if ($obj['rack_id'])
                        echo "<td><a href='${root}?page=rack&rack_id=${obj['rack_id']}'>${obj['Rack_name']}</a></td>";
                else