Design brut de la page nouvelle fiche de frais
This commit is contained in:
		
							
								
								
									
										4
									
								
								controleurs/c_nouvelleFiche.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								controleurs/c_nouvelleFiche.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| <?php | ||||
|  | ||||
| include(__DIR__ . '/../vues/v_newFiche.php'); | ||||
|  | ||||
| @@ -13,7 +13,7 @@ | ||||
|                 Partie visiteur | ||||
|              --> | ||||
|             <?php | ||||
|                 if($_SESSION['typeU'] == 'comptable') | ||||
|                 if($_SESSION['typeU'] == 'visiteur'): | ||||
|             ?> | ||||
|             <li> | ||||
|                 <a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle"> | ||||
| @@ -21,11 +21,11 @@ | ||||
|                 </a> | ||||
|                 <ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu"> | ||||
|                     <li class="w-100"> | ||||
|                         <a href="./v_gestionFiches.php" class="nav-link px-0"> <span class="d-none d-sm-inline">Gérer ses fiches</span> | ||||
|                         <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="#" class="nav-link px-0"> <span class="d-none d-sm-inline">Nouvelle Fiche</span> | ||||
|                         <a href="../index.php?direction=nouvelleFiche" class="nav-link px-0"> <span class="d-none d-sm-inline">Nouvelle Fiche</span> | ||||
|                         </a> | ||||
|                     </li> | ||||
|                 </ul> | ||||
| @@ -34,7 +34,7 @@ | ||||
|                 <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 | ||||
|              --> | ||||
| @@ -44,7 +44,7 @@ | ||||
|                 </a> | ||||
|                 <ul class="collapse show nav flex-column ms-1" id="submenu2" data-bs-parent="#menu"> | ||||
|                     <li class="w-100"> | ||||
|                         <a href="#" class="nav-link px-0"> <span class="d-none d-sm-inline">A valider</span> | ||||
|                         <a href="../controleurs/c_gestionFiche.php" class="nav-link px-0"> <span class="d-none d-sm-inline">A valider</span> | ||||
|                         </a> | ||||
|                     </li> | ||||
|                     <li> | ||||
| @@ -53,6 +53,7 @@ | ||||
|                     </li> | ||||
|                 </ul> | ||||
|             </li> | ||||
|             <?php endif; ?> | ||||
|         </ul> | ||||
|         <hr> | ||||
|         <div class="dropdown pb-4"> | ||||
|   | ||||
							
								
								
									
										22
									
								
								index.php
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								index.php
									
									
									
									
									
								
							| @@ -10,15 +10,17 @@ session_start(); | ||||
| //  Auteur v1: pascal-blain@wanadoo.fr    ' | ||||
| //****************************************' | ||||
|  | ||||
| require_once("include/fct.inc.php"); | ||||
| require_once("include/class.pdogsb.php"); | ||||
|  | ||||
| $pdo = PdoGsb::getPdoGsb(); | ||||
| $estConnecte = estConnecte(); | ||||
| //require_once("include/fct.inc.php"); | ||||
| //require_once("include/class.pdogsb.php"); | ||||
|  | ||||
| //$pdo = PdoGsb::getPdoGsb(); | ||||
| //$estConnecte = estConnecte(); | ||||
| $_SESSION['typeU'] = 'visiteur'; | ||||
| /* | ||||
| if (!isset($_SESSION['userId'])) { | ||||
| 	$_REQUEST['direction'] = 'connexion'; | ||||
| } | ||||
| */ | ||||
| ?> | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| @@ -37,11 +39,11 @@ if (!isset($_SESSION['userId'])) { | ||||
| <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"> | ||||
| 				<? | ||||
| 				$_SESSION['test'] = 'toto'; | ||||
| 				switch ($_REQUEST['direction']) { | ||||
| 				<?php | ||||
| 				$action = $_REQUEST['direction']; | ||||
| 				switch ($action) { | ||||
| 					case 'connexion': | ||||
| 						include("controleurs/c_connexion.php"); | ||||
| 						break; | ||||
| @@ -51,7 +53,7 @@ if (!isset($_SESSION['userId'])) { | ||||
| 						break; | ||||
|  | ||||
| 					case 'nouvelleFiche': | ||||
| 						include("controleurs/c_nouvelleFiche.php"); | ||||
| 						include(__DIR__ . "/controleurs/c_nouvelleFiche.php"); | ||||
| 						break; | ||||
|  | ||||
| 					default: | ||||
|   | ||||
| @@ -34,8 +34,6 @@ var_dump($_SESSION['test']); | ||||
|                 </center> | ||||
|  | ||||
|                 <div class="col-11 d-flex mx-auto"> | ||||
|  | ||||
|  | ||||
|                     <table class="table table-striped"> | ||||
|                         <thead> | ||||
|                             <tr> | ||||
|   | ||||
							
								
								
									
										55
									
								
								vues/v_newFiche.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								vues/v_newFiche.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| <h1>Nouvelle Fiche de frais</h1> | ||||
| <br> | ||||
| <p>Mois de Novembre 2023</p> | ||||
| <br> | ||||
| <p>Fais forfaitaire</p> | ||||
| <div class="col-11 d-flex mx-auto"> | ||||
|     <table class="table table-striped"> | ||||
|         <thead> | ||||
|             <tr> | ||||
|                 <th scope="col">Intitulé</th> | ||||
|                 <th scope="col">Quantité</th> | ||||
|                 <th scope="col">Montant</th> | ||||
|                 <th scope="col">Total</th> | ||||
|             </tr> | ||||
|         </thead> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <th scope="row">Hotel</th> | ||||
|                 <td><input type="text"></td> | ||||
|                 <td>20 €</td> | ||||
|                 <td>400€</td> | ||||
|             </tr> | ||||
|         </tbody> | ||||
|     </table> | ||||
| </div> | ||||
| <p>Hors Forfait</p> | ||||
| <div class="col-11 d-flex mx-auto"> | ||||
|     <table class="table table-striped"> | ||||
|         <thead> | ||||
|             <tr> | ||||
|                 <th>Date</th> | ||||
|                 <th>Libelle</th> | ||||
|                 <th>Montant</th> | ||||
|                 <th>Justificatif</th> | ||||
|                 <th>Valider</th> | ||||
|             </tr> | ||||
|         </thead> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <td scope="row">23/12/2023</td> | ||||
|                 <td>Salle de réunion</td> | ||||
|                 <td>130 €</td> | ||||
|                 <td>facture.pdf</td> | ||||
|                 <td><button>Supprimer</button></td> | ||||
|             </tr> | ||||
|             <tr> | ||||
|                 <td scope="row"><input type="date"></td> | ||||
|                 <td><input type="text" placeholder="saisir un titre"></td> | ||||
|                 <td><input type="text" placeholder="Saisir un Montant"></td> | ||||
|                 <td><input type="file"></td> | ||||
|                 <td><button>Valider</button></td> | ||||
|             </tr> | ||||
|         </tbody> | ||||
|     </table> | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user