Exemplo n.º 1
0
     // 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>';
     print '<td align="center">';
     print $prospectstatic->LibStatut($prospectstatic->status, 3);
     print '</td>';
     print '<td></td>';
     $parameters = array('obj' => $obj);
     $formconfirm = $hookmanager->executeHooks('printFieldListValue', $parameters);
     // Note that $action and $object may have been modified by hook
     print "</tr>\n";
     $i++;
 }
 if ($num > $conf->liste_limit || $page > 0) {
     print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords);
 }
 print "</table>";
 print "</form>";
 $db->free($resql);
 $parameters = array('sql' => $sql);