8 Commits

Author SHA1 Message Date
af3771e786 app ajout ficheAvalider 2024-01-11 11:41:51 +01:00
8aafdf565b menu ajout ficheAvalider 2024-01-11 10:58:15 +01:00
pierre renaudot
a2201a4eb3 Merge branch 'main' of https://gitea.lyc-lecastel.fr/pierre.renaudot/AP44 2024-01-11 09:14:14 +01:00
pierre renaudot
89273aced9 modification de la vue gestion fiche 2024-01-11 09:13:57 +01:00
4eac346ff2 ajout liste selon utilisateur 2024-01-11 09:13:35 +01:00
63eddbbc8b ajout liste gestion fiche 2024-01-09 13:04:51 +01:00
pierre renaudot
aa49401a47 bug correction 2024-01-09 10:52:03 +01:00
Pierr0
fcf292e823 correction bugs page newFiche 2024-01-07 16:26:43 +01:00
14 changed files with 247 additions and 88 deletions

View File

@@ -18,9 +18,38 @@ class Class_gestionFiche
return $result->fetchAll(); return $result->fetchAll();
} }
public function utilisateur(string $idUtilisateur): array public function get_ListesFiches(string $idUtilisateur): array
{ {
$req = ''; $req = 'SELECT "rMois", "rEtat", "rNbJustificatifs", ROUND("rMontantValide", 2) as "rMontantValide", "eLibelle"
FROM remboursement
INNER JOIN etat ON etat."eId"=remboursement."rEtat"
WHERE "rVisiteur"= :userId
ORDER BY "rMois" DESC';
$result = $this->pdo->prepare($req);
$result ->bindParam("userId", $idUtilisateur);
$result ->execute();
return $result->fetchAll();
}
public function dateComplete(string $date) : string
{
return substr($date, 0, 4) . '-' . substr($date, 4);
}
public function get_ficheAvalider() : array
{
$req = 'SELECT "rMois", "rVisiteur", "rEtat", ROUND("rMontantValide", 2) as "rMontantValide", "eLibelle", "uNom", "uPrenom"
from remboursement
INNER JOIN utilisateur ON utilisateur."uId"=remboursement."rVisiteur"
INNER JOIN etat ON etat."eId"=remboursement."rEtat"
where "rEtat"=\'CL\'
ORDER BY "rMois" ASC';
$result = $this->pdo->prepare($req);
$result ->execute();
return $result->fetchAll();
} }
} }

View File

@@ -175,12 +175,11 @@ class Class_newFiche
{ {
$req = 'UPDATE ligne_hors_forfait $req = 'UPDATE ligne_hors_forfait
SET "lhRefus" = :stateF SET "lhRefus" = :stateF
WHERE "rVisiteur" = :userId AND "rMois" = :monthF AND "lhId" = :idFrais;'; WHERE "lhId" = :idFrais;';
$result = $this->pdo->prepare($req); $result = $this->pdo->prepare($req);
$state = ($state) ? 'false' : 'true';
$result->bindParam(':stateF', $state); $result->bindParam(':stateF', $state);
$result->bindParam(':idFrais', $idFrais); $result->bindParam(':idFrais', $idFrais);
$result->bindParam(':userId', $this->userId);
$result->bindParam(':monthF', $this->month);
return $result->execute(); return $result->execute();
} }

View File

