/[dolibarr]/dolibarr/htdocs/fourn/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/fourn/fiche.php

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

revision 1.50 by eldy, Fri Nov 11 16:37:54 2005 UTC revision 1.51 by hregis, Fri Dec 2 13:02:50 2005 UTC
# Line 347  if ( $societe->fetch($socid) ) Line 347  if ( $societe->fetch($socid) )
347    print '<tr class="liste_titre"><td><b>'.$langs->trans("Contact").'</b></td>';    print '<tr class="liste_titre"><td><b>'.$langs->trans("Contact").'</b></td>';
348    print '<td><b>Poste</b></td><td><b>'.$langs->trans("Tel").'</b></td>';    print '<td><b>Poste</b></td><td><b>'.$langs->trans("Tel").'</b></td>';
349    print "<td><b>".$langs->trans("Fax")."</b></td><td><b>".$langs->trans("EMail")."</b></td>";    print "<td><b>".$langs->trans("Fax")."</b></td><td><b>".$langs->trans("EMail")."</b></td>";
350    print "<td align=\"center\"><a href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&amp;action=create\">".$langs->trans("AddContact")."</a></td></tr>";    
351      if ($user->rights->societe->contact->creer)
352      {
353            print "<td align=\"center\"><a href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&amp;action=create\">".$langs->trans("AddContact")."</a></td>";
354      }
355      
356      print "</tr>";
357            
358    $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note";    $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note";
359    $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p";    $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p";
# Line 373  if ( $societe->fetch($socid) ) Line 379  if ( $societe->fetch($socid) )
379        print ' '.$obj->firstname.' '. $obj->name.'</a>&nbsp;';        print ' '.$obj->firstname.' '. $obj->name.'</a>&nbsp;';
380    
381        if ($obj->note)        if ($obj->note)
382          {                          {
383            print "<br>".nl2br($obj->note);                          print "<br>".nl2br($obj->note);
384          }                          }
385        print "</td>";        print "</td>";
386        print "<td>$obj->poste&nbsp;</td>";        print "<td>$obj->poste&nbsp;</td>";
387        print '<td><a href="../comm/action/fiche.php?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->phone.'</a>&nbsp;</td>';        print '<td><a href="../comm/action/fiche.php?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->phone.'</a>&nbsp;</td>';
388        print '<td><a href="../comm/action/fiche.php?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->fax.'</a>&nbsp;</td>';        print '<td><a href="../comm/action/fiche.php?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->fax.'</a>&nbsp;</td>';
389        print '<td><a href="../comm/action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->email.'</a>&nbsp;</td>';        print '<td><a href="../comm/action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->email.'</a>&nbsp;</td>';
390        print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&amp;id=$obj->idp\">".img_edit()."</a></td>";        
391          if ($user->rights->societe->contact->creer)
392                    {
393            print "<td align=\"center\"><a href=\"../contact/fiche.php?action=edit&amp;id=$obj->idp\">".img_edit()."</a></td>";
394            }
395            
396        print "</tr>\n";        print "</tr>\n";
397        $i++;        $i++;
398      }      }

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

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