当前位置: 首页>>代码示例>>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;未经允许,请勿转载。