From ccb774d9a899f66bc91f0682a67d4244559af6f2 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 6 Sep 2003 16:08:52 +0000 Subject: [PATCH] Nettoyage du code --- htdocs/compta/tva/fiche.php | 74 ------------------------------------- 1 file changed, 74 deletions(-) diff --git a/htdocs/compta/tva/fiche.php b/htdocs/compta/tva/fiche.php index ddca7891e86..5685fc2e47d 100644 --- a/htdocs/compta/tva/fiche.php +++ b/htdocs/compta/tva/fiche.php @@ -188,81 +188,7 @@ print '
'; if ($id && $action == '') { - $htmls = new Form($db); - $propal = New Propal($db); - print ''; - print ''; - print '
'; - print_titre("Ajouter ma proposition"); - print ''; - print_titre("Ajouter aux autres propositions"); - print '
'; - $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price - p.remise as price, p.ref,".$db->pdate("p.datep")." as dp"; - $sql .= " FROM llx_societe as s, llx_propal as p"; - $sql .=" WHERE p.fk_soc = s.idp AND p.fk_statut = 0 AND p.fk_user_author = ".$user->id; - $sql .= " ORDER BY p.datec DESC, tms DESC"; - - if ( $db->query($sql) ) - { - $num = $db->num_rows(); - $i = 0; - print ''; - - $var=True; - - while ($i < $num) - { - $objp = $db->fetch_object( $i); - - $var=!$var; - print ""; - print "\n"; - print "\n"; - - print "\n"; - - print ''; - print ''; - - print ""; - print ''; - - - print "\n"; - - $i++; - } - - print "
propalid\">$objp->refidp\">$objp->nom"; - - print strftime("%d %B %Y",$objp->dp)."
"; - print ''; - print ''; - print ''; - print ''; - print "
"; - $db->free(); - } - - print '
'; - - $otherprop = $propal->liste_array(1, '<>'.$user->id); - if (sizeof($otherprop)) - { - print '
'; - print ''; - print ''; - print ""; - print '
Autres Propositions"; - $htmls->select_array("propalid", $otherprop); - print ''; - print ''; - print ''; - print ''; - print "
'; - } - print '
'; }