From 5994ee882ef0e8ad4fda70c54fced857eaea1665 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Tue, 5 Apr 2005 08:47:43 +0000 Subject: [PATCH] Mise aux normes CSS --- htdocs/fourn/facture/fiche.php | 38 +++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index c75775bab4a..0cda3774f04 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1,5 +1,5 @@ <?php -/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> +/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Christophe Combelles <ccomb@free.fr> * @@ -23,10 +23,10 @@ */ /** - \file htdocs/fourn/facture/fiche.php - \ingroup facture - \brief Page des la fiche facture fournisseur - \version $Revision$ + \file htdocs/fourn/facture/fiche.php + \ingroup facture + \brief Page des la fiche facture fournisseur + \version $Revision$ */ require("./pre.inc.php"); @@ -35,7 +35,6 @@ require("./paiementfourn.class.php"); $langs->load("bills"); $langs->load("companies"); - /* * S�curit� acc�s client */ @@ -211,6 +210,12 @@ if ($_GET["action"] == 'create' or $_GET["action"] == 'copy') $sql = "SELECT s.nom, s.prefix_comm, s.idp"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql .= " WHERE s.fournisseur = 1"; + if ($_GET["socid"] > 0 ) + { + $sql .= " AND s.idp =".$_GET["socid"]; + } + + $sql .= " ORDER BY s.nom ASC"; if ( $db->query($sql) ) @@ -393,10 +398,9 @@ else } else { - /* - * Fiche facture en mode edition - * - */ + /* + * + */ $h=0; $head[$h][0] = "fiche.php?facid=".$fac->id; @@ -556,22 +560,22 @@ else { if ($_GET["action"] == "edit") { - print '<a class="tabAction" href="fiche.php?facid='.$fac->id.'">'.$langs->trans("Cancel").'</a>'; + print '<a class="butAction" href="fiche.php?facid='.$fac->id.'">'.$langs->trans("Cancel").'</a>'; } else { - print '<a class="tabAction" href="fiche.php?facid='.$fac->id.'&action=edit">'.$langs->trans('Edit').'</a>'; + print '<a class="butAction" href="fiche.php?facid='.$fac->id.'&action=edit">'.$langs->trans('Edit').'</a>'; } } if ($fac->statut == 1 && $fac->paye == 0 && $user->societe_id == 0) { - print '<a class="tabAction" href="paiement.php?facid='.$fac->id.'&action=create">'.$langs->trans("DoPaiement").'</a>'; + print '<a class="butAction" href="paiement.php?facid='.$fac->id.'&action=create">'.$langs->trans("DoPaiement").'</a>'; } if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->societe_id == 0) { - print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=payed\">".$langs->trans('ClassifyPayed')."</a>"; + print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&action=payed\">".$langs->trans('ClassifyPayed')."</a>"; } if ($user->societe_id == 0) @@ -579,11 +583,11 @@ else if ($fac->statut == 0) { if ($_GET["action"] <> "edit") - print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=valid\">".$langs->trans('Valid')."</a>"; + print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&action=valid\">".$langs->trans('Valid')."</a>"; } else { - print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=copy&socid=$fac->socidp\">".$langs->trans('Copy')."</a>"; + print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&action=copy&socid=$fac->socidp\">".$langs->trans('Copy')."</a>"; } } @@ -591,7 +595,7 @@ else { if ($_GET["action"] != "edit") { - print '<a class="butDelete" href="index.php?facid='.$fac->id.'&action=delete">'.$langs->trans("Delete").'</a>'; + print '<a class="butActionDelete" href="index.php?facid='.$fac->id.'&action=delete">'.$langs->trans("Delete").'</a>'; } } -- GitLab