<table border="1" cellspacing="0" width="700" align="center" class="ui-corner-all">
                        <tr class="ui-widget-header">
                            <th>&nbsp;</th>
                            <th style="min-width: 250px">Item</th>
                            <th>System inventory</th>
                            <th>Manual inventory</th>
                            <th style="min-width: 50px">Excess</th>
                            <th style="min-width: 50px">Loss</th>
                        </tr>
                        <?php 
include_once "../model/Item.php";
$itemObj = new Item();
$classes = $itemObj->getClasses();
$items = $itemObj->getInventoryItems();
if (count($items) == 0) {
    $items = $itemObj->getMainListInventoryItems();
}
$i = 0;
foreach ($items as $item) {
    ?>
                            <tr id="row<?php 
    echo $i;
    ?>
">
                                <td>
                                    <img alt="+" src="../images/plus.png" onclick="addItem(<?php 
    echo $i;
    ?>
)" height="15"/>
                                    <img alt="-" src="../images/minus.png" onclick="deleteItem(<?php 
    echo $i;