valider fiche pour un comptable
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($lesFiches as $uneFiche) { ?>
|
||||
<?php foreach ($lesFiches as $uneFiche): ?>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<?= $gestionFiche->dateComplete($uneFiche['rMois']) ?>
|
||||
</th>
|
||||
<td>
|
||||
<?= $uneFiche['uNom'] ?>
|
||||
<?= $uneFiche['uNom'] ?>
|
||||
<?= $uneFiche['uPrenom'] ?>
|
||||
</td>
|
||||
<td>
|
||||
@@ -29,11 +29,11 @@
|
||||
<td>
|
||||
<?= $uneFiche['eLibelle'] ?>
|
||||
</td>
|
||||
<td><a
|
||||
href="index.php?direction=nouvelleFiche&userId=<?= $userId ?>&dateListing=<?= $uneFiche['rMois'] ?>">voir</a>
|
||||
<td>
|
||||
<a href="index.php?direction=nouvelleFiche&userId=<?= $uneFiche['rVisiteur'] ?>&dateListing=<?= $uneFiche['rMois'] ?>">voir</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -51,20 +51,19 @@
|
||||
<?php for ($page = 1; $page <= $pages; $page++): ?>
|
||||
<!-- Lien vers chacune des pages (activé si on se trouve sur la page correspondante) -->
|
||||
<li class="page-item <?= ($currentPage == $page) ? "active" : "" ?>">
|
||||
<a href="index.php?direction=ficheAvalider&page=<?= $page ?>"
|
||||
class="page-link">
|
||||
<a href="index.php?direction=ficheAvalider&page=<?= $page ?>" class="page-link">
|
||||
<?= $page ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endfor ?>
|
||||
<!-- Lien vers la page suivante (désactivé si on se trouve sur la dernière page) -->
|
||||
<li class="page-item <?= ($currentPage == $pages) ? "disabled" : "" ?>">
|
||||
<a href="index.php?direction=ficheAvalider&page=<?= $currentPage + 1 ?>"
|
||||
class="page-link">Suivante</a>
|
||||
<a href="index.php?direction=ficheAvalider&page=<?= $currentPage + 1 ?>" class="page-link">Suivante</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<?php
|
||||
};
|
||||
?>
|
||||
}
|
||||
;
|
||||
?>
|
||||
@@ -155,9 +155,18 @@
|
||||
if ($disabled == ''):
|
||||
?>
|
||||
<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>
|
||||
<?php
|
||||
if ($typeUser == 'comptable' && $status['eId'] == 'CL'): ?>
|
||||
<button type="button" class="btn btn-outline-primary btn-lg" id="validSheetBtn" data-uType="<?= $typeUser ?>">Valider
|
||||
la Fiche
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<button type="button" class="btn btn-outline-primary btn-lg" id="sendFileBtn" data-uType="<?= $typeUser ?>">Envoyer
|
||||
la Fiche
|
||||
</button>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<script src="include/newFiche.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user