示例#1
0
                            <thead>
                                <tr class="ui-widget-header">
                                    <th width="50%">Class</th>
                                    <th>Value</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php 
    include_once "../model/Item.php";
    $itemObj = new Item();
    if ($list["type"] == "") {
        $classes = $itemObj->getClasses();
    } else {
        include_once "../model/PriceList.php";
        $priceListObj = new PriceList();
        $classes = $priceListObj->getClasses($_GET["idprice_list"]);
    }
    foreach ($classes as $id => $value) {
        ?>
                                    <tr>
                                        <td align="center"><?php 
        echo $id;
        ?>
</td>
                                        <td><input type="text" id="txtClass<?php 
        echo $id;
        ?>
" name="txtClass<?php 
        echo $id;
        ?>
" value="<?php