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

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

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

revision 1.2 by rodolphe, Mon Nov 14 13:47:10 2005 UTC revision 1.3 by rodolphe, Wed Nov 16 12:29:26 2005 UTC
# Line 42  $hselected = $h; Line 42  $hselected = $h;
42  $h++;  $h++;
43    
44  $year = strftime("%Y",time());  $year = strftime("%Y",time());
45    $total = 0;
46  dolibarr_fiche_head($head, $hselected, "Distributeurs");  dolibarr_fiche_head($head, $hselected, "Distributeurs");
47    
48  print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';  print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
# Line 65  if ($resql) Line 65  if ($resql)
65        $var=!$var;                $var=!$var;        
66        print "<tr $bc[$var]><td>".$row[1].'</td>';          print "<tr $bc[$var]><td>".$row[1].'</td>';  
67        print '<td align="right">'.price($row[0]).'</td></tr>';        print '<td align="right">'.price($row[0]).'</td></tr>';
68          $total += $row[0];
69      }      }
70    $db->free();    $db->free();
71  }  }
# Line 72  else Line 73  else
73  {  {
74    print $db->error() . ' ' . $sql;    print $db->error() . ' ' . $sql;
75  }  }
76    print "<tr $bc[$var]><td>Total</td>";
77    print '<td align="right">'.price($total).'</td></tr>';
78  print '</table>';  print '</table>';
79    
80  print '</td></tr><tr><td valign="top" width="70%">';  print '</td></tr><tr><td valign="top" width="70%">';

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

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