r
This commit is contained in:
parent
9eac39ad5e
commit
06f4c05ad1
@ -1,10 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* sudo date --set "YYYY-MM-DD HH:MM:SS"
|
||||
* sudo apt install php8.2-intl
|
||||
* sudo service apache2 restart
|
||||
*/
|
||||
|
||||
require_once(__DIR__ . '/../Class/class.newFiche.php');
|
||||
|
||||
$typeUser = $_SESSION['uType']; //visiteur ou comptable
|
||||
@ -36,7 +33,7 @@ if (isset($_GET['currentList'])) {
|
||||
//Date du formulaire HF
|
||||
$dateFormHFMin = substr($date, 0, 4) . '-' . substr($date, 4) . '-01';
|
||||
// retourne le dernier jour du mois (30 ou 31)
|
||||
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m', $dateTimeStamp), 1, date('Y', $dateTimeStamp)));
|
||||
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m', $dateTimeStamp), 1, date('Y', $dateTimeStamp)));
|
||||
}
|
||||
|
||||
//Date du header en français
|
||||
@ -81,9 +78,9 @@ $totalFraisFiche = $newFiche->getMontantValide();
|
||||
*/
|
||||
$status = $newFiche->getStatus();
|
||||
if (
|
||||
($status['eId'] == 'CL' && $typeUser == 'comptable')
|
||||
($status['eId'] == 'CL' && $typeUser == 'comptable')
|
||||
|| ($status['eId'] == 'CR' && $typeUser == 'visiteur')
|
||||
){
|
||||
) {
|
||||
$disabled = '';
|
||||
} else {
|
||||
$disabled = 'disabled';
|
||||
|
Loading…
x
Reference in New Issue
Block a user