Example #1
0
                <?php 
if (isset($_GET["msg"])) {
    ?>
                    <p class="ui-state-highlight ui-corner-all"><?php 
    echo htmlentities($_GET["msg"]);
    ?>
</p>
                <?php 
}
?>
                    <form action="" method="post" id="form1" >
                     <br>
                         <?php 
include_once "../model/Item.php";
$itemsObj = new Item();
$listInvoicing = $itemsObj->getListInvoicing();
if (count($listInvoicing) > 0) {
    ?>
                     <table border="0" style="border: 1px solid; width: 500px" align="center" class="ui-widget-content">
                            <tr class='ui-widget-header'>
                                <th style="width: 100px" >Name List</th>
                                <th style="width: 400px">Item</th>
                            </tr>
                     
                    <?php 
    foreach ($listInvoicing as $list) {
        $items = $itemsObj->missingItems($list["id"], $list["name"]);
        if (count($items) > 0) {
            foreach ($items as $item) {
                ?>
                                <tr>