diff --git a/htdocs/comm/projet/index.php3 b/htdocs/comm/projet/index.php3 index a97a5abb5c3..1c61e7166ed 100644 --- a/htdocs/comm/projet/index.php3 +++ b/htdocs/comm/projet/index.php3 @@ -85,7 +85,16 @@ $pagenext = $page + 1; * */ -print "

"; +print '

'; + +print ''; +print ""; +print "\n"; + $sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title,".$db->pdate("p.dateo")." as do"; $sql .= " FROM llx_societe as s, llx_projet as p"; $sql .= " WHERE p.fk_soc = s.idp"; @@ -101,15 +110,6 @@ if ( $db->query($sql) ) { $num = $db->num_rows(); $i = 0; - print '

"; +print_liste_field_titre("Titre",$PHP_SELF,"p.title"); +print "Réf"; +print_liste_field_titre("Société",$PHP_SELF,"s.nom"); +print "
'; - - print ''; - print ""; - print "\n"; while ($i < $num) { @@ -125,7 +125,6 @@ if ( $db->query($sql) ) $i++; } - print "
"; - print_liste_field_titre("Titre",$PHP_SELF,"p.title"); - print "Réf"; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print "
"; $db->free(); } else @@ -133,6 +132,9 @@ else print $db->error(); } +print ""; + + $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$"); ?>