Ejemplo n.º 1
0
         <?php 
$_GET["title"] = 'Vendor price input';
include 'header.php';
?>
        <div id="content">
            <br/>
            <form method="post" name="form" id="form" action="">
                
                <div>  
                    <table id="tablePrices" class="fancyTable" align="center" border="1" cellpadding="2" cellspacing="0" width="100%" class="ui-corner-all" style=" table-layout: fixed">
                        <thead>
                            <?php 
include_once "../model/Vendor.php";
$vendorObj = new Vendor();
$items = $vendorObj->getItemPrices();
$vendors = $vendorObj->getVendorsWithPricesOnMainList();
$vendorPrices = array();
?>
                            <tr class='ui-widget-header' align="center">
                                <th rowspan="2" style="width: 200px;" >Item</th>
                                <?php 
foreach ($vendors as $id => $value) {
    $vendorPrices[] = $vendorObj->getVendorPrices($id);
    ?>
                                    <th rowspan="2" style="width: 80px"><?php 
    echo htmlentities($value);
    ?>
</th>
                                <?php 
}
?>