/[dolibarr]/dolibarr/htdocs/telephonie/client/stats.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/client/stats.php

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

revision 1.3 by rodolphe, Thu Oct 20 19:18:51 2005 UTC revision 1.4 by rodolphe, Mon Oct 31 10:01:36 2005 UTC
# Line 66  if ($_GET["id"]) Line 66  if ($_GET["id"])
66            $head[$h][1] = $langs->trans("Stats");            $head[$h][1] = $langs->trans("Stats");
67            $hselected = $h;            $hselected = $h;
68            $h++;            $h++;
                   
           $head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;  
           $head[$h][1] = $langs->trans("Tarifs");  
           $h++;  
69    
70              $sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client";
71              $sql .= " WHERE fk_client = '".$soc->id."';";
72              $resql = $db->query($sql);
73    
74              if ($resql)
75                {
76                  $row = $db->fetch_row($resql);
77                  $db->free($resql);
78                }
79    
80              $head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;
81              $head[$h][1] = $langs->trans("Tarifs (".$row[0].")");        
82              $h++;
83                    
84            dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);            dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
85    
86            print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';            print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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