diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index b1646546f6b..c1527bf455b 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -167,6 +167,38 @@ if ( $db->query($sql) ) print "
"; } } +/* + * Sociétés à contacter + * + */ +$sql = "SELECT s.nom, s.idp"; +$sql .= " FROM ".MAIN_DB_PREFIX."societe as s"; +$sql .= " WHERE s.fk_stcomm = 1"; +$sql .= " ORDER BY s.tms ASC"; +$sql .= $db->plimit(5, 0); + +if ( $db->query($sql) ) +{ + $num = $db->num_rows(); + $i = 0; + if ($num > 0 ) + { + print ''; + print ''; + + while ($i < $num) + { + $obj = $db->fetch_object( $i); + $var=!$var; + print "'; + $i++; + } + print "
Sociétés à contacter
rowid."\">"; + print img_file(); + print ' '.$obj->nom.'

"; + } +} + print ''; print '';