[ 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/telephonie/stats/factures/ -> marge.php (source)

   1  <?PHP
   2  /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
   3   *
   4   * This program is free software; you can redistribute it and/or modify
   5   * it under the terms of the GNU General Public License as published by
   6   * the Free Software Foundation; either version 2 of the License, or
   7   * (at your option) any later version.
   8   *
   9   * This program is distributed in the hope that it will be useful,
  10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12   * GNU General Public License for more details.
  13   *
  14   * You should have received a copy of the GNU General Public License
  15   * along with this program; if not, write to the Free Software
  16   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17   *
  18   * $Id: marge.php,v 1.5 2005/12/06 11:02:30 rodolphe Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/stats/factures/marge.php,v $
  20   *
  21   */
  22  require ("./pre.inc.php");
  23  
  24  $page = $_GET["page"];
  25  $sortorder = $_GET["sortorder"];
  26  
  27  if (!$user->rights->telephonie->lire)
  28    accessforbidden();
  29  
  30  llxHeader('','Telephonie - Ligne');
  31  
  32  /*
  33   * Sécurité accés client
  34   */
  35  if ($user->societe_id > 0) 
  36  {
  37    $action = '';
  38    $socidp = $user->societe_id;
  39  }
  40  
  41  $year = ($_GET["year"]>0)?$_GET["year"]:strftime("%Y", time());
  42  
  43  $h = 0;
  44  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/factures/index.php';
  45  $head[$h][1] = "Global";
  46  $h++;
  47  
  48  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/factures/marge.php';
  49  $head[$h][1] = "Marge";
  50  $hselected = $h;
  51  $h++;
  52  
  53  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/factures/type.php';
  54  $head[$h][1] = "Méthode de paiement";
  55  $h++;
  56  
  57  dolibarr_fiche_head($head, $hselected, "Satistiques Factures $year");
  58  print '<div class="onglet_inf">';
  59  print '<a class="onglet_inf" href="marge.php?year=2004">2004</a>';
  60  print '<a class="onglet_inf" href="marge.php?year=2005">2005</a>';
  61  print '<a class="onglet_inf" href="marge.php?year=2006">2006</a></div>';
  62  
  63  print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
  64  
  65  print '<tr><td valign="top">';
  66  
  67  print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/gain_mensuel.'.$year.'.png" alt="Marge mensuelle">';
  68  
  69  print '</td></tr><tr><td valign="top">';
  70  
  71  print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/gain_moyen.'.$year.'.png" alt="Marge moyenne">';
  72  
  73  print '</td></tr><tr><td valign="top">';
  74  
  75  print '<img src="'.DOL_URL_ROOT.'/showgraph.php?graph='.DOL_DATA_ROOT.'/graph/telephonie/factures/nb_facture.'.$year.'.png" alt="Nb de factures">';
  76  
  77  print '</td></tr>';
  78  
  79  print '</table>';
  80  
  81  $db->close();
  82  
  83  llxFooter("<em>Derni&egrave;re modification $Date: 2005/12/06 11:02:30 $ r&eacute;vision $Revision: 1.5 $</em>");
  84  ?>


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