*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
| '.$langs->trans('Ref').' | '; // Define a complementary filter for search of next/prev ref. $projectsListId = $project->getProjectsAuthorizedForUser($user,$mine,1); $project->next_prev_filter=" rowid in (".$projectsListId.")"; print $html->showrefnav($project,'ref',$linkback,1,'ref','ref',''); print ' | ||
| '.$langs->trans("Label").' | '.$project->title.' | ||
| ".$langs->trans("Company")." | "; print ''; if ($project->societe->id > 0) print $project->societe->getNomUrl(1); else print ' '; print ' | ||
| '.$langs->trans("Visibility").' | '; if ($project->public) print $langs->trans('SharedProject'); else print $langs->trans('PrivateProject'); print ' | ||
| '.$langs->trans("Status").' | '.$project->getLibStatut(4).' | ||
| '.$langs->trans("Source").' | '; print ''.$langs->trans("Company").' | '; print ''.$langs->trans("Contacts").' | '; print ''.$langs->trans("ContactType").' | '; print ''; print " | ||
| '.$langs->trans("Source").' | '; print ''.$langs->trans("Company").' | '; print ''.$langs->trans("Contacts").' | '; print ''.$langs->trans("ContactType").' | '; print ''.$langs->trans("Status").' | '; print ''; print " | |
| '; if ($tab[$i]['source']=='internal') print $langs->trans("User"); if ($tab[$i]['source']=='external') print $langs->trans("ThirdPartyContact"); print ' | '; // Societe print ''; if ($tab[$i]['socid'] > 0) { $companystatic->fetch($tab[$i]['socid']); print $companystatic->getNomUrl(1); } if ($tab[$i]['socid'] < 0) { print $conf->global->MAIN_INFO_SOCIETE_NOM; } if (! $tab[$i]['socid']) { print ' '; } print ' | '; // Contact print ''; if ($tab[$i]['source']=='internal') { $userstatic->id=$tab[$i]['id']; $userstatic->nom=$tab[$i]['nom']; $userstatic->prenom=$tab[$i]['firstname']; print $userstatic->getNomUrl(1); } if ($tab[$i]['source']=='external') { $contactstatic->id=$tab[$i]['id']; $contactstatic->name=$tab[$i]['nom']; $contactstatic->firstname=$tab[$i]['firstname']; print $contactstatic->getNomUrl(1); } print ' | '; // Type de contact print ''.$tab[$i]['libelle'].' | '; // Statut print ''; // Activation desativation du contact if ($project->statut >= 0 && $userAccess) print 'id.'&action=swapstatut&ligne='.$tab[$i]['rowid'].'">'; print $contactstatic->LibStatut($tab[$i]['status'],3); if ($project->statut >= 0 && $userAccess) print ''; print ' | '; // Icon update et delete print ''; if ($user->rights->projet->creer && $userAccess) { print ' '; print 'id.'&action=deleteline&lineid='.$tab[$i]['rowid'].'">'; print img_delete(); print ''; } print ' | '; print "|