本文整理汇总了PHP中Warehouse::getClientList方法的典型用法代码示例。如果您正苦于以下问题:PHP Warehouse::getClientList方法的具体用法?PHP Warehouse::getClientList怎么用?PHP Warehouse::getClientList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Warehouse
的用法示例。
在下文中一共展示了Warehouse::getClientList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Warehouse
*/
/**
* required setup
*/
require_once '../kernel/setup_inc.php';
$gBitSystem->verifyPackage('warehouse');
if (!$gBitUser->hasUserPermission('p_warehouse_view')) {
$gBitSystem->fatalError('You do not have prermission to view this package');
}
require_once WAREHOUSE_PKG_PATH . 'Warehouse.php';
global $gBitSystem, $gBitSmarty;
$gWarehouse = new Warehouse();
/* Get a list of galleries which matches the imput paramters (default is to list every gallery in the system) */
$_REQUEST['root_only'] = TRUE;
/* Process the input parameters this page accepts */
if (!empty($_REQUEST['warehouse_id'])) {
$gBitSmarty->assign_by_ref('gWarehouseId', $_REQUEST['warehouse_id']);
$template = 'list_warehouses.tpl';
} else {
$template = 'list_clients.tpl';
}
$warehouseList = $gWarehouse->getList($_REQUEST);
// Pagination Data
// $gBitSmarty->assign_by_ref( 'listInfo', $_REQUEST['listInfo'] );
$gBitSmarty->assign('warehouseList', $warehouseList);
$clientList = $gWarehouse->getClientList($_REQUEST);
$gBitSmarty->assign('clientList', $clientList);
// Display the template
$gDefaultCenter = "bitpackage:warehouse/{$template}";
$gBitSmarty->assign_by_ref('gDefaultCenter', $gDefaultCenter);
$gBitSystem->display('bitpackage:kernel/dynamic.tpl', 'List Client Warehouse Space', array('display_mode' => 'list'));