Look: Modif esthtiques mineures

This commit is contained in:
Laurent Destailleur 2005-10-17 17:07:30 +00:00
parent b1c26e984e
commit 2744a39d84
2 changed files with 37 additions and 25 deletions

View File

@ -39,22 +39,25 @@ $langs->load("companies");
/*
*
* Visualisation de la fiche
*
*/
llxHeader();
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Card");
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/info.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Info");
$h++;
dolibarr_fiche_head($head, $hselected, $langs->trans("Payment").": ".$_GET["id"]);
print '<div class="tabs">';
print '<a href="fiche.php?id='.$_GET["id"].'" id="active" class="tab">'.$langs->trans("Payment").'</a>';
print '<a class="tab" href="info.php?id='.$_GET["id"].'">'.$langs->trans("Info").'</a>';
print '</div>';
print '<div class="tabBar">';
/*
* Visualisation de la fiche
*
*/
$facture = new FactureFournisseur($db);
$paiement = new PaiementFourn($db);
@ -70,7 +73,6 @@ if ($paiement->fetch($_GET["id"], $user) == 0)
*/
if ($_GET["action"] == 'delete')
{
print '<br>';
$html->form_confirm("fiche.php?id=$paiement->id","Supprimer le paiement","Etes-vous sûr de vouloir supprimer ce paiement ?","confirm_delete");
print '<br>';
@ -78,14 +80,11 @@ if ($paiement->fetch($_GET["id"], $user) == 0)
if ($_GET["action"] == 'valide')
{
print '<br>';
$html->form_confirm("fiche.php?id=$paiement->id","Valider le paiement","Etes-vous sûr de vouloir valider ce paiment, auncune modification n'est possible une fois le paiement validé ?","confirm_valide");
print '<br>';
}
print '<br>';
print '<table class="noborder" width="100%">';
print '<tr><td valign="top">';

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -18,12 +18,12 @@
*
* $Id$
* $Source$
*
*/
/*! \file htdocs/compta/paiement/info.php
/**
\file htdocs/fourn/paiement/info.php
\ingroup facture
\brief Onglet info d'un paiement
\brief Onglet info d'un paiement fournisseur
\version $Revision$
*/
@ -34,12 +34,19 @@ $langs->load("bills");
$langs->load("companies");
llxHeader();
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Card");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/info.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Info");
$hselected = $h;
$h++;
dolibarr_fiche_head($head, $hselected, $langs->trans("Payment").": ".$_GET["id"]);
print '<div class="tabs">';
print '<a class="tab" href="fiche.php?id='.$_GET["id"].'">'.$langs->trans("Payment").'</a>';
print '<a class="tab" href="info.php?id='.$_GET["id"].'" id="active">'.$langs->trans("Info").'</a>';
print '</div>';
print '<div class="tabBar">';
/*
* Visualisation de la fiche
@ -54,7 +61,13 @@ print '<table width="100%"><tr><td>';
dolibarr_print_object_info($paiement);
print '</td></tr></table>';
print '</div>';
// Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent
print '<div class="tabsAction">';
print '</div>';
$db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>");
llxFooter('$Date$ - $Revision$');
?>