'; print '
'; print $langs->trans('SalesRepresentatives'); print ''; if ($user->rights->societe->creer && $user->rights->societe->client->voir) print ''.img_edit().''; else print ' '; print '
'; print ''; print ''; $listsalesrepresentatives=$object->getSalesRepresentatives($user); $nbofsalesrepresentative=count($listsalesrepresentatives); if ($nbofsalesrepresentative > 3) // We print only number { print ''; print $nbofsalesrepresentative; print ''; } else if ($nbofsalesrepresentative > 0) { $userstatic=new User($db); $i=0; foreach($listsalesrepresentatives as $val) { $userstatic->id=$val['id']; $userstatic->lastname=$val['lastname']; $userstatic->firstname=$val['firstname']; print $userstatic->getNomUrl(1); $i++; if ($i < $nbofsalesrepresentative) print ', '; } } else print $langs->trans("NoSalesRepresentativeAffected"); print '';