/[dolibarr]/dolibarr/htdocs/telephonie/stats/distributeurs/distributeur.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/stats/distributeurs/distributeur.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by rodolphe, Mon Nov 14 10:46:22 2005 UTC revision 1.10 by rodolphe, Wed Dec 7 15:27:59 2005 UTC
# Line 32  llxHeader('','Telephonie - Statistiques Line 32  llxHeader('','Telephonie - Statistiques
32   *   *
33   */   */
34    
   
35  $h = 0;  $h = 0;
36    
37  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';  $head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/distributeurs/index.php';
# Line 177  if ($_GET["id"]) Line 176  if ($_GET["id"])
176      }      }
177    print '</table>';    print '</table>';
178    
179      print '</td></tr><tr><td valign="top" width="70%">';
180      print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=telephoniegraph&file=distributeurs/'.$_GET["id"].'/ca.mensuel.png" alt="CA" title="CA"><br /><br />'."\n";
181    
182      print '</td><td valign="top" width="30%">';
183      
184      print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
185      print '<tr class="liste_titre"><td>Mois</td><td align="right">CA</td></tr>';
186      
187      $sql = "SELECT valeur,legend FROM ".MAIN_DB_PREFIX."telephonie_stats";  
188      $sql .= " WHERE graph = 'distributeur.ca.mensuel.".$_GET["id"]."'";
189      $sql .= " ORDER BY legend DESC";  
190      $resql = $db->query($sql);
191      
192      if ($resql)
193        {
194          while ($row = $db->fetch_row($resql))
195            {
196              $var=!$var;    
197              print "<tr $bc[$var]><td>".$row[1].'</td>';  
198              print '<td align="right">'.price($row[0]).'</td></tr>';
199            }
200          $db->free();
201        }
202      else
203        {
204          print $db->error() . ' ' . $sql;
205        }
206      print '</table>';
207    
208    
209    
210    print '</td></tr>';    print '</td></tr>';
211    print '</table>';    print '</table>';

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26