diff --git a/htdocs/comm/prospect/prospects.php b/htdocs/comm/prospect/prospects.php index d0e74c50c52..afed5bcdea9 100644 --- a/htdocs/comm/prospect/prospects.php +++ b/htdocs/comm/prospect/prospects.php @@ -43,7 +43,7 @@ $offset = $conf->liste_limit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; -$sql = "SELECT s.idp, s.nom, s.ville, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, st.libelle as stcomm, s.prefix_comm "; +$sql = "SELECT s.idp, s.nom, s.ville, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, st.libelle as stcomm, s.prefix_comm, s.fk_stcomm "; $sql .= ", d.nom as departement"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st "; $sql .= " , ".MAIN_DB_PREFIX."c_departements as d"; @@ -140,7 +140,7 @@ if ($result) print_liste_field_titre("Département",$PHP_SELF,"s.fk_departement"); print ""; print_liste_field_titre("Statut",$PHP_SELF,"s.fk_stcomm"); - print " "; + print ' '; print "\n"; $var=True; @@ -151,7 +151,7 @@ if ($result) $var=!$var; print ""; - print ''; + print ''; print img_file(); print " idp\">$obj->nom\n"; print "".$obj->ville." \n"; @@ -174,6 +174,25 @@ if ($result) { print " \n"; } + + $sts = array(-1,0,1,2); + foreach ($sts as $key => $value) + { + if ($value <> $obj->fk_stcomm) + { + print ''; + print ''.$alt.''; + print ''; + } + else + { + print ''; + } + } + + + + print "\n"; $i++; }