本文整理汇总了PHP中Vendor::getVendorPrices方法的典型用法代码示例。如果您正苦于以下问题:PHP Vendor::getVendorPrices方法的具体用法?PHP Vendor::getVendorPrices怎么用?PHP Vendor::getVendorPrices使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vendor
的用法示例。
在下文中一共展示了Vendor::getVendorPrices方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Vendor
<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
}
?>
<th colspan="2" style="width: 80px">Base cost</th>
</tr>
<tr class='ui-widget-header' align="center">
<th style="width: 50px">Lowest cost</th>
<th style="width: 50px">Target cost</th>
</tr>
</thead>
示例2: Item
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="850" align="center" class="ui-corner-all">
<tr class='ui-widget-header'>
<th width="5%"> </th>
<th width="48%">Item</th>
<th>List purchase price</th>
<th>Adjusted purchase price</th>
<th width="10%">Diff</th>
</tr>
<?php
include_once "../model/Item.php";
$itemObj = new Item();
if (isset($_GET["idvendor"])) {
$items = $vendor->getVendorPrices($_GET["idvendor"]);
} else {
//$items = $itemObj->getInventoryItems();
$items[] = array("iditem" => "", "name" => "", "quantity" => "");
}
$i = 0;
foreach ($items as $item) {
?>
<tr id="row<?php
echo $i;
?>
">
<td>
<img alt="+" src="../images/plus.png" onclick="addItem(<?php
echo $i;
?>