From ae5bdc9236fcf7e081552397ca82f8e88cf6e5d7 Mon Sep 17 00:00:00 2001 From: erics Date: Wed, 22 Dec 2004 20:19:24 +0000 Subject: [PATCH] =?UTF-8?q?affichage=20code=20source=20html=20indent=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index eeefa86371e..9fad32f9b66 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -433,6 +433,9 @@ if ($_GET["action"] == 'pdf') { // Generation de la facture définie dans /includes/modules/facture/modules_facture.php facture_pdf_create($db, $_GET["facid"]); + // Plus ajout des meta informations dans le même répertoire pour faciliter les + //recherches en texte plein (grep etc.) + facture_meta_create($db, $_GET["facid"]); } @@ -1117,17 +1120,17 @@ else * Fin Ajout ligne * */ - print ''; + print "\n"; if ($user->societe_id == 0 && $_GET["action"] <> 'valid' && $_GET["action"] <> 'editline') { print "
\n"; - + // Valider if ($fac->statut == 0 && $num_lignes > 0) { if ($user->rights->facture->valider) { - print ''.$langs->trans("Valid").''; + print " id."&action=valid\">".$langs->trans("Valid")."\n"; } } else @@ -1137,15 +1140,15 @@ else { if ($fac->paye == 0) { - print "id&action=pdf\">".$langs->trans("BuildPDF").""; + print " id&action=pdf\">".$langs->trans("BuildPDF")."\n"; } else { - print "id&action=pdf\">".$langs->trans("RebuildPDF").""; + print " id&action=pdf\">".$langs->trans("RebuildPDF")."\n"; } } } - + print " id&action=pdf\">".$langs->trans("RebuildPDF")."\n"; // Supprimer if ($fac->statut == 0 && $user->rights->facture->supprimer && $_GET["action"] != 'delete') { @@ -1155,32 +1158,32 @@ else // Envoyer if ($fac->statut == 1 && $user->rights->facture->envoyer) { - print "id&action=presend\">".$langs->trans("Send").""; + print " id&action=presend\">".$langs->trans("Send")."\n"; } // Envoyer une relance if ($fac->statut == 1 && price($resteapayer) > 0 && $user->rights->facture->envoyer) { - print "id&action=prerelance\">".$langs->trans("SendRemind").""; + print " id&action=prerelance\">".$langs->trans("SendRemind")."\n"; } // Emettre paiement if ($fac->statut == 1 && $user->rights->facture->paiement) { - print "id."&action=create\">".$langs->trans("DoPaiement").""; + print " id."&action=create\">".$langs->trans("DoPaiement")."\n"; } // Classer 'payé' if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->rights->facture->paiement) { - print "id&action=payed\">".$langs->trans("ClassifyPayed").""; + print " id&action=payed\">".$langs->trans("ClassifyPayed")."\n"; } // Classer 'abandonnée' (possible si validée et pas encore classer payée) if ($fac->statut == 1 && $fac->paye == 0 && $user->rights->facture->paiement) { - print "id&action=canceled\">".$langs->trans("ClassifyCanceled").""; + print " id&action=canceled\">".$langs->trans("ClassifyCanceled")."\n"; } // Récurrente @@ -1188,11 +1191,11 @@ else { if ($fac->statut > 0) { - print 'Récurrente'; + print " id."&action=create\">Récurrente\n"; } } - print "
"; + print "\n"; } print "

\n";