From 28503baf43faa31995540ea2cf64be0052f957d0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 4 Aug 2003 12:45:59 +0000 Subject: [PATCH] remplace index.php3 .php --- htdocs/fourn/facture/fiche.php3 | 23 +++++++++-------------- htdocs/fourn/fiche.php3 | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php3 b/htdocs/fourn/facture/fiche.php3 index 1ff2c616fd3..b274ab0b913 100644 --- a/htdocs/fourn/facture/fiche.php3 +++ b/htdocs/fourn/facture/fiche.php3 @@ -34,9 +34,6 @@ $db = new Db(); $html = new Form($db); -$yn[1] = "oui"; -$yn[0] = "non"; - if ($action == 'valid') { $sql = "UPDATE llx_facture_fourn set fk_statut = 1 WHERE rowid = $facid ;"; @@ -70,7 +67,6 @@ if ($action == 'update') } - if ($action == 'add') { $datefacture = $db->idate(mktime(12, @@ -105,10 +101,8 @@ if ($action == 'add') $facfou->add_ligne($$label, $$amount, $$tauxtva, $$qty); } } - if ($facfou->create($user)) - { - Header("Location: index.php3"); - } + $facid = $facfou->create($user); + } if ($action == 'del_ligne') @@ -306,7 +300,7 @@ else * */ print '

'; - print ''; + print ''; print ''; print ''; print ''; @@ -360,7 +354,7 @@ else */ print '
LibelléP.U. HTQtyTotal HT
LibelléP.U. HTQtyTotal HTTaux TVATVATotal TTC 
'; print ""; - print "\n"; + print "\n"; print ""; print "\n"; print ""; @@ -385,7 +379,8 @@ else * Paiements */ $sql = "SELECT ".$db->pdate("datep")." as dp, p.amount, c.libelle as paiement_type, p.num_paiement, p.rowid"; - $sql .= " FROM llx_paiementfourn as p, c_paiement as c WHERE p.fk_facture_fourn = ".$fac->id." AND p.fk_paiement = c.id"; + $sql .= " FROM llx_paiementfourn as p, c_paiement as c "; + $sql .= " WHERE p.fk_facture_fourn = ".$fac->id." AND p.fk_paiement = c.id"; $result = $db->query($sql); @@ -435,8 +430,8 @@ else * Lignes * */ - print '

Sociétésocidp\">$obj->socnomsocidp\">Autres facturessocidp\">Autres factures
Date".strftime("%A %d %B %Y",$obj->df)."
Libelle$obj->libelle
'; - print ''; + print '

LibelléP.U. HTQtyTotal HT
'; + print ''; print ''; print ''; print ''; @@ -466,7 +461,7 @@ else if ($obj->statut == 0 && $user->societe_id == 0) { - print ''; + print ''; } elseif ($obj->statut == 1 && $obj->paye == 0 && $user->societe_id == 0) { diff --git a/htdocs/fourn/fiche.php3 b/htdocs/fourn/fiche.php3 index 118886441ec..e717d6e57d2 100644 --- a/htdocs/fourn/fiche.php3 +++ b/htdocs/fourn/fiche.php3 @@ -250,7 +250,7 @@ if ($socid > 0) { if ($action == 'changevalue') { print "
"; - print "idp\" method=\"post\">"; + print "idp\" method=\"post\">"; print ""; print "Cette société est un cabinet de recrutement : "; print "
LibelléP.U. HTQtyTotal HTTaux TVATVATotal TTC
[Supprimer][Supprimer]