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

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

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

revision 1.7 by rodolphe, Mon Oct 31 10:01:45 2005 UTC revision 1.8 by rodolphe, Tue Nov 22 15:57:03 2005 UTC
# Line 37  if ($cancel == $langs->trans("Cancel")) Line 37  if ($cancel == $langs->trans("Cancel"))
37    
38  if ($_GET["id"])  if ($_GET["id"])
39  {  {
40    $soc = new Societe($db);    $soc = new TelephonieClient($db);
41    $result = $soc->fetch($_GET["id"], $user);    $result = $soc->fetch($_GET["id"], $user);
42    
43    if (!$soc->perm_read)    if (!$soc->perm_read)
# Line 83  if ($_GET["id"]) Line 83  if ($_GET["id"])
83            $head[$h][1] = $langs->trans("Tarifs (".$row[0].")");                    $head[$h][1] = $langs->trans("Tarifs (".$row[0].")");        
84            $h++;            $h++;
85    
86              $head[$h][0] = DOL_URL_ROOT."/telephonie/client/commentaires.php?id=".$soc->id;
87              $head[$h][1] = $langs->trans("Commentaires");
88              $num_comments = $soc->count_comment();
89              if ($num_comments > 0)
90                {
91                  $head[$h][1] = $langs->trans("Commentaires ($num_comments)");
92                }
93              $h++;
94    
95    
96            dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);            dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
97    
98            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.7  
changed lines
  Added in v.1.8

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