@@ -13,7 +13,7 @@ class Class_user
$this->pdo = $pDO->getPdoGsb(); $this->pdo = $pDO->getPdoGsb();
} }
public function connectUser(string $login, string $password): array public function connectUser(string $login, string $password): array|bool
{ {
$req = 'SELECT "uId", "uNom", "uPrenom", "uAdresse", "uCp", "uVille", "uSecteur", "uLabo", "parametre"."pLibelle" $req = 'SELECT "uId", "uNom", "uPrenom", "uAdresse", "uCp", "uVille", "uSecteur", "uLabo", "parametre"."pLibelle"
FROM utilisateur FROM utilisateur

View File

@@ -14,8 +14,8 @@ switch ($_GET['action']) {
//FRAIS FORFAITAIRES //FRAIS FORFAITAIRES
foreach ($_REQUEST['fraisF'] as $value) { foreach ($_REQUEST['fraisF'] as $value) {
$pdoNewFiche->updateFraisF( $pdoNewFiche->updateFraisF(
$value['quantité'], $value['quantité'],
intval($value['montant']), intval($value['montant']),
$value['id'] $value['id']
); );
} }
@@ -23,8 +23,8 @@ switch ($_GET['action']) {
foreach ($_REQUEST['fraisHF'] as $value) { foreach ($_REQUEST['fraisHF'] as $value) {
if ($value['id'] == NULL) { if ($value['id'] == NULL) {
$pdoNewFiche->addFraisHF( $pdoNewFiche->addFraisHF(
$value['libelle'], $value['libelle'],
$value['date'], $value['date'],
$value['montant'] $value['montant']
); );
} }
@@ -33,7 +33,13 @@ switch ($_GET['action']) {
case 'suprFraisHF': case 'suprFraisHF':
$pdoNewFiche->suprLigneHF($_GET['idFrais']); $pdoNewFiche->suprLigneHF($_GET['idFrais']);
break; break;
case 'refusFraisHF':
$pdoNewFiche->accceptFrais(
$_GET['idFrais'],
boolval($_GET['state'])
);
break;
default: default:
# code... # code...
break; break;

View File

@@ -6,6 +6,11 @@ if (isset($_POST['login']) && isset($_POST['password'])) {
//Récupère les données de l'utilisateur //Récupère les données de l'utilisateur
$data = $userClass->connectUser($_POST['login'], $_POST['password']); $data = $userClass->connectUser($_POST['login'], $_POST['password']);
if($data == false) {
header('location: index.php');
}
//Si l'utilisateur existe ou pas //Si l'utilisateur existe ou pas
if (count($data) === 0) { if (count($data) === 0) {
header('location: index.php?direction=connexion&msg=errorco'); header('location: index.php?direction=connexion&msg=errorco');

View File

@@ -0,0 +1,23 @@
<?php
$_SESSION["typeU"] = "comptable";
require_once(__DIR__ . '/../Class/class.gestionFiche.php');
$gestionFiche = new Class_gestionFiche($pdo);
$LesUtilisateurs = $gestionFiche->getLesUtilisateurs(); //RENVOIE LISTE USERS
if ($_SESSION["typeU"] == "comptable") {
if (isset($_REQUEST['selVisiteur'])) {
$userId = $_REQUEST['selVisiteur'];
} else {
$userId = $LesUtilisateurs[0]['uId'];
}
} else {
$userId = $_SESSION['uId'];
}
$lesFiches = $gestionFiche->get_ficheAvalider();
include("vues/v_fichesAvalider.php");

View File

@@ -1,9 +1,23 @@
<?php <?php
$_SESSION ["typeU"] = "comptable"; $_SESSION["typeU"] = "comptable";
require_once(__DIR__ . '/../Class/class.gestionFiche.php'); require_once(__DIR__ . '/../Class/class.gestionFiche.php');
$gestionFiche = new Class_gestionFiche($pdo); $gestionFiche = new Class_gestionFiche($pdo);
$LesUtilisateurs = $gestionFiche->getLesUtilisateurs(); //RENVOIE LISTE USERS $LesUtilisateurs = $gestionFiche->getLesUtilisateurs(); //RENVOIE LISTE USERS
if ($_SESSION["typeU"] == "comptable") {
if (isset($_REQUEST['selVisiteur'])) {
$userId = $_REQUEST['selVisiteur'];
} else {
$userId = $LesUtilisateurs[0]['uId'];
}
} else {
$userId = $_SESSION['uId'];
}
$lesFiches = $gestionFiche->get_ListesFiches($userId);
include("vues/v_gestionFiches.php"); include("vues/v_gestionFiches.php");

View File

@@ -1,43 +1,60 @@
<?php <?php
/**
* sudo date --set "YYYY-MM-DD HH:MM:SS"
*/
require_once(__DIR__ . '/../Class/class.newFiche.php'); require_once(__DIR__ . '/../Class/class.newFiche.php');
$typeUser = $_SESSION['uType']; //visiteur ou comptable $typeUser = $_SESSION['uType']; //visiteur ou comptable
//$typeUser = 'comptable';//$_SESSION['uType']; //visiteur ou comptable $typeUser = 'visiteur';//$_SESSION['uType']; //visiteur ou comptable
$userId = $_SESSION['uId']; //exemple: 'b34' $userId = $_SESSION['uId']; //exemple: 'b34'
/** /**
* Gestion de la date selon la vue à afficher * Gestion de la date selon la vue à afficher
*/ */
if (isset($_GET['currentList'])) { if (isset($_GET['currentList'])) {
//Date des req SQL et function //Date des req SQL et function
$date = date('Ym'); $date = date('Ym');
//Date du header en français //Timestamp de la date
try { $dateTimeStamp = strtotime(date('Y-m-\01'));
//sudo timedatectl set-local-rtc 1
$format = new IntlDateFormatter(
'fr_FR',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'Europe/Paris',
IntlDateFormatter::GREGORIAN,
'MMMM Y'
);
$dateHeader = $format->format(time());
} catch (\Throwable $th) {
$dateHeader = date('F Y');
}
//Date du formulaire HF //Date du formulaire HF
$dateFormHFMin = date('Y-m-\01'); $dateFormHFMin = date('Y-m-\01');
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m'), 1, date('Y'))); // retourne le dernier jour du mois (30 ou 31) $dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m'), 1, date('Y'))); // retourne le dernier jour du mois (30 ou 31)
} elseif (isset($_GET['dateListing'])) { } elseif (isset($_GET['dateListing'])) {
$date = $_GET['dateListing']; //Données pour nourire la vue
$userId = $_REQUEST['userId'];
$date = $_REQUEST['dateListing'];
//Timestamp de la date
$dateTimeStamp = strtotime(substr($date, 0, 4) . '-' . substr($date, 4) . '-01');
//Date du formulaire HF
$dateFormHFMin = substr($date, 0, 4) . '-' . substr($date, 4) . '-01';
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m', $dateTimeStamp), 1, date('Y', $dateTimeStamp))); // retourne le dernier jour du mois (30 ou 31)
}
//Date du header en français
try {
//sudo timedatectl set-local-rtc 1
$format = new IntlDateFormatter(
'fr_FR',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'Europe/Paris',
IntlDateFormatter::GREGORIAN,
'MMMM Y'
);
$dateHeader = $format->format($dateFormat);
} catch (\Throwable $th) {
$dateHeader = date('F Y', $dateTimeStamp);
} }
$date = '202312'; //TESTVAR //$date = '202312'; //TESTVAR
//Instance de l'objet newFiche qui gère toute la partie bdd //Instance de l'objet newFiche qui gère toute la partie bdd
$newFiche = new Class_newFiche($pdo, $userId, $date); $newFiche = new Class_newFiche($pdo, $userId, $date);

View File

@@ -13,7 +13,7 @@
Partie visiteur Partie visiteur
--> -->
<?php <?php
if($_SESSION['typeU'] == 'visiteur'): if($_SESSION['uType'] == 'visiteur'):
?> ?>
<li> <li>
<a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle"> <a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
@@ -34,7 +34,7 @@
<a href="#" class="nav-link px-0 align-middle"> <a href="#" class="nav-link px-0 align-middle">
<i class="fs-4 bi-table"></i> <span class="ms-1 d-none d-sm-inline">Visites</span></a> <i class="fs-4 bi-table"></i> <span class="ms-1 d-none d-sm-inline">Visites</span></a>
</li> </li>
<?php endif; if ($_SESSION['typeU'] == 'comptable'): ?> <?php endif; if ($_SESSION['uType'] == 'comptable'): ?>
<!-- <!--
Partie comptable Partie comptable
--> -->
@@ -48,7 +48,7 @@
</a> </a>
</li> </li>
<li> <li>
<a href="#" class="nav-link px-0"> <span class="d-none d-sm-inline">Historique</span> <a href="index.php?direction=ficheAvalider" class="nav-link px-0"> <span class="d-none d-sm-inline">fiches a vérifier</span>
</a> </a>
</li> </li>
</ul> </ul>

View File

@@ -88,9 +88,25 @@ $(document).ready(function () {
calcPrixTotalFrsHorsF(); calcPrixTotalFrsHorsF();
updatePrixTotal(); updatePrixTotal();
}) })
}) })
/**
* Refus d'un frais HF pour un comptable
*/
$(document).on('click', '.btnRefuseFraisHf', function () {
idFrais = $(this).parent().parent().attr('data-id')
fiche = $('#idFiche').attr('data-id')
etatLigne = $(this).attr('data-status')
console.log(etatLigne)
//set on refus
$.ajax({
// url: "../controleurs/c_actionFiche.php?action=refusFraisHF&fiche=" + fiche + "&idFrais=" + idFrais + "&state=" + etatLigne,
url: "controleurs/c_actionFiche.php?action=refusFraisHF&fiche=" + fiche + "&idFrais=" + idFrais + "&state=" + etatLigne,
method: "POST",
}).done(function () {
location.reload();
})
})
/** /**
* Supprimer fraisHf * Supprimer fraisHf
*/ */
@@ -100,7 +116,8 @@ $(document).on('click', '.btnSuprFraisHf', function () {
idFrais = $(this).parent().parent().attr('data-id') idFrais = $(this).parent().parent().attr('data-id')
//SUPPRIME DE LA BD //SUPPRIME DE LA BD
$.ajax({ $.ajax({
url: "../controleurs/c_actionFiche.php?action=suprFraisHF&fiche=" + fiche + "&idFrais=" + idFrais, url: "controleurs/c_actionFiche.php?action=suprFraisHF&fiche=" + fiche + "&idFrais=" + idFrais,
// url: "../controleurs/c_actionFiche.php?action=suprFraisHF&fiche=" + fiche + "&idFrais=" + idFrais,
method: "POST", method: "POST",
}) })
@@ -113,7 +130,7 @@ $(document).on('click', '.btnSuprFraisHf', function () {
* PARTIE ENVOIE DE LA FICHE * PARTIE ENVOIE DE LA FICHE
*/ */
$(document).on('click', '#sendFileBtn', function () { $(document).on('click', '#sendFileBtn', function () {
//FRAIS FORFAITAIRES //FRAIS FORFAITAIRES
var listeFraisF = [] var listeFraisF = []
$('tr.fraisForfaitaire').each(function () { $('tr.fraisForfaitaire').each(function () {
@@ -152,7 +169,8 @@ $(document).on('click', '#sendFileBtn', function () {
fiche = $('#idFiche').attr('data-id') fiche = $('#idFiche').attr('data-id')
$.ajax({ $.ajax({
url: "../controleurs/c_actionFiche.php?action=update&fiche=" + fiche, url: "controleurs/c_actionFiche.php?action=update&fiche=" + fiche,
// url: "../controleurs/c_actionFiche.php?action=update&fiche=" + fiche,
method: "POST", method: "POST",
data: data, data: data,
}).done(function () { }).done(function () {
@@ -166,7 +184,7 @@ $(document).on('click', '#sendFileBtn', function () {
function calcPrixTotalFrsF() { function calcPrixTotalFrsF() {
var prixTotal = 0; var prixTotal = 0;
$('td[id^="totalFrs-"]').each(function () { $('td.mttFrsTotal').each(function () {
prixTotal += parseFloat($(this).html().replace('€', '')) prixTotal += parseFloat($(this).html().replace('€', ''))
}) })
$('.prixTotalFrsF').html('<strong>TOTAL :</strong> ' + prixTotal.toFixed(2) + ' €') $('.prixTotalFrsF').html('<strong>TOTAL :</strong> ' + prixTotal.toFixed(2) + ' €')
@@ -177,6 +195,12 @@ function calcPrixTotalFrsF() {
*/ */
function calcPrixTotalFrsHorsF() { function calcPrixTotalFrsHorsF() {
console.log($('td#MttFrsHF').length)
if ($('td#MttFrsHF').length == 0) {
vf
}
var prixTotal = 0; var prixTotal = 0;
$('td#MttFrsHF').each(function () { $('td#MttFrsHF').each(function () {
prixTotal += parseFloat($(this).html().replace('€', '')) prixTotal += parseFloat($(this).html().replace('€', ''))

View File

@@ -71,6 +71,10 @@ if (!isset($_REQUEST['direction']) && !isset($_SESSION['uId'])) {
include(__DIR__ . "/controleurs/c_nouvelleFiche.php"); include(__DIR__ . "/controleurs/c_nouvelleFiche.php");
break; break;
case 'ficheAvalider':
include(__DIR__ . "/controleurs/c_ficheAvalider.php");
break;
default: default:
include("controleurs/c_homePage.php"); include("controleurs/c_homePage.php");
break; break;

35
vues/v_fichesAvalider.php Normal file
View File

@@ -0,0 +1,35 @@
<div class="col-11 d-flex mx-auto">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Mois</th>
<th scope="col">Nom Fiche</th>
<th scope="col">Total</th>
<th scope="col">Statut</th>
<th scope="col">Détails</th>
</tr>
</thead>
<tbody>
<?php foreach ($lesFiches as $uneFiche) { ?>
<tr>
<th scope="row">
<?= $gestionFiche->dateComplete($uneFiche['rMois']) ?>
</th>
<td>
<?= $uneFiche['uNom'] ?>
<?= $uneFiche['uPrenom'] ?>
</td>
<td>
<?= $uneFiche['rMontantValide'] ?> €
</td>
<td>
<?= $uneFiche['eLibelle'] ?>
</td>
<td><a
href="index.php?direction=nouvelleFiche&userId=<?= $userId ?>&dateListing=<?= $uneFiche['rMois'] ?>">voir</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>

View File

@@ -4,19 +4,29 @@
<?php <?php
if ($_SESSION['typeU'] != 'comptable') { if ($_SESSION['typeU'] != 'comptable') {
echo '<h3>Gérer mes fiches de frais</h3>'; echo '<h3>Gérer mes fiches de frais</h3>';
} else { } else { ?>
echo '<h3>Gérer les fiches de frais de :</h3>';
echo '<select class="form-select" name="selVisiteur" id="">';
foreach ($LesUtilisateurs as $key => $value) {
$id = $value['uId'];
$prenom = $value['uPrenom'];
$nom = $value['uNom'];
echo '<option value="' . $id . '">' . $nom . " " . $prenom . "</option>"; <form action="index.php?direction=gestionFiche" method="POST">
} <?php
echo '</select>'; echo '<h3>Gérer les fiches de frais de :</h3>';
} echo '<select class="form-select" name="selVisiteur" id="">';
foreach ($LesUtilisateurs as $key => $value) {
$id = $value['uId'];
$prenom = $value['uPrenom'];
$nom = $value['uNom'];
if ($id == $userId) {
echo '<option value="' . $id . '" selected>' . $nom . " " . $prenom . "</option>";
} else {
echo '<option value="' . $id . '">' . $nom . " " . $prenom . "</option>";
}
}
echo '</select>'; ?>
<button type="submit" class="btn btn-dark m-2" >Selectionner</button>
<!-- Fin du formulaire -->
<?php }
?> ?>
</div> </div>
</center> </center>
@@ -32,24 +42,22 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <?php foreach ($lesFiches as $uneFiche) { ?>
<th scope="row">Novembre</th> <tr>
<td>351 €</td> <th scope="row">
<td>en cours...</td> <?= $gestionFiche->dateComplete($uneFiche['rMois']) ?>
<td><a href="#">voir</a></td> </th>
</tr> <td>
<tr> <?= $uneFiche['rMontantValide'] ?> €
<th scope="row">Octobre</th> </td>
<td>1458 €</td> <td>
<td>en cours...</td> <?= $uneFiche['eLibelle'] ?>
<td><a href="#">voir</a></td> </td>
</tr> <td><a
<tr> href="index.php?direction=nouvelleFiche&userId=<?= $userId ?>&dateListing=<?= $uneFiche['rMois'] ?>">voir</a>
<th scope="row">Septembre</th> </td>
<td>1112 €</td> </tr>
<td>classé</td> <?php } ?>
<td><a href="#">voir</a></td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@@ -5,7 +5,8 @@
<?= $dateHeader ?> <?= $dateHeader ?>
</p> </p>
<p class="color-grey" id='idFiche' data-id="<?= $userId . '-' . $date ?>"> <p class="color-grey" id='idFiche' data-id="<?= $userId . '-' . $date ?>">
ID: <?= $userId . '-' . $date ?> ID:
<?= $userId . '-' . $date ?>
</p> </p>
</center> </center>
<br> <br>
@@ -32,8 +33,8 @@
<?= $value['fLibelle'] ?> <?= $value['fLibelle'] ?>
</th> </th>
<td> <td>
<input type="text" name="fraisForfait" class="form-control frsFrt" <input type="text" name="fraisForfait" class="form-control frsFrt" id="<?= $key ?>"
id="<?= $key ?>" value="<?= $value['lfQuantite'] ?>" <?= $disabled ?>> value="<?= $value['lfQuantite'] ?>" <?= $disabled ?>>
</td> </td>
<td id="mttFrs-<?= $key ?>" data-price="<?= $value['fMontant'] ?>"> <td id="mttFrs-<?= $key ?>" data-price="<?= $value['fMontant'] ?>">
<?= $value['fMontant'] ?> € <?= $value['fMontant'] ?> €
@@ -73,8 +74,8 @@
<?php <?php
foreach ($listeFraisHf as $key => $value): foreach ($listeFraisHf as $key => $value):
?> ?>
<tr id="fraisHf-<?= $key ?>" data-id="<?= $value['lhId'] ?>" class="fraisHF <?= $value['lhRefus'] == 1 ? 'table-danger' : '' ?>" <tr id="fraisHf-<?= $key ?>" data-id="<?= $value['lhId'] ?>"
data-id="<?= $value['lhId'] ?>"> class="fraisHF <?= $value['lhRefus'] == 1 ? 'table-danger' : '' ?>" data-id="<?= $value['lhId'] ?>">
<th scope="row" id="dateFrsHF"> <th scope="row" id="dateFrsHF">
<?= $value['lhDate'] ?> <?= $value['lhDate'] ?>
</th> </th>
@@ -90,9 +91,9 @@
<td> <td>
<?php <?php
if ($typeUser === 'comptable') { ?> if ($typeUser === 'comptable') { ?>
<button type="button" class="btn btn-outline-primary btnRefuseFraisHf" id="frsSup-<?= $key ?>" <button type="button" class="btn btn-outline-primary btnRefuseFraisHf"
<?= $disabled ?>> data-status="<?= $value['lhRefus'] | 0 ?>" id="frsSup-<?= $key ?>" <?= $disabled ?>>
Refuser <?= ($value['lhRefus']) ? 'Accepter' : 'Refuser' ?>
</button> </button>
<?php } elseif ($typeUser === 'visiteur') { ?> <?php } elseif ($typeUser === 'visiteur') { ?>
<button type="button" class="btn btn-outline-primary btnSuprFraisHf" id="frsSup-<?= $key ?>" <button type="button" class="btn btn-outline-primary btnSuprFraisHf" id="frsSup-<?= $key ?>"
@@ -109,7 +110,7 @@
Formulaire d'ajout de frais HF Formulaire d'ajout de frais HF
--> -->
<?php <?php
if ($disabled !== 'disabled'): if ($disabled !== 'disabled' && $typeUser !== 'comptable'):
?> ?>
<tr class="newFraisForm"> <tr class="newFraisForm">
<td> <td>
@@ -127,12 +128,11 @@
<?php endif ?> <?php endif ?>
<tr> <tr>
<td colspan="2" class="border-0"></td> <td colspan="2" class="border-0"></td>
<td class="table-primary" id="total-frais-HF">TOTAL: 0€</td> <!--COMPLETE HERE --> <td class="table-primary" id="total-frais-HF">TOTAL: 0€</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<!-- <span class="border-3 border-bottom border-black col-10 mx-auto my-5 d-flex"></span> -->
<!-- TOTAL --> <!-- TOTAL -->
<div style="position:fixed; bottom:5px; right:5px; margin:0; padding:5px 3px;"> <div style="position:fixed; bottom:5px; right:5px; margin:0; padding:5px 3px;">
<button type="button" class="btn btn-primary" id="total-fiche"> <button type="button" class="btn btn-primary" id="total-fiche">
@@ -140,13 +140,6 @@
<?= $totalFraisFiche ?> <?= $totalFraisFiche ?>
</button> </button>
</div> </div>
<!--
<h3 class="fw-bold offset-1">Commentaire (facultatif)</h3>
<div class="col-8 d-flex mx-auto">
<textarea name="commentaireFiche" id="commentaireFiche" class="form-control border-black"></textarea>
</div>
-->
<?php <?php
/** /**
* Affiche le bouton si fiche non cloturé * Affiche le bouton si fiche non cloturé
@@ -154,8 +147,10 @@
if ($status === 'CR'): if ($status === 'CR'):
?> ?>
<div class="col-3 d-flex mx-auto my-5 justify-content-center"> <div class="col-3 d-flex mx-auto my-5 justify-content-center">
<button type="button" class="btn btn-outline-primary btn-lg" id="sendFileBtn" data-uType="<?= $typeUser ?>">Envoyer la Fiche <button type="button" class="btn btn-outline-primary btn-lg" id="sendFileBtn" data-uType="<?= $typeUser ?>">Envoyer
la Fiche
</button> </button>
</div> </div>
<?php endif ?> <?php endif ?>
<script src="../include/newFiche.js"></script> <script src="include/newFiche.js"></script>
<!-- <script src="../include/newFiche.js"></script> -->