Exemplo n.º 1
0
 $prospectstatic->id = $obj->rowid;
 $prospectstatic->nom = $obj->nom;
 $prospectstatic->status = $obj->status;
 $prospectstatic->code_client = $obj->code_client;
 $prospectstatic->client = $obj->client;
 $prospectstatic->fk_prospectlevel = $obj->fk_prospectlevel;
 print $prospectstatic->getNomUrl(1, 'prospect');
 print '</td>';
 print "<td>" . $obj->zip . "&nbsp;</td>";
 print "<td>" . $obj->town . "&nbsp;</td>";
 print '<td align="center">' . $obj->departement . '</td>';
 // Creation date
 print '<td align="center">' . dol_print_date($db->jdate($obj->datec)) . '</td>';
 // Level
 print '<td align="center">';
 print $prospectstatic->getLibProspLevel();
 print "</td>";
 // Statut
 print '<td align="center" class="nowrap">';
 print $prospectstatic->LibProspStatut($obj->fk_stcomm, 2);
 print "</td>";
 //$sts = array(-1,0,1,2,3);
 print '<td align="right" class="nowrap">';
 foreach ($sts as $key => $value) {
     if ($value != $obj->fk_stcomm) {
         print '<a href="' . $_SERVER["PHP_SELF"] . '?socid=' . $obj->rowid . '&amp;pstcomm=' . $value . '&amp;action=cstc&amp;' . $param . ($page ? '&amp;page=' . $page : '') . '">';
         print img_action(0, $value);
         print '</a>&nbsp;';
     }
 }
 print '</td>';