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

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

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

revision 1.12 by rodolphe, Tue Nov 22 16:50:51 2005 UTC revision 1.13 by rodolphe, Wed Nov 23 15:45:40 2005 UTC
# Line 130  if ($_GET["id"]) Line 130  if ($_GET["id"])
130                        
131            print '</table><br />';            print '</table><br />';
132    
133            print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';            /* Commentaires */
134              $sql = "SELECT c.commentaire";
135              $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_commentaire as c";
136              $sql .= " WHERE c.fk_soc = ".$soc->id;
137              $sql .= " ORDER BY c.datec DESC LIMIT 2";      
138              $resql = $db->query($sql);
139              if ($resql)
140                {
141                  $num = $db->num_rows($resql);
142                  if ($num > 0)
143                    {
144                      print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
145                      print '<tr class="liste_titre"><td>2 Derniers commentaires</td></tr>';              
146                      while ($obj = $db->fetch_object($resql))
147                        {
148                          $var=!$var;
149                          print "<tr $bc[$var]><td>";
150                          print stripslashes($obj->commentaire)."</td>\n";
151                          print "</tr>\n";
152                        }
153                      print "</table><br />";
154                    }
155                  $db->free($resql);
156                }
157              else
158                {
159                  print $db->error() . ' ' . $sql;
160                }
161              
162                        
163            /* Contrats */            /* Contrats */
164                          print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';      
165            $sql = "SELECT count(l.rowid) as cc, c.rowid, c.ref, c.statut";            $sql = "SELECT count(l.rowid) as cc, c.rowid, c.ref, c.statut";
166            $sql .= ", ss.nom as agence, ss.code_client, ss.ville";            $sql .= ", ss.nom as agence, ss.code_client, ss.ville";
167            $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";            $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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