コード例 #1
0
ファイル: customerlist.php プロジェクト: legende91/ez
<?php

/**
 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
 * @version  2012.6
 * @package kernel
 */
$module = $Params["Module"];
$offset = $Params['Offset'];
$limit = 15;
$tpl = eZTemplate::factory();
$http = eZHTTPTool::instance();
$customerArray = eZOrder::customerList($offset, $limit);
$customerCount = eZOrder::customerCount();
$tpl->setVariable("customer_list", $customerArray);
$tpl->setVariable("customer_list_count", $customerCount);
$tpl->setVariable("limit", $limit);
$viewParameters = array('offset' => $offset);
$tpl->setVariable("module", $module);
$tpl->setVariable('view_parameters', $viewParameters);
$path = array();
$path[] = array('text' => ezpI18n::tr('kernel/shop', 'Customer list'), 'url' => false);
$Result = array();
$Result['path'] = $path;
$Result['content'] = $tpl->fetch("design:shop/customerlist.tpl");