From ae5bdc9236fcf7e081552397ca82f8e88cf6e5d7 Mon Sep 17 00:00:00 2001 From: erics <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 '</div>'; + print "</div>\n"; if ($user->societe_id == 0 && $_GET["action"] <> 'valid' && $_GET["action"] <> 'editline') { print "<div class=\"tabsAction\">\n"; - + // Valider if ($fac->statut == 0 && $num_lignes > 0) { if ($user->rights->facture->valider) { - print '<a class="tabAction" href="facture.php?facid='.$fac->id.'&action=valid">'.$langs->trans("Valid").'</a>'; + print " <a class=\"tabAction\" href=\"facture.php?facid=".$fac->id."&action=valid\">".$langs->trans("Valid")."</a>\n"; } } else @@ -1137,15 +1140,15 @@ else { if ($fac->paye == 0) { - print "<a class=\"tabAction\" href=\"facture.php?facid=$fac->id&action=pdf\">".$langs->trans("BuildPDF")."</a>"; + print " <a class=\"tabAction\" href=\"facture.php?facid=$fac->id&action=pdf\">".$langs->trans("BuildPDF")."</a>\n"; } else { - print "<a class=\"tabAction\" href=\"facture.php?facid=$fac->id&action=pdf\">".$langs->trans("RebuildPDF")."</a>"; + print " <a class=\"tabAction\" href=\"facture.php?facid=$fac->id&action=pdf\">".$langs->trans("RebuildPDF")."</a>\n"; } } } - + print " <a class=\"tabAction\" href=\"facture.php?facid=$fac->id&action=pdf\">".$langs->trans("RebuildPDF")."</a>\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 "<a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=presend\">".$langs->trans("Send")."</a>"; + print " <a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=presend\">".$langs->trans("Send")."</a>\n"; } // Envoyer une relance if ($fac->statut == 1 && price($resteapayer) > 0 && $user->rights->facture->envoyer) { - print "<a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=prerelance\">".$langs->trans("SendRemind")."</a>"; + print " <a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=prerelance\">".$langs->trans("SendRemind")."</a>\n"; } // Emettre paiement if ($fac->statut == 1 && $user->rights->facture->paiement) { - print "<a class=\"tabAction\" href=\"paiement.php?facid=".$fac->id."&action=create\">".$langs->trans("DoPaiement")."</a>"; + print " <a class=\"tabAction\" href=\"paiement.php?facid=".$fac->id."&action=create\">".$langs->trans("DoPaiement")."</a>\n"; } // Classer 'pay�' if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->rights->facture->paiement) { - print "<a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=payed\">".$langs->trans("ClassifyPayed")."</a>"; + print " <a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=payed\">".$langs->trans("ClassifyPayed")."</a>\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 "<a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=canceled\">".$langs->trans("ClassifyCanceled")."</a>"; + print " <a class=\"tabAction\" href=\"".$_SERVER["PHP_SELF"]."?facid=$fac->id&action=canceled\">".$langs->trans("ClassifyCanceled")."</a>\n"; } // R�currente @@ -1188,11 +1191,11 @@ else { if ($fac->statut > 0) { - print '<a class="tabAction" href="facture/fiche-rec.php?facid='.$fac->id.'&action=create">R�currente</a>'; + print " <a class=\"tabAction\" href=\"facture/fiche-rec.php?facid=".$fac->id."&action=create\">R�currente</a>\n"; } } - print "</div>"; + print "</div>\n"; } print "<p>\n"; -- GitLab