/[dolibarr]/dolibarr/htdocs/telephonie/distributeurs/remuneration.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/distributeurs/remuneration.php

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

revision 1.6 by rodolphe, Thu Nov 10 08:58:29 2005 UTC revision 1.7 by rodolphe, Thu Nov 10 10:23:06 2005 UTC
# Line 182  if ($_GET["id"]) Line 182  if ($_GET["id"])
182        print "</tr>\n";        print "</tr>\n";
183                
184        $var=True;        $var=True;
185                $total = 0;
186        while ($i < $num)        while ($i < $num)
187          {          {
188            $obj = $db->fetch_object($resql);            $obj = $db->fetch_object($resql);
# Line 195  if ($_GET["id"]) Line 195  if ($_GET["id"])
195            print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->idp.'">'.$obj->nom."</a></td>\n";            print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->idp.'">'.$obj->nom."</a></td>\n";
196            print '<td align="right">'.sprintf("%01.2f",$obj->montant)."</td>\n";              print '<td align="right">'.sprintf("%01.2f",$obj->montant)."</td>\n";  
197            print "</tr>\n";            print "</tr>\n";
198              $total += $obj->montant;
199            $i++;            $i++;
200          }          }
201          print "<tr $bc[$var]>";    
202          print '<td>Total</td>\n";
203          print '<td align="right">'.sprintf("%01.2f",$total)."</td>\n";      
204          print "</tr>\n";
205        print "</table>";        print "</table>";
206        $db->free();        $db->free();
207      }      }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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