Ajouts
This commit is contained in:
		@@ -39,6 +39,9 @@
 | 
			
		||||
            text-align: center;
 | 
			
		||||
            color: white;
 | 
			
		||||
        }
 | 
			
		||||
        .request-buttons {
 | 
			
		||||
            margin-top: 10px;
 | 
			
		||||
        }
 | 
			
		||||
    </style>
 | 
			
		||||
</head>
 | 
			
		||||
<body class="w3-light-grey">
 | 
			
		||||
@@ -131,9 +134,9 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>Informatique</td>
 | 
			
		||||
                        <td>Licence Informatique</td>
 | 
			
		||||
                        <td>50,000.00</td>
 | 
			
		||||
                        <td>30,000.00</td>
 | 
			
		||||
                        <td>20,000.00</td>
 | 
			
		||||
                        <td>50 000</td>
 | 
			
		||||
                        <td>30 000</td>
 | 
			
		||||
                        <td>20 000</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <div class="progress-bar">
 | 
			
		||||
                                <div class="progress" style="width: 60%; background-color: #4caf50;">60%</div>
 | 
			
		||||
@@ -144,12 +147,12 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>GEA</td>
 | 
			
		||||
                        <td>BUT GEA</td>
 | 
			
		||||
                        <td>70,000.00</td>
 | 
			
		||||
                        <td>50,000.00</td>
 | 
			
		||||
                        <td>20,000.00</td>
 | 
			
		||||
                        <td>70 000</td>
 | 
			
		||||
                        <td>50 000</td>
 | 
			
		||||
                        <td>20 000</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <div class="progress-bar">
 | 
			
		||||
                                <div class="progress" style="width: 71.43%; background-color: #4caf50;">71.43%</div>
 | 
			
		||||
                                <div class="progress" style="width: 71.43%; background-color: orange;">71.43%</div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
                        <td><button class="w3-button w3-blue" onclick="showDetails('BUT GEA')">Voir Détails</button></td>
 | 
			
		||||
@@ -157,12 +160,12 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>Informatique</td>
 | 
			
		||||
                        <td>Master Informatique</td>
 | 
			
		||||
                        <td>80,000.00</td>
 | 
			
		||||
                        <td>60,000.00</td>
 | 
			
		||||
                        <td>20,000.00</td>
 | 
			
		||||
                        <td>80 000</td>
 | 
			
		||||
                        <td>60 000</td>
 | 
			
		||||
                        <td>20 000</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <div class="progress-bar">
 | 
			
		||||
                                <div class="progress" style="width: 75%; background-color: #4caf50;">75%</div>
 | 
			
		||||
                                <div class="progress" style="width: 75%; background-color: orange;">75%</div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
                        <td><button class="w3-button w3-blue" onclick="showDetails('Master Informatique')">Voir Détails</button></td>
 | 
			
		||||
@@ -170,12 +173,12 @@
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>GEA</td>
 | 
			
		||||
                        <td>Master GEA</td>
 | 
			
		||||
                        <td>60,000.00</td>
 | 
			
		||||
                        <td>45,000.00</td>
 | 
			
		||||
                        <td>15,000.00</td>
 | 
			
		||||
                        <td>60 000</td>
 | 
			
		||||
                        <td>45 000</td>
 | 
			
		||||
                        <td>15 000</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <div class="progress-bar">
 | 
			
		||||
                                <div class="progress" style="width: 75%; background-color: #4caf50;">75%</div>
 | 
			
		||||
                                <div class="progress" style="width: 75%; background-color: orange;">75%</div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </td>
 | 
			
		||||
                        <td><button class="w3-button w3-blue" onclick="showDetails('Master GEA')">Voir Détails</button></td>
 | 
			
		||||
@@ -184,6 +187,47 @@
 | 
			
		||||
            </table>
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <!-- Section pour les demandes de budget -->
 | 
			
		||||
        <div class="card w3-card">
 | 
			
		||||
            <h2>Demandes de Budget supplémentaires</h2>
 | 
			
		||||
            <p>Liste des demandes de budget en attente :</p>
 | 
			
		||||
            <table class="w3-table w3-bordered w3-striped w3-white">
 | 
			
		||||
                <thead>
 | 
			
		||||
                    <tr class="w3-light-grey">
 | 
			
		||||
                        <th>Département</th>
 | 
			
		||||
                        <th>Formation</th>
 | 
			
		||||
                        <th>Demande (€)</th>
 | 
			
		||||
                        <th>Statut</th>
 | 
			
		||||
                        <th>Actions</th>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </thead>
 | 
			
		||||
                <tbody id="budgetRequestTableBody">
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>Informatique</td>
 | 
			
		||||
                        <td>Licence Informatique</td>
 | 
			
		||||
                        <td>10 000</td>
 | 
			
		||||
                        <td>En attente</td>
 | 
			
		||||
                        <td class="request-buttons">
 | 
			
		||||
                            <button class="w3-button w3-green" onclick="handleRequest('Licence Informatique', 'accept')">Accepter</button>
 | 
			
		||||
                            <button class="w3-button w3-red" onclick="handleRequest('Licence Informatique', 'reject')">Refuser</button>
 | 
			
		||||
                            <button class="w3-button w3-orange" onclick="handleRequest('Licence Informatique', 'counter')">Contre-proposition</button>
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td>GEA</td>
 | 
			
		||||
                        <td>BUT GEA</td>
 | 
			
		||||
                        <td>5000</td>
 | 
			
		||||
                        <td>En attente</td>
 | 
			
		||||
                        <td class="request-buttons">
 | 
			
		||||
                            <button class="w3-button w3-green" onclick="handleRequest('BUT GEA', 'accept')">Accepter</button>
 | 
			
		||||
                            <button class="w3-button w3-red" onclick="handleRequest('BUT GEA', 'reject')">Refuser</button>
 | 
			
		||||
                            <button class="w3-button w3-orange" onclick="handleRequest('BUT GEA', 'counter')">Contre-proposition</button>
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="footer">
 | 
			
		||||
@@ -211,6 +255,19 @@
 | 
			
		||||
            alert('Détails pour ' + formation + ': On affichera une pop-up avec des éléments plus précis');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        function handleRequest(formation, action) {
 | 
			
		||||
            if (action === 'accept') {
 | 
			
		||||
                alert('Demande pour ' + formation + ' acceptée.');
 | 
			
		||||
            } else if (action === 'reject') {
 | 
			
		||||
                alert('Demande pour ' + formation + ' refusée.');
 | 
			
		||||
            } else if (action === 'counter') {
 | 
			
		||||
                let counterAmount = prompt('Entrez le montant de la contre-proposition pour ' + formation + ':');
 | 
			
		||||
                if (counterAmount) {
 | 
			
		||||
                    alert('Contre-proposition pour ' + formation + ' de ' + counterAmount + ' € envoyée.');
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        function toggleMenu() {
 | 
			
		||||
            var x = document.getElementById("mobileMenu");
 | 
			
		||||
            if (x.className.indexOf("w3-show") == -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user