reglages de bug
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
require_once(__DIR__ . '/../Class/class.newFiche.php');
|
||||
|
||||
$typeUser = $_SESSION['uType']; //visiteur ou comptable
|
||||
$typeUser = 'visiteur';//$_SESSION['uType']; //visiteur ou comptable
|
||||
$userId = $_SESSION['uId']; //exemple: 'b34'
|
||||
|
||||
/**
|
||||
@@ -40,6 +39,8 @@ if (isset($_GET['currentList'])) {
|
||||
//Date du header en français
|
||||
try {
|
||||
//sudo timedatectl set-local-rtc 1
|
||||
//sudo apt install php8.2-intl
|
||||
//sudo service apache2 restart
|
||||
$format = new IntlDateFormatter(
|
||||
'fr_FR',
|
||||
IntlDateFormatter::FULL,
|
||||
@@ -48,14 +49,12 @@ try {
|
||||
IntlDateFormatter::GREGORIAN,
|
||||
'MMMM Y'
|
||||
);
|
||||
$dateHeader = $format->format($dateFormat);
|
||||
$dateHeader = $format->format($dateTimeStamp);
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
$dateHeader = date('F Y', $dateTimeStamp);
|
||||
}
|
||||
|
||||
//$date = '202312'; //TESTVAR
|
||||
|
||||
//Instance de l'objet newFiche qui gère toute la partie bdd
|
||||
$newFiche = new Class_newFiche($pdo, $userId, $date);
|
||||
|
||||
@@ -81,7 +80,6 @@ $totalFraisFiche = $newFiche->getMontantValide();
|
||||
* ETAT DE LA FICHE
|
||||
*/
|
||||
$status = $newFiche->getStatus();
|
||||
$status = 'CR'; //créé
|
||||
$disabled = ($status !== 'CR') ? 'disabled' : '';
|
||||
|
||||
include(__DIR__ . '/../vues/v_newFiche.php');
|
||||
|
Reference in New Issue
Block a user