From 5bf8cd6535171db6182a03753d2f0acfb5dc8cd4 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Feb 2004 09:30:26 +0000 Subject: [PATCH] Modifs liens --- htdocs/comm/prospect/index.php | 61 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index 629132c79f9..b1646546f6b 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -54,42 +54,41 @@ print ''; print '"; + $i++; } + print "
'; -if ($conf->propal->enabled) { - print '
'; - print ''; - print ''; - print "'; - print "
Rechercher une proposition
"; - print 'Num. :

\n"; - - $sql = "SELECT p.rowid, p.ref"; - $sql .= " FROM ".MAIN_DB_PREFIX."propal as p"; - $sql .= " WHERE p.fk_statut = 0"; - - if ( $db->query($sql) ) +if ($conf->propal->enabled) +{ + print '
'; + print ''; + print ''; + print "'; + print "
Rechercher une proposition
"; + print 'Num. :

\n"; + + $sql = "SELECT p.rowid, p.ref"; + $sql .= " FROM ".MAIN_DB_PREFIX."propal as p"; + $sql .= " WHERE p.fk_statut = 0"; + + if ( $db->query($sql) ) + { + $num = $db->num_rows(); + $i = 0; + if ($num > 0 ) { - $num = $db->num_rows(); - $i = 0; - if ($num > 0 ) + print ''; + print ""; + print ""; + + while ($i < $num) { - print '
Propositions commerciales brouillons
'; - print ""; - print ""; - - while ($i < $num) - { - $obj = $db->fetch_object( $i); - $var=!$var; - print ""; - $i++; - } - print "
Propositions commerciales brouillons
rowid."\">".$obj->ref."

"; + $obj = $db->fetch_object( $i); + $var=!$var; + print "
rowid."\">".$obj->ref."

"; } + } } - - /* * Actions commerciales a faire * @@ -119,7 +118,7 @@ if ( $db->query($sql) ) $var=!$var; print "".strftime("%d %b %Y",$obj->da).""; - print "id\">$obj->libelle $obj->label"; + print '$obj->libelle $obj->label"; print ''.$obj->sname.''; $i++; }