[ Index ] |
|
Code source de Dolibarr 2.0.1 |
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: ca.php,v 1.5 2005/12/07 15:35:44 rodolphe Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/telephonie/distributeurs/comm/ca.php,v $ 20 * 21 */ 22 require ("./pre.inc.php"); 23 24 if (!$user->rights->telephonie->lire) accessforbidden(); 25 26 if ($user->distributeur_id && $user->responsable_distributeur_id == 0) 27 { 28 $_GET["id"] = $user->id; 29 } 30 31 if ($user->responsable_distributeur_id > 0) 32 { 33 if (!in_array($_GET["id"], $user->responsable_distributeur_commerciaux)) 34 { 35 accessforbidden(); 36 } 37 } 38 39 $year = strftime("%Y",time()); 40 41 llxHeader('','Telephonie - Distributeur - Commercial'); 42 43 /* 44 * 45 */ 46 $h = 0; 47 $year = strftime("%Y",time()); 48 49 if ($_GET["id"] && $_GET["did"]) 50 { 51 $commercial = new User($db, $_GET["id"]); 52 $commercial->fetch(); 53 54 $distri = new DistributeurTelephonie($db); 55 $distri->fetch($_GET["did"]); 56 57 $head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/distributeur.php?id='.$distri->id; 58 $head[$h][1] = $distri->nom; 59 $h++; 60 61 $head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/comm/commercial.php?id='.$_GET["id"].'&did='.$_GET["did"]; 62 $head[$h][1] = $commercial->prenom ." ". $commercial->nom; 63 $h++; 64 65 $head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/comm/ca.php?id='.$commercial->id.'&did='.$_GET["did"]; 66 $head[$h][1] = "Chiffre d'affaire"; 67 $hselected = $h; 68 $h++; 69 /* 70 $head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/stats.php?id='.$distri->id; 71 $head[$h][1] = "Statistiques"; 72 $h++; 73 */ 74 dolibarr_fiche_head($head, $hselected, "Distributeur"); 75 76 print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; 77 78 print '<tr><td width="50%" valign="top">'; 79 80 print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=telephoniegraph&file=commercials/'.$commercial->id.'/ca.mensuel.'.$year.'.png" alt="CA" title="CA"><br /><br />'."\n"; 81 82 print '</td><td width="50%" valign="top"><br />'; 83 84 print '</td></tr>'; 85 print '</table></div>'; 86 87 $db->close(); 88 } 89 90 llxFooter("<em>Dernière modification $Date: 2005/12/07 15:35:44 $ révision $Revision: 1.5 $</em>"); 91 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |