Example #1
0
                <h2>Price adjustment</h2>
                <?php 
if (isset($_GET["msg"])) {
    ?>
                <p class="ui-state-highlight ui-corner-all"><?php 
    echo htmlentities($_GET["msg"]);
    ?>
</p>
                <?php 
}
?>
                <form action="../controller/PriceListController.php?opcion=" method="post" id="form1" >
                    <?php 
include_once "../model/Item.php";
$itemObj = new Item();
$items = $itemObj->priceAdjustmentReport();
if (count($items) > 0) {
    ?>
                        <table border="0" style="border: 1px solid; min-width: 600px">
                            <?php 
    foreach ($items as $item) {
        ?>
                            <tr id="tr_<?php 
        echo $item["iditem"];
        ?>
">
                                <td width="30" id="td_img_<?php 
        echo $item["iditem"];
        ?>
">
                                    <img src="../images/tree_plus.png" width="16" height="16" alt="tree_plus" onclick="expandItemAdj('<?php