[ 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/distributeurs/ -> commercialca.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: commercialca.php,v 1.2 2005/05/30 08:33:27 rodolphe Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/stats/distributeurs/commercialca.php,v $
  20   *
  21   */
  22  require ("./pre.inc.php");
  23  
  24  if (!$user->rights->telephonie->lire) accessforbidden();
  25  
  26  llxHeader('','Telephonie - Statistiques - Distributeurs');
  27  
  28  /*
  29   *
  30   *
  31   *
  32   */
  33  
  34  
  35  $h = 0;
  36  
  37  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';
  38  $head[$h][1] = "Global";
  39  $h++;
  40  
  41  if ($_GET["id"])
  42  {
  43    $comm = new User($db, $_GET["id"]);
  44    $comm->fetch();
  45  
  46    $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercial.php?id='.$comm->id;
  47    $head[$h][1] = $comm->fullname;
  48    $h++;
  49  
  50    $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/commercialca.php?id='.$comm->id;
  51    $head[$h][1] = "CA";
  52    $hselected = $h;
  53    $h++;
  54  
  55    dolibarr_fiche_head($head, $hselected, "Distributeurs");
  56  
  57    print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
  58  
  59    print '<tr><td valign="top">';
  60    
  61  
  62    print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=telephoniegraph&file=commercials/'.$comm->id.'/gain.mensuel.png" alt="Gain mensuel" title="Gain mensuel"><br /><br />'."\n";
  63  
  64    print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=telephoniegraph&file=commercials/'.$comm->id.'/ca.mensuel.png" alt="Chiffre d\'affaire mensuel" title="Chiffre d\'affaire mensuel"><br /><br />'."\n";
  65    
  66    print '</td></tr>';
  67    print '</table>';
  68    
  69    $db->close();
  70   
  71  }
  72  
  73  llxFooter("<em>Derni&egrave;re modification $Date: 2005/05/30 08:33:27 $ r&eacute;vision $Revision: 1.2 $</em>");
  74  ?>


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