} ?> <form id="form1" action="../controller/ItemController.php?opcion=saveInventory" method="post" > <br/> <table border="1" cellspacing="0" width="700" align="center" class="ui-corner-all"> <tr class="ui-widget-header"> <th> </th> <th style="max-width: 200px">Item</th> <th>Preferred Vendor</th> </tr> <?php include_once "../model/Item.php"; include_once "../model/Vendor.php"; $itemObj = new Item(); $vendorObj = new Vendor(); $classes = $itemObj->getClasses(); $items = $itemObj->getItemsSetPreferredVendor(); $vendors = $vendorObj->getPreferredVendors(); $i = 0; foreach ($items as $item) { ?> <tr id="row<?php echo $i; ?> "> <td align="center"> <span><?php echo $i + 1; ?> </span> </td>
$priceList->setType($_POST["rdoType"]); $priceList->setBaseList($_POST["cmbBaseList"]); $priceList->setFlag($_POST["txtFlag"]); $priceList->setIdprice_list($_POST["idPriceList"]); $priceList->setMain_list($_POST["chkMainList"]); $priceList->setPrint_type($_POST["cmbPrintType"]); if ($_SESSION['profile'] == '3') { $priceList->setIdcustomer($_POST["cmbCustomer"]); } else { $priceList->setIdcustomer('null'); } $count = $_POST["count"]; $max = $_POST["max"]; include_once "../model/Item.php"; $itemObj = new Item(); $classArr = $itemObj->getClasses(); $classes = array(); foreach ($classArr as $class => $value) { $classes[$class] = $_POST["txtClass" . $class]; } $items = array(); for ($i = 0; $i <= $max; $i++) { if (isset($_POST["txtItem" . $i])) { $items[] = array("iditem" => $_POST["hidItem" . $i], "price" => $_POST["hidNewPrice" . $i], "adjustment" => $_POST["txtAdj" . $i], "order" => $_POST["hidOrder" . $i]); } } $msg = $priceList->editPriceList($items, $classes); $msgSplit = explode("_", $msg); if ($msgSplit[0] == "true") { $msg = "Price list edited"; $id = $msgSplit[1];