Ejemplo n.º 1
0
     $s .= $companystatic->getNomUrl(0, 'prospect');
 }
 if (!empty($conf->fournisseur->enabled) && $obj->fournisseur) {
     if ($s) {
         $s .= " / ";
     }
     $companystatic->name = $langs->trans("Supplier");
     $companystatic->name_alias = '';
     $s .= $companystatic->getNomUrl(0, 'supplier');
 }
 print $s;
 print '</td>';
 if (!empty($arrayfields['s.fk_prospectlevel']['checked'])) {
     // Prospect level
     print '<td align="center">';
     print $companystatic->getLibProspLevel();
     print "</td>";
 }
 if (!empty($arrayfields['s.fk_stcomm']['checked'])) {
     // Prospect status
     print '<td align="center" class="nowrap"><div class="nowrap">';
     print '<div class="inline-block">' . $companystatic->LibProspCommStatut($obj->stcomm_id, 2, $prospectstatic->cacheprospectstatus[$obj->stcomm_id]['label']);
     print '</div> - <div class="inline-block">';
     foreach ($prospectstatic->cacheprospectstatus as $key => $val) {
         $titlealt = 'default';
         if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) {
             $titlealt = $val['label'];
         }
         if ($obj->stcomm_id != $val['id']) {
             print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?stcommsocid=' . $obj->rowid . '&stcomm=' . $val['code'] . '&action=setstcomm' . $param . ($page ? '&page=' . urlencode($page) : '') . '">' . img_action($titlealt, $val['code']) . '</a>';
         }