diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index ebc869c60bb..20a4453809a 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -41,7 +41,6 @@ if ($user->societe_id > 0) } -llxHeader(); function valeur($sql) { @@ -57,10 +56,13 @@ function valeur($sql) return $valeur; } + /* - * + * Affichage zone prospect */ +llxHeader(); + print_fiche_titre($langs->trans("ProspectionArea")); print ''; @@ -97,27 +99,27 @@ $sql .= " ORDER BY st.id"; $resql=$db->query($sql); if ($resql) { - $num = $db->num_rows($resql); - $i = 0; - if ($num > 0 ) - { - $var=true; - - print '
'; - print ''; - print ''; - while ($i < $num) + $num = $db->num_rows($resql); + $i = 0; + if ($num > 0 ) { - $obj = $db->fetch_object($resql); - $var=!$var; - print ""; - $i++; + $var=true; + + print '
'.$langs->trans("ProspectsByStatus").'
id."\">"; - print img_action($langs->trans("Show"),$obj->id).' '; - print $langs->trans("StatusProspect".$obj->id); - print "".$obj->cc."
'; + print ''; + print ''; + while ($i < $num) + { + $obj = $db->fetch_object($resql); + $var=!$var; + print "'; + $i++; + } + print "
'.$langs->trans("ProspectsByStatus").'
id."\">"; + print img_action($langs->trans("Show"),$obj->id).' '; + print $langs->trans("StatusProspect".$obj->id); + print ''.$obj->cc.'

"; } - print "
"; - } }