From 37ab136be8b5e12669402e15f441eb2eed6346bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Apr 2005 20:36:33 +0000 Subject: [PATCH] Fix: Lien invalide + normalisation du code --- htdocs/compta/fiche.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index fc049d230a0..49cc80ae29e 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -21,7 +21,8 @@ * */ -/** \file htdocs/compta/fiche.php +/** + \file htdocs/compta/fiche.php \ingroup compta \brief Page de fiche compta \version $Revision$ @@ -372,6 +373,7 @@ if ($socid > 0) } if ($conf->deplacement->enabled) { + $langs->load("trips"); print "id&action=create\">".$langs->trans("AddTrip").""; } } @@ -414,9 +416,13 @@ if ($socid > 0) print ' '; print ""; - $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = ".$societe->id." ORDER by p.datec"; + $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note"; + $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p"; + $sql.= " WHERE p.fk_soc = ".$societe->id; + $sql.= " ORDER by p.datec"; + $result = $db->query($sql); - $i = 0 ; $num = $db->num_rows(); + $i = 0 ; $num = $db->num_rows($result); $var=1; while ($i < $num) { @@ -459,7 +465,7 @@ if ($socid > 0) print ''; print ''; - $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, u.code, a.propalrowid, a.fk_user_author, fk_contact, u.rowid "; + $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, a.propalrowid, a.fk_user_author, fk_contact, u.code, u.rowid "; $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u "; $sql .= " WHERE a.fk_soc = $societe->id "; $sql .= " AND u.rowid = a.fk_user_author"; @@ -516,7 +522,7 @@ if ($socid > 0) } /* */ - print ''; + print ''; print "\n"; $i++; }
'.$langs->trans("ActionsDone").'
'.$obj->code.''.$obj->code.'