本文整理汇总了PHP中Supplier::GetList方法的典型用法代码示例。如果您正苦于以下问题:PHP Supplier::GetList方法的具体用法?PHP Supplier::GetList怎么用?PHP Supplier::GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Supplier
的用法示例。
在下文中一共展示了Supplier::GetList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Supplier
<?php
require "common_all.php";
$type = (int) $_GET["type"];
$name = $_GET["name"];
$supplier = new Supplier();
$results = $supplier->GetList(array(array("supplier_category_id", "=", $type), array("supplier_status", "=", "active")), "dt_created");
shuffle($results);
foreach ($results as $obj) {
updateImpressions("supplier", $obj->supplierId);
}
$section = 7;
require "top.php";
?>
<table width="459" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><img src="images/spacer.gif" alt="spacer" width="1" height="5" border="0" /></td>
</tr>
<tr>
<td><div class="roundcont">
<div class="roundtop"> <img class="corner" src="images/bl_01.gif" alt="edge" style=" display: none;" /></div>
<h1>Suppliers for <?php
echo $_GET['name'];
?>
</h1>
<div class="roundbottom"> <img src="images/bl_06.gif" alt="edge" class="corner" style=" display: none;" /></div>
</div></td>
</tr>
</table>
<table id="table" cellspacing = "0" cellpadding = "0">
<?php
示例2: Supplier
}
$smarty->assign('customers', $customers);
} else {
$smarty->assign('motd', 'Customer Table Empty');
$smarty->assign('message', 'No customers found in the database.');
}
$smarty->display('templates/managecustomers.tpl');
break;
case 'addsupplier':
$smarty->assign('title', "Tire Inventory | New Supplier");
$smarty->display('templates/addsupplier.tpl');
break;
case 'managesuppliers':
require_once 'objects/class.supplier.php';
$supplier = new Supplier();
$supplist = $supplier->GetList(array(array('supplierId', '>', 0), array('deleted', '=', 0)));
if (count($supplist) > 0) {
$suppliers = array();
foreach ($supplist as $supplier) {
array_push($suppliers, array('supplierid' => $supplier->supplierId, 'company' => $supplier->company, 'address1' => $supplier->address1, 'address2' => $supplier->address2, 'city' => $supplier->city, 'phone' => $supplier->phone, 'contactname' => $supplier->contactname, 'contactno' => $supplier->contactno, 'deleted' => $supplier->deleted));
}
$smarty->assign('suppliers', $suppliers);
} else {
$smarty->assign('motd', 'Suppliers Table Empty');
$smarty->assign('message', 'No suppliers found in the database.');
}
$smarty->display('templates/managesuppliers.tpl');
break;
case 'savesupplier':
print "save supplier";
break;