Mise en conformité

This commit is contained in:
Rodolphe Quiedeville 2003-06-21 14:23:34 +00:00
parent 80c057bcaa
commit df59ce1d5a

View File

@ -85,7 +85,16 @@ $pagenext = $page + 1;
* *
*/ */
print "<P>"; print '<p><TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
print '<TR class="liste_titre">';
print "<TD>";
print_liste_field_titre("Titre",$PHP_SELF,"p.title");
print "</td>";
print "<TD>Réf</TD><td>";
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print "</td></TR>\n";
$sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title,".$db->pdate("p.dateo")." as do"; $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 .= " FROM llx_societe as s, llx_projet as p";
$sql .= " WHERE p.fk_soc = s.idp"; $sql .= " WHERE p.fk_soc = s.idp";
@ -101,15 +110,6 @@ if ( $db->query($sql) )
{ {
$num = $db->num_rows(); $num = $db->num_rows();
$i = 0; $i = 0;
print '<p><TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
print '<TR class="liste_titre">';
print "<TD>";
print_liste_field_titre("Titre",$PHP_SELF,"p.title");
print "</td>";
print "<TD>Réf</TD><td>";
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print "</td></TR>\n";
while ($i < $num) while ($i < $num)
{ {
@ -125,7 +125,6 @@ if ( $db->query($sql) )
$i++; $i++;
} }
print "</TABLE>";
$db->free(); $db->free();
} }
else else
@ -133,6 +132,9 @@ else
print $db->error(); print $db->error();
} }
print "</table>";
$db->close(); $db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>"); llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
?> ?>