From 6f8530a2d4affb56118a458393f2f9c0c98bd9f4 Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Thu, 19 Jun 2014 02:02:35 +0200 Subject: [PATCH] add buttons for factures --- controller/fact.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/fact.php b/controller/fact.php index 3af3cbd..fa39b52 100644 --- a/controller/fact.php +++ b/controller/fact.php @@ -24,7 +24,9 @@ switch($action) { case "detailFacture": // TODO: Ajouter bouton payer // TODO: Ajouter résumé de la facture (client, prix etc... ) - // TODO: Ajouter 3 boutons: "Ajouter Prestation", "Ajouter Produit", "Ajouter Medicament/Ordonnance" + echo '<a href="'.$base_url.$page.'/addPresta'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter une Prestation</a>'; + echo '<a href="'.$base_url.$page.'/addProduit'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter un Produit</a>'; + echo '<a href="'.$base_url.$page.'/addOrd'.'?factId='.$_GET["id"].'" type="button" class="btn btn-success">Ajouter une Ordonnance</a>'; $list = LigneFacture::getList("Détails de la facture", $_GET["id"]); include 'view/list.php'; break; -- GitLab