[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/expedition/stats/ -> month.php (source)

   1  <?php
   2  /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3   * Copyright (C) 2004      Laurent Destailleur  <eldy@users.sourceforge.net>
   4   *
   5   * This program is free software; you can redistribute it and/or modify
   6   * it under the terms of the GNU General Public License as published by
   7   * the Free Software Foundation; either version 2 of the License, or
   8   * (at your option) any later version.
   9   *
  10   * This program is distributed in the hope that it will be useful,
  11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13   * GNU General Public License for more details.
  14   *
  15   * You should have received a copy of the GNU General Public License
  16   * along with this program; if not, write to the Free Software
  17   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18   *
  19   * $Id: month.php,v 1.6 2005/07/16 14:04:25 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/expedition/stats/month.php,v $
  21   *
  22   */
  23  
  24  /**
  25          \file       htdocs/expedition/stats/month.php
  26          \ingroup    commande
  27          \brief      Page des stats expeditions par mois
  28          \version    $Revision: 1.6 $
  29  */
  30  
  31  require ("./pre.inc.php");
  32  require ("../expedition.class.php");
  33  require ("./expeditionstats.class.php");
  34  
  35  llxHeader();
  36  
  37  $mesg = '';
  38  
  39  print_fiche_titre('Statistiques expeditions '.$_GET["year"], $mesg);
  40  
  41  $stats = new ExpeditionStats($db);
  42  $data = $stats->getNbExpeditionByMonth($_GET["year"]);
  43  
  44  if (! is_dir($conf->expedition->dir_images)) { mkdir($conf->expedition->dir_images); }
  45  
  46  $filename = $conf->expedition->dir_images."/expedition".$year.".png";
  47  $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.'.png';
  48  
  49  $px = new BarGraph();
  50  $px->SetData($data);
  51  $px->SetMaxValue($px->GetMaxValue());
  52  $px->SetWidth(600);
  53  $px->SetHeight(280);
  54  $px->draw($filename);
  55  
  56  print '<table class="border" width="100%">';
  57  print '<tr><td align="center">Nombre d\'expédition par mois</td>';
  58  print '<td align="center">';
  59  print '<img src="'.$fileurl.'">';
  60  print '</td></tr>';
  61  print '</table>';
  62  
  63  $db->close();
  64  
  65  llxFooter("<em>Derni&egrave;re modification $Date: 2005/07/16 14:04:25 $ r&eacute;vision $Revision: 1.6 $</em>");
  66  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics