當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Supplier::GetList方法代碼示例

本文整理匯總了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 
開發者ID:BackupTheBerlios,項目名稱:scrapbook,代碼行數:31,代碼來源:suppliers_show.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;
開發者ID:dreamvishnu,項目名稱:tire-inventory,代碼行數:31,代碼來源:index.php


注:本文中的Supplier::GetList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。