resolv merge + pdo
This commit is contained in:
commit
674514ed06
15
controleurs/c_gestionFiche.php
Normal file
15
controleurs/c_gestionFiche.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
$_SESSION['typeU'] = 'comptable';
|
||||
|
||||
|
||||
include("../vues/v_gestionFiches.php");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
@ -13,50 +13,46 @@
|
||||
Partie visiteur
|
||||
-->
|
||||
<?php
|
||||
if ($_SESSION['typeU'] == 'visiteur'):
|
||||
?>
|
||||
<li>
|
||||
<a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
|
||||
<i class="fs-4 bi-speedometer2"></i> <span class="ms-1 d-none d-sm-inline">Fiche de frais</span>
|
||||
</a>
|
||||
<ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu">
|
||||
<li class="w-100">
|
||||
<a href="controleurs/c_gestionFiche.php" class="nav-link px-0"> <span
|
||||
class="d-none d-sm-inline">Gérer ses fiches</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.php?direction=nouvelleFiche" class="nav-link px-0"> <span
|
||||
class="d-none d-sm-inline">Nouvelle Fiche</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<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>
|
||||
</li>
|
||||
<!--
|
||||
if($_SESSION['typeU'] == 'visiteur'):
|
||||
?>
|
||||
<li>
|
||||
<a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
|
||||
<i class="fs-4 bi-speedometer2"></i> <span class="ms-1 d-none d-sm-inline">Fiche de frais</span>
|
||||
</a>
|
||||
<ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu">
|
||||
<li class="w-100">
|
||||
<a href="../controleurs/c_gestionFiche.php" class="nav-link px-0"> <span class="d-none d-sm-inline">Gérer ses fiches</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="../index.php?direction=nouvelleFiche" class="nav-link px-0"> <span class="d-none d-sm-inline">Nouvelle Fiche</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<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>
|
||||
</li>
|
||||
<?php endif; if ($_SESSION['typeU'] == 'comptable'): ?>
|
||||
<!--
|
||||
Partie comptable
|
||||
-->
|
||||
<?php endif;
|
||||
if ($_SESSION['typeU'] == 'comptable'): ?>
|
||||
<li>
|
||||
<a href="#submenu2" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
|
||||
<i class="fs-4 bi-speedometer2"></i> <span class="ms-1 d-none d-sm-inline">Fiche de frais</span>
|
||||
</a>
|
||||
<ul class="collapse show nav flex-column ms-1" id="submenu2" data-bs-parent="#menu">
|
||||
<li class="w-100">
|
||||
<a href="../controleurs/c_gestionFiche.php" class="nav-link px-0"> <span
|
||||
class="d-none d-sm-inline">A valider</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="nav-link px-0"> <span class="d-none d-sm-inline">Historique</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#submenu2" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
|
||||
<i class="fs-4 bi-speedometer2"></i> <span class="ms-1 d-none d-sm-inline">Fiche de frais</span>
|
||||
</a>
|
||||
<ul class="collapse show nav flex-column ms-1" id="submenu2" data-bs-parent="#menu">
|
||||
<li class="w-100">
|
||||
<a href="../controleurs/c_gestionFiche.php" class="nav-link px-0"> <span class="d-none d-sm-inline">A valider</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="nav-link px-0"> <span class="d-none d-sm-inline">Historique</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<hr>
|
||||
|
@ -42,7 +42,9 @@ if (!isset($_REQUEST['direction'])) {
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
<?php include('include/menu.php'); ?>
|
||||
<?php
|
||||
include('include/menu.php');
|
||||
?>
|
||||
<div class="col py-3">
|
||||
<?php
|
||||
switch ($_REQUEST['direction']) {
|
||||
@ -53,6 +55,7 @@ if (!isset($_REQUEST['direction'])) {
|
||||
case 'gestionFiche':
|
||||
include("controleurs/c_gestionFiche.php");
|
||||
break;
|
||||
|
||||
case 'home':
|
||||
include("controleurs/c_homePage.php");
|
||||
break;
|
||||
@ -62,7 +65,7 @@ if (!isset($_REQUEST['direction'])) {
|
||||
break;
|
||||
|
||||
default:
|
||||
include("controleurs/c_gestionFiche.php");
|
||||
include("controleurs/c_homePage.php");
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
@ -25,10 +25,12 @@ var_dump($_SESSION['test']);
|
||||
<div class="col-3 mb-4">
|
||||
<h3>Gerer mes fiches de frais</h3>
|
||||
<br>
|
||||
<select class="form-select" name="selVisiteur" id="">
|
||||
<option value="visiteur1">Visiteur 1</option>
|
||||
</select>
|
||||
|
||||
<?php
|
||||
if ($_SESSION['typeU'] == 'comptable') {
|
||||
echo '<select class="form-select" name="selVisiteur" id="">
|
||||
<option value="visiteur1">Visiteur 1</option></select>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</center>
|
||||
|
Loading…
x
Reference in New Issue
Block a user