</tr>
                    </table>
                    <br/>
                    <table border="1" cellspacing="0" width="850" align="center">
                        <tr class="ui-widget-header">
                            <th style="width: 5%">&nbsp;</th>
                            <th style="width: 30%">Item</th>
                            <th>Real purchase qty</th>
                            <th style="width: 20%">Vendor</th>
                            <th>Purchase price</th>
                            <th>Order #</th>
                        </tr>
                        <?php 
include_once "../model/PurchaseOrder.php";
$porder = new PurchaseOrder();
$items = $porder->getSavedItems($_POST['txtDate1'], $_POST['txtDate2'], $_POST["cmbVendor"]);
for ($i = 0; $i < count($items); $i++) {
    $item = $items[$i];
    $_GET["idvendor"] = $item["idvendor"];
    $_GET["i"] = $i;
    ?>
                                <tr id="row<?php 
    echo $i;
    ?>
" class="ui-widget-content">
                                    <td>
                                        <img alt="+" id="add<?php 
    echo $i;
    ?>
" src="../images/plus.png" onclick="addItem(<?php 
    echo $i;