Revert "V8 style"
This commit is contained in:
parent
71e8d4c728
commit
88e76b6127
@ -8,7 +8,6 @@
|
|||||||
* Copyright (C) 2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
|
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
|
||||||
* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2018 ThibaultFOUCART <support@ptibogxiv.net>
|
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -641,24 +640,36 @@ print '<td ';
|
|||||||
if (($action == 'add_paiement' && $src->id!=$source) or ($src->object=='source' && $src->card->three_d_secure=='required')) { print'class="opacitymedium"';}
|
if (($action == 'add_paiement' && $src->id!=$source) or ($src->object=='source' && $src->card->three_d_secure=='required')) { print'class="opacitymedium"';}
|
||||||
|
|
||||||
print' >';
|
print' >';
|
||||||
if ($src->object=='card')
|
if ($src->object=='card'){
|
||||||
{
|
if ($src->brand == 'Visa') {$brand='cc-visa';}
|
||||||
print img_credit_card($src->brand);
|
elseif ($src->brand == 'MasterCard') {$brand='cc-mastercard';}
|
||||||
|
elseif ($src->brand == 'American Express') {$brand='cc-amex';}
|
||||||
|
elseif ($src->brand == 'Discover') {$brand='cc-discover';}
|
||||||
|
elseif ($src->brand == 'JCB') {$brand='cc-jcb';}
|
||||||
|
elseif ($src->brand == 'Diners Club') {$brand='cc-diners-club';}
|
||||||
|
else {$brand='credit-card-alt';}
|
||||||
|
print '<span class="fa fa-'.$brand.' fa-3x fa-fw"></span>';
|
||||||
}
|
}
|
||||||
elseif ($src->object=='source' && $src->type=='card')
|
elseif ($src->object=='source' && $src->type=='card'){
|
||||||
{
|
if ($src->card->brand == 'Visa') {$brand='cc-visa';}
|
||||||
print img_credit_card($src->card->brand);
|
elseif ($src->card->brand == 'MasterCard') {$brand='cc-mastercard';}
|
||||||
|
elseif ($src->card->brand == 'American Express') {$brand='cc-amex';}
|
||||||
|
elseif ($src->card->brand == 'Discover') {$brand='cc-discover';}
|
||||||
|
elseif ($src->card->brand == 'JCB') {$brand='cc-jcb';}
|
||||||
|
elseif ($src->card->brand == 'Diners Club') {$brand='cc-diners-club';}
|
||||||
|
else {$brand='credit-card-alt';}
|
||||||
|
|
||||||
|
print '<span class="fa fa-'.$brand.' fa-3x fa-fw"></span>';
|
||||||
}
|
}
|
||||||
elseif ($src->object=='source' && $src->type=='sepa_debit')
|
elseif ($src->object=='source' && $src->type=='sepa_debit'){
|
||||||
{
|
print '<span class="fa fa-university fa-3x fa-fw"></span>';
|
||||||
print '<span class="fa fa-university fa-2x fa-fw"></span>';
|
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td ';
|
print '<td ';
|
||||||
if (($action == 'add_paiement' && $src->id!=$source) or ($src->object=='source' && $src->card->three_d_secure=='required')) { print'class="opacitymedium"';}
|
if (($action == 'add_paiement' && $src->id!=$source) or ($src->object=='source' && $src->card->three_d_secure=='required')) { print'class="opacitymedium"';}
|
||||||
print' >';
|
print' >';
|
||||||
if ($src->object=='card'){
|
if ($src->object=='card'){
|
||||||
print '....'.$src->last4.' - '.$src->exp_month.'/'.$src->exp_year.'';
|
print '**** '.$src->last4.'<br>Exp. '.$src->exp_month.'/'.$src->exp_year.'';
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
if ($src->country)
|
if ($src->country)
|
||||||
{
|
{
|
||||||
@ -669,7 +680,7 @@ print '</td><td>';
|
|||||||
else print img_warning().' <font class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).'</font>';
|
else print img_warning().' <font class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).'</font>';
|
||||||
}
|
}
|
||||||
elseif ($src->object=='source' && $src->type=='card'){
|
elseif ($src->object=='source' && $src->type=='card'){
|
||||||
print $src->owner->name.'<br>....'.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
print $src->owner->name.'<br>**** '.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
if ($src->card->country)
|
if ($src->card->country)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user