foreach ($historique as $h) { | foreach ($historique as $h) { | ||||
$html .= '<tr>' | $html .= '<tr>' | ||||
. '<td>' . date('d/m/Y H:i:s', strtotime($h->date)) . '</td>' | . '<td>' . date('d/m/Y H:i:s', strtotime($h->date)) . '</td>' | ||||
. '<td>' . Html::encode($h->userAction->nom . ' ' . $h->userAction->prenom) . '</td>' | |||||
. '<td>' . Html::encode($h->strUserAction()) . '</td>' | |||||
. '<td>' . $h->getStrLibelle() . '</td>' | . '<td>' . $h->getStrLibelle() . '</td>' | ||||
. '<td>' . ($h->isTypeDebit() ? '- '.$h->getMontant(true) : '') . '</td>' | . '<td>' . ($h->isTypeDebit() ? '- '.$h->getMontant(true) : '') . '</td>' | ||||
. '<td>' . ($h->isTypeCredit() ? '+ '.$h->getMontant(true) : '') . '</td>' | . '<td>' . ($h->isTypeCredit() ? '+ '.$h->getMontant(true) : '') . '</td>' |
<?php foreach($historique as $ch): ?> | <?php foreach($historique as $ch): ?> | ||||
<tr> | <tr> | ||||
<td><?= $ch->getDate(true) ; ?></td> | <td><?= $ch->getDate(true) ; ?></td> | ||||
<td><?php if(isset($ch->userAction)): echo Html::encode($ch->userAction->nom. ' '.$ch->userAction->prenom) ; else: echo 'Administrateur' ;endif; ?></td> | |||||
<td><?= Html::encode($ch->strUserAction()); ?></td> | |||||
<td><?= $ch->getStrLibelle(); ?></td> | <td><?= $ch->getStrLibelle(); ?></td> | ||||
<td> | <td> | ||||
<?php if($ch->isTypeDebit()): ?> | <?php if($ch->isTypeDebit()): ?> |
default: return 'Crédit pain' ; | default: return 'Crédit pain' ; | ||||
} | } | ||||
} | } | ||||
public function strUserAction() { | |||||
if($this->userAction) { | |||||
return $this->userAction->nom . ' ' . $this->userAction->prenom ; | |||||
} | |||||
else { | |||||
return 'Système' ; | |||||
} | |||||
} | |||||
} | } |
const STATUS_BOULANGER = 11; | const STATUS_BOULANGER = 11; | ||||
const STATUS_ADMIN = 13; | const STATUS_ADMIN = 13; | ||||
const ID_USER_SYSTEM = 0 ; | |||||
var $password_old; | var $password_old; | ||||
var $password_new; | var $password_new; | ||||
var $password_new_confirm; | var $password_new_confirm; |