39 |
|
|
40 |
|
|
41 |
/* |
/* |
42 |
* |
* Visualisation de la fiche |
43 |
* |
* |
44 |
*/ |
*/ |
45 |
|
|
46 |
llxHeader(); |
llxHeader(); |
47 |
|
$h=0; |
48 |
|
|
49 |
|
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$_GET["id"]; |
50 |
|
$head[$h][1] = $langs->trans("Card"); |
51 |
|
$hselected = $h; |
52 |
|
$h++; |
53 |
|
|
54 |
|
$head[$h][0] = DOL_URL_ROOT.'/fourn/paiement/info.php?id='.$_GET["id"]; |
55 |
|
$head[$h][1] = $langs->trans("Info"); |
56 |
|
$h++; |
57 |
|
|
58 |
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Payment").": ".$_GET["id"]); |
59 |
|
|
|
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>'; |
|
60 |
|
|
|
print '<div class="tabBar">'; |
|
|
/* |
|
|
* Visualisation de la fiche |
|
|
* |
|
|
*/ |
|
61 |
$facture = new FactureFournisseur($db); |
$facture = new FactureFournisseur($db); |
62 |
$paiement = new PaiementFourn($db); |
$paiement = new PaiementFourn($db); |
63 |
|
|
73 |
*/ |
*/ |
74 |
if ($_GET["action"] == 'delete') |
if ($_GET["action"] == 'delete') |
75 |
{ |
{ |
|
print '<br>'; |
|
76 |
$html->form_confirm("fiche.php?id=$paiement->id","Supprimer le paiement","Etes-vous sūr de vouloir supprimer ce paiement ?","confirm_delete"); |
$html->form_confirm("fiche.php?id=$paiement->id","Supprimer le paiement","Etes-vous sūr de vouloir supprimer ce paiement ?","confirm_delete"); |
77 |
print '<br>'; |
print '<br>'; |
78 |
|
|
80 |
|
|
81 |
if ($_GET["action"] == 'valide') |
if ($_GET["action"] == 'valide') |
82 |
{ |
{ |
|
print '<br>'; |
|
83 |
$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"); |
$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"); |
84 |
print '<br>'; |
print '<br>'; |
85 |
|
|
86 |
} |
} |
87 |
|
|
|
print '<br>'; |
|
|
|
|
88 |
print '<table class="noborder" width="100%">'; |
print '<table class="noborder" width="100%">'; |
89 |
|
|
90 |
print '<tr><td valign="top">'; |
print '<tr><td valign="top">'; |