Design brut de la page nouvelle fiche de frais

This commit is contained in:
Pierr0 2023-12-19 21:41:28 +01:00
parent c226069923
commit 280f10fc0b
5 changed files with 77 additions and 17 deletions

View File

@ -0,0 +1,4 @@
<?php
include(__DIR__ . '/../vues/v_newFiche.php');

View File

@ -13,7 +13,7 @@
Partie visiteur Partie visiteur
--> -->
<?php <?php
if($_SESSION['typeU'] == 'comptable') if($_SESSION['typeU'] == '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">
@ -21,11 +21,11 @@
</a> </a>
<ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu"> <ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu">
<li class="w-100"> <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> </a>
</li> </li>
<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> </a>
</li> </li>
</ul> </ul>
@ -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'): ?>
<!-- <!--
Partie comptable Partie comptable
--> -->
@ -44,7 +44,7 @@
</a> </a>
<ul class="collapse show nav flex-column ms-1" id="submenu2" data-bs-parent="#menu"> <ul class="collapse show nav flex-column ms-1" id="submenu2" data-bs-parent="#menu">
<li class="w-100"> <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> </a>
</li> </li>
<li> <li>
@ -53,6 +53,7 @@
</li> </li>
</ul> </ul>
</li> </li>
<?php endif; ?>
</ul> </ul>
<hr> <hr>
<div class="dropdown pb-4"> <div class="dropdown pb-4">

View File

@ -10,15 +10,17 @@ session_start();
// Auteur v1: pascal-blain@wanadoo.fr ' // Auteur v1: pascal-blain@wanadoo.fr '
//****************************************' //****************************************'
require_once("include/fct.inc.php"); //require_once("include/fct.inc.php");
require_once("include/class.pdogsb.php"); //require_once("include/class.pdogsb.php");
$pdo = PdoGsb::getPdoGsb();
$estConnecte = estConnecte();
//$pdo = PdoGsb::getPdoGsb();
//$estConnecte = estConnecte();
$_SESSION['typeU'] = 'visiteur';
/*
if (!isset($_SESSION['userId'])) { if (!isset($_SESSION['userId'])) {
$_REQUEST['direction'] = 'connexion'; $_REQUEST['direction'] = 'connexion';
} }
*/
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
@ -37,11 +39,11 @@ if (!isset($_SESSION['userId'])) {
<body> <body>
<div class="container-fluid"> <div class="container-fluid">
<div class="row flex-nowrap"> <div class="row flex-nowrap">
<?php include('include/menu.php') ?> <?php include('include/menu.php'); ?>
<div class="col py-3"> <div class="col py-3">
<? <?php
$_SESSION['test'] = 'toto'; $action = $_REQUEST['direction'];
switch ($_REQUEST['direction']) { switch ($action) {
case 'connexion': case 'connexion':
include("controleurs/c_connexion.php"); include("controleurs/c_connexion.php");
break; break;
@ -51,7 +53,7 @@ if (!isset($_SESSION['userId'])) {
break; break;
case 'nouvelleFiche': case 'nouvelleFiche':
include("controleurs/c_nouvelleFiche.php"); include(__DIR__ . "/controleurs/c_nouvelleFiche.php");
break; break;
default: default:

View File

@ -34,8 +34,6 @@ var_dump($_SESSION['test']);
</center> </center>
<div class="col-11 d-flex mx-auto"> <div class="col-11 d-flex mx-auto">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>

55
vues/v_newFiche.php Normal file
View 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>