203 lines
		
	
	
		
			7.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			203 lines
		
	
	
		
			7.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								<!DOCTYPE html>
							 | 
						||
| 
								 | 
							
								<html lang="fr">
							 | 
						||
| 
								 | 
							
								<head>
							 | 
						||
| 
								 | 
							
								    <meta charset="UTF-8">
							 | 
						||
| 
								 | 
							
								    <meta name="viewport" content="width=device-width, initial-scale=1.0">
							 | 
						||
| 
								 | 
							
								    <title>Historique des Transactions</title>
							 | 
						||
| 
								 | 
							
								    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
							 | 
						||
| 
								 | 
							
								    <link rel="stylesheet" href="../../css/FINANCE/style.css">
							 | 
						||
| 
								 | 
							
								    <style>
							 | 
						||
| 
								 | 
							
								        .dashboard-container {
							 | 
						||
| 
								 | 
							
								            margin-top: 20px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .card {
							 | 
						||
| 
								 | 
							
								            background-color: white;
							 | 
						||
| 
								 | 
							
								            padding: 20px;
							 | 
						||
| 
								 | 
							
								            border-radius: 8px;
							 | 
						||
| 
								 | 
							
								            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
							 | 
						||
| 
								 | 
							
								            margin-bottom: 20px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        table {
							 | 
						||
| 
								 | 
							
								            width: 100%;
							 | 
						||
| 
								 | 
							
								            border-collapse: collapse;
							 | 
						||
| 
								 | 
							
								            margin-bottom: 20px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        th, td {
							 | 
						||
| 
								 | 
							
								            border: 1px solid #ddd;
							 | 
						||
| 
								 | 
							
								            padding: 10px;
							 | 
						||
| 
								 | 
							
								            text-align: left;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        th {
							 | 
						||
| 
								 | 
							
								            background-color: #f2f2f2;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .button {
							 | 
						||
| 
								 | 
							
								            padding: 10px 15px;
							 | 
						||
| 
								 | 
							
								            border: none;
							 | 
						||
| 
								 | 
							
								            border-radius: 4px;
							 | 
						||
| 
								 | 
							
								            color: white;
							 | 
						||
| 
								 | 
							
								            font-weight: bold;
							 | 
						||
| 
								 | 
							
								            cursor: pointer;
							 | 
						||
| 
								 | 
							
								            margin-right: 5px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .block { background-color: #f44336; }
							 | 
						||
| 
								 | 
							
								        .cancel { background-color: #ff9800; }
							 | 
						||
| 
								 | 
							
								        .unblock { background-color: #4caf50; }
							 | 
						||
| 
								 | 
							
								        .send { background-color: #2196F3; }
							 | 
						||
| 
								 | 
							
								        .status-en-attente { background-color: #ffeb3b; color: black; }
							 | 
						||
| 
								 | 
							
								        .status-bloque { background-color: #f44336; color: white; }
							 | 
						||
| 
								 | 
							
								        .status-annule { background-color: #ff9800; color: white; }
							 | 
						||
| 
								 | 
							
								        .status-debloque { background-color: #4caf50; color: white; }
							 | 
						||
| 
								 | 
							
								        .status-envoye { background-color: #2196F3; color: white; }
							 | 
						||
| 
								 | 
							
								        .filter-section {
							 | 
						||
| 
								 | 
							
								            margin-bottom: 20px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .filter-input {
							 | 
						||
| 
								 | 
							
								            padding: 10px;
							 | 
						||
| 
								 | 
							
								            width: 300px;
							 | 
						||
| 
								 | 
							
								            margin-right: 10px;
							 | 
						||
| 
								 | 
							
								            border-radius: 4px;
							 | 
						||
| 
								 | 
							
								            border: 1px solid #ddd;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .filter-button {
							 | 
						||
| 
								 | 
							
								            padding: 10px 15px;
							 | 
						||
| 
								 | 
							
								            border: none;
							 | 
						||
| 
								 | 
							
								            border-radius: 4px;
							 | 
						||
| 
								 | 
							
								            color: white;
							 | 
						||
| 
								 | 
							
								            font-weight: bold;
							 | 
						||
| 
								 | 
							
								            cursor: pointer;
							 | 
						||
| 
								 | 
							
								            margin-right: 5px;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								        .filter-all { background-color: #888; }
							 | 
						||
| 
								 | 
							
								        .filter-waiting { background-color: #ffeb3b; color: black; }
							 | 
						||
| 
								 | 
							
								        .filter-blocked { background-color: #f44336; }
							 | 
						||
| 
								 | 
							
								        .filter-canceled { background-color: #ff9800; }
							 | 
						||
| 
								 | 
							
								        .filter-paid { background-color: #2196F3; }
							 | 
						||
| 
								 | 
							
								    </style>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <div class="header">
							 | 
						||
| 
								 | 
							
								        <div class="logo-container">
							 | 
						||
| 
								 | 
							
								            <img src="../../media/img/logoWhite.png" alt="Logo Accueil">
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								        <div class="categories">
							 | 
						||
| 
								 | 
							
								            <a href="./finance.html">Accueil</a>
							 | 
						||
| 
								 | 
							
								            <a href="./paiements_en_attente.html">Paiements en attente</a>
							 | 
						||
| 
								 | 
							
								            <a href="./rapports_financiers.html">Rapports Financiers</a>
							 | 
						||
| 
								 | 
							
								            <a href="./historique_paiements.html">Historique des transactions</a>
							 | 
						||
| 
								 | 
							
								            <a href="./mes_informations.html">Mes informations et documents</a>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								        <div class="user-section">
							 | 
						||
| 
								 | 
							
								            <div class="user-name">Jean DUPONT</div>
							 | 
						||
| 
								 | 
							
								            <div class="logout-container">
							 | 
						||
| 
								 | 
							
								                <a href="../../index.html" title="Se déconnecter">
							 | 
						||
| 
								 | 
							
								                    <img src="../../media/img/LogOutWhite.png" alt="Logo Déconnexion">
							 | 
						||
| 
								 | 
							
								                </a>
							 | 
						||
| 
								 | 
							
								            </div>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <div class="dashboard-container">
							 | 
						||
| 
								 | 
							
								        <div class="card">
							 | 
						||
| 
								 | 
							
								            <h2>Historique des Transactions</h2>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <!-- Section de filtre -->
							 | 
						||
| 
								 | 
							
								            <div class="filter-section">
							 | 
						||
| 
								 | 
							
								                <input type="text" id="nameFilter" class="filter-input" placeholder="Rechercher par nom..." oninput="filterTable()">
							 | 
						||
| 
								 | 
							
								                <button class="filter-button filter-all" onclick="filterByStatus('')">Tous</button>
							 | 
						||
| 
								 | 
							
								                <button class="filter-button filter-waiting" onclick="filterByStatus('En attente')">En attente</button>
							 | 
						||
| 
								 | 
							
								                <button class="filter-button filter-blocked" onclick="filterByStatus('Bloqué')">Bloqué</button>
							 | 
						||
| 
								 | 
							
								                <button class="filter-button filter-canceled" onclick="filterByStatus('Annulé')">Annulé</button>
							 | 
						||
| 
								 | 
							
								                <button class="filter-button filter-paid" onclick="filterByStatus('Salaire payer')">Payé</button>
							 | 
						||
| 
								 | 
							
								            </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            <!-- Tableau des transactions -->
							 | 
						||
| 
								 | 
							
								            <table>
							 | 
						||
| 
								 | 
							
								                <thead>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <th>ID Paiement</th>
							 | 
						||
| 
								 | 
							
								                        <th>Nom du Bénéficiaire</th>
							 | 
						||
| 
								 | 
							
								                        <th>Montant (€)</th>
							 | 
						||
| 
								 | 
							
								                        <th>Status</th>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                </thead>
							 | 
						||
| 
								 | 
							
								                <tbody id="paymentTableBody">
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>002</td>
							 | 
						||
| 
								 | 
							
								                        <td>Maxime Menault</td>
							 | 
						||
| 
								 | 
							
								                        <td>1200,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-bloque">Bloqué</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>003</td>
							 | 
						||
| 
								 | 
							
								                        <td>Denis Monnerat</td>
							 | 
						||
| 
								 | 
							
								                        <td>1800,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-envoye">Salaire payer</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>004</td>
							 | 
						||
| 
								 | 
							
								                        <td>Sophie Bernard</td>
							 | 
						||
| 
								 | 
							
								                        <td>1350,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-annule">Annulé</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>005</td>
							 | 
						||
| 
								 | 
							
								                        <td>Lucas Leroy</td>
							 | 
						||
| 
								 | 
							
								                        <td>2000,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-bloque">Bloqué</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>006</td>
							 | 
						||
| 
								 | 
							
								                        <td>Julie Robert</td>
							 | 
						||
| 
								 | 
							
								                        <td>1600,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-envoye">Salaire payer</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                    <tr>
							 | 
						||
| 
								 | 
							
								                        <td>007</td>
							 | 
						||
| 
								 | 
							
								                        <td>Emilie Caron</td>
							 | 
						||
| 
								 | 
							
								                        <td>1750,00</td>
							 | 
						||
| 
								 | 
							
								                        <td class="status-envoye">Salaire payer</td>
							 | 
						||
| 
								 | 
							
								                    </tr>
							 | 
						||
| 
								 | 
							
								                </tbody>
							 | 
						||
| 
								 | 
							
								            </table>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <div class="footer">
							 | 
						||
| 
								 | 
							
								        <p>© 2024 IUT de Fontainebleau. Tous droits réservés |
							 | 
						||
| 
								 | 
							
								            <a href="../mentions_legales.html">Mentions légales</a>
							 | 
						||
| 
								 | 
							
								        </p>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    <script>
							 | 
						||
| 
								 | 
							
								        // Filtre par nom
							 | 
						||
| 
								 | 
							
								        function filterTable() {
							 | 
						||
| 
								 | 
							
								            const filter = document.getElementById("nameFilter").value.toLowerCase();
							 | 
						||
| 
								 | 
							
								            const rows = document.querySelectorAll("#paymentTableBody tr");
							 | 
						||
| 
								 | 
							
								            rows.forEach(row => {
							 | 
						||
| 
								 | 
							
								                const nameCell = row.cells[1].textContent.toLowerCase();
							 | 
						||
| 
								 | 
							
								                if (nameCell.includes(filter)) {
							 | 
						||
| 
								 | 
							
								                    row.style.display = "";
							 | 
						||
| 
								 | 
							
								                } else {
							 | 
						||
| 
								 | 
							
								                    row.style.display = "none";
							 | 
						||
| 
								 | 
							
								                }
							 | 
						||
| 
								 | 
							
								            });
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        // Filtre par statut
							 | 
						||
| 
								 | 
							
								        function filterByStatus(status) {
							 | 
						||
| 
								 | 
							
								            const rows = document.querySelectorAll("#paymentTableBody tr");
							 | 
						||
| 
								 | 
							
								            rows.forEach(row => {
							 | 
						||
| 
								 | 
							
								                const statusCell = row.cells[3].textContent;
							 | 
						||
| 
								 | 
							
								                if (status === "" || statusCell === status) {
							 | 
						||
| 
								 | 
							
								                    row.style.display = "";
							 | 
						||
| 
								 | 
							
								                } else {
							 | 
						||
| 
								 | 
							
								                    row.style.display = "none";
							 | 
						||
| 
								 | 
							
								                }
							 | 
						||
| 
								 | 
							
								            });
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								    </script>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</body>
							 | 
						||
| 
								 | 
							
								</html>
							 |