Skip to content
Snippets Groups Projects
Commit 5994ee88 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Mise aux normes CSS

parent eaa9a9f5
No related branches found
No related tags found
No related merge requests found
<?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>
*
......@@ -35,7 +35,6 @@ require("./paiementfourn.class.php");
$langs->load("bills");
$langs->load("companies");
/*
* Scurit accs 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) )
......@@ -394,7 +399,6 @@ else
else
{
/*
* Fiche facture en mode edition
*
*/
$h=0;
......@@ -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.'&amp;action=edit">'.$langs->trans('Edit').'</a>';
print '<a class="butAction" href="fiche.php?facid='.$fac->id.'&amp;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.'&amp;action=create">'.$langs->trans("DoPaiement").'</a>';
print '<a class="butAction" href="paiement.php?facid='.$fac->id.'&amp;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&amp;action=payed\">".$langs->trans('ClassifyPayed')."</a>";
print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&amp;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&amp;action=valid\">".$langs->trans('Valid')."</a>";
print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&amp;action=valid\">".$langs->trans('Valid')."</a>";
}
else
{
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&amp;action=copy&amp;socid=$fac->socidp\">".$langs->trans('Copy')."</a>";
print "<a class=\"butAction\" href=\"fiche.php?facid=$fac->id&amp;action=copy&amp;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.'&amp;action=delete">'.$langs->trans("Delete").'</a>';
print '<a class="butActionDelete" href="index.php?facid='.$fac->id.'&amp;action=delete">'.$langs->trans("Delete").'</a>';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment