[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/shop/ -> customerlist.php (source)

   1  <?php
   2  //
   3  // Definition of Customlist class
   4  //
   5  // Created on: <01-Mar-2004 13:06:15 wy>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*! \file customlist.php
  30  */
  31  
  32  include_once ( "kernel/common/template.php" );
  33  
  34  include_once ( "kernel/classes/ezorder.php" );
  35  
  36  $module =& $Params["module"];
  37  
  38  $offset = $Params['Offset'];
  39  $limit = 15;
  40  
  41  $tpl =& templateInit();
  42  
  43  $http =& eZHttpTool::instance();
  44  
  45  $customerArray =& eZOrder::customerList( $offset, $limit );
  46  
  47  $customerCount =& eZOrder::customerCount();
  48  
  49  $tpl->setVariable( "customer_list", $customerArray );
  50  $tpl->setVariable( "customer_list_count", $customerCount );
  51  $tpl->setVariable( "limit", $limit );
  52  
  53  $viewParameters = array( 'offset' => $offset );
  54  $tpl->setVariable( "module", $module );
  55  $tpl->setVariable( 'view_parameters', $viewParameters );
  56  
  57  $path = array();
  58  $path[] = array( 'text' => ezi18n( 'kernel/shop', 'Customer list' ),
  59                   'url' => false );
  60  
  61  $Result = array();
  62  $Result['path'] =& $path;
  63  
  64  $Result['content'] =& $tpl->fetch( "design:shop/customerlist.tpl" );
  65  
  66  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7