182 lines
		
	
	
		
			7.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			182 lines
		
	
	
		
			7.0 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/finance.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;
 | 
						|
        }
 | 
						|
        .filter-section {
 | 
						|
            margin-bottom: 20px;
 | 
						|
        }
 | 
						|
        .filter-input {
 | 
						|
            width: 300px;
 | 
						|
        }
 | 
						|
        .footer {
 | 
						|
            text-align: center;
 | 
						|
            padding: 10px 0;
 | 
						|
            background-color: #20195e;
 | 
						|
            color: white;
 | 
						|
            margin-top: 40px;
 | 
						|
        }
 | 
						|
    </style>
 | 
						|
</head>
 | 
						|
<body class="w3-light-grey">
 | 
						|
 | 
						|
    <div class="header w3-bar w3-card-4 w3-dark-blue">
 | 
						|
        <!-- Logo pour retourner à l'accueil -->
 | 
						|
        <div class="logo-container w3-bar-item">
 | 
						|
            <img src="../../media/img/logoWhite.png" alt="Logo Accueil" class="w3-image" style="width:200px; height:50px;">
 | 
						|
        </div>
 | 
						|
 | 
						|
        <!-- Bouton burger pour petit écran -->
 | 
						|
        <a href="javascript:void(0)" class="w3-bar-item w3-button w3-hide-large w3-right w3-padding-16" onclick="toggleMenu()">☰</a>
 | 
						|
 | 
						|
        <!-- Catégories dans le header -->
 | 
						|
        <div id="menu" class="categories w3-hide-small w3-bar-item">
 | 
						|
            <a href="./finance.html" class="w3-bar-item w3-button">Accueil</a>
 | 
						|
            <a href="./paiements_en_attente.html" class="w3-bar-item w3-button">Paiements en attente</a>
 | 
						|
            <a href="./rapports_financiers.html" class="w3-bar-item w3-button">Rapports Financiers</a>
 | 
						|
            <a href="./historique_paiements.html" class="w3-bar-item w3-button">Historique des transactions</a>
 | 
						|
            <a href="./mes_informations.html" class="w3-bar-item w3-button">Mes informations et documents</a>
 | 
						|
        </div>
 | 
						|
    
 | 
						|
        <!-- Section utilisateur avec déconnexion -->
 | 
						|
        <div class="user-section w3-bar-item w3-right">
 | 
						|
            <div class="user-name w3-padding-16">
 | 
						|
                Jean DUPONT
 | 
						|
            </div>
 | 
						|
            <div class="logout-container w3-bar-item">
 | 
						|
                <a href="../../index.html" title="Se déconnecter">
 | 
						|
                    <img src="../../media/img/LogOutWhite.png" alt="Logo Déconnexion" style="width:25px; height:25px;">
 | 
						|
                </a>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div class="dashboard-container w3-container">
 | 
						|
        <div class="card w3-card">
 | 
						|
            <h2>Historique des Transactions</h2>
 | 
						|
 | 
						|
            <!-- Section de filtre -->
 | 
						|
            <div class="filter-section w3-margin-bottom">
 | 
						|
                <input type="text" id="nameFilter" class="filter-input w3-input w3-border" placeholder="Rechercher par nom..." oninput="filterTable()"><br>
 | 
						|
                <button class="w3-button w3-grey" onclick="filterByStatus('')">Tous</button>
 | 
						|
                <button class="w3-button w3-yellow" onclick="filterByStatus('En attente')">En attente</button>
 | 
						|
                <button class="w3-button w3-red" onclick="filterByStatus('Bloqué')">Bloqué</button>
 | 
						|
                <button class="w3-button w3-orange" onclick="filterByStatus('Annulé')">Annulé</button>
 | 
						|
                <button class="w3-button w3-blue" onclick="filterByStatus('Salaire payer')">Payé</button>
 | 
						|
            </div>
 | 
						|
 | 
						|
            <!-- Tableau des transactions -->
 | 
						|
            <table class="w3-table w3-bordered w3-striped w3-white">
 | 
						|
                <thead>
 | 
						|
                    <tr class="w3-light-grey">
 | 
						|
                        <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="w3-red">Bloqué</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>003</td>
 | 
						|
                        <td>Denis Monnerat</td>
 | 
						|
                        <td>1800,00</td>
 | 
						|
                        <td class="w3-blue">Salaire payer</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>004</td>
 | 
						|
                        <td>Sophie Bernard</td>
 | 
						|
                        <td>1350,00</td>
 | 
						|
                        <td class="w3-orange">Annulé</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>005</td>
 | 
						|
                        <td>Lucas Leroy</td>
 | 
						|
                        <td>2000,00</td>
 | 
						|
                        <td class="w3-red">Bloqué</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>006</td>
 | 
						|
                        <td>Julie Robert</td>
 | 
						|
                        <td>1600,00</td>
 | 
						|
                        <td class="w3-blue">Salaire payer</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>007</td>
 | 
						|
                        <td>Emilie Caron</td>
 | 
						|
                        <td>1750,00</td>
 | 
						|
                        <td class="w3-blue">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" class="w3-text-white">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";
 | 
						|
                }
 | 
						|
            });
 | 
						|
        }
 | 
						|
 | 
						|
        function toggleMenu() {
 | 
						|
            var menu = document.getElementById('menu');
 | 
						|
            var nom = document.getElementById('user-section');
 | 
						|
            if (menu.classList.contains('w3-hide-small')) {
 | 
						|
                menu.classList.remove('w3-hide-small');
 | 
						|
                menu.classList.remove('user-section');
 | 
						|
            } else {
 | 
						|
                menu.classList.add('w3-hide-small');
 | 
						|
            }
 | 
						|
        }
 | 
						|
    </script>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 |