2024-10-16 08:40:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="pl">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Ocena Zachowania</title>
|
2024-10-16 09:16:38 +00:00
|
|
|
<link rel="stylesheet" href="css/style.css">
|
2024-10-19 18:35:29 +00:00
|
|
|
<link rel="icon" type="image/x-icon" href="ikona.png">
|
2024-10-18 10:15:36 +00:00
|
|
|
<style>
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
2024-10-18 11:35:03 +00:00
|
|
|
background-color: lightgray; /* Kolor tła nagłówka */
|
2024-10-18 10:15:36 +00:00
|
|
|
z-index: 10; /* Zapewnia, że nagłówek będzie nad innymi elementami */
|
|
|
|
border: 1px solid #ddd; /* Opcjonalnie: Dodanie obramowania */
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
</style>
|
2024-10-22 12:32:00 +00:00
|
|
|
<script>
|
|
|
|
function fetchClasses() {
|
|
|
|
fetch('get2.php')
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(data => {
|
|
|
|
const select = document.getElementById('select-class');
|
|
|
|
|
|
|
|
data.forEach(cls => {
|
|
|
|
const option = document.createElement('option');
|
|
|
|
option.value = cls.id;
|
|
|
|
option.textContent = cls.class_name;
|
|
|
|
select.appendChild(option);
|
|
|
|
console.log(option);
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
|
|
fetchClasses();
|
|
|
|
});
|
|
|
|
</script>
|
2024-10-16 08:40:14 +00:00
|
|
|
</head>
|
2024-10-18 12:56:26 +00:00
|
|
|
<body class="dark-background">
|
|
|
|
|
2024-10-18 12:03:11 +00:00
|
|
|
<header class="header-box">
|
2024-10-18 12:56:26 +00:00
|
|
|
<div class="up-button">
|
|
|
|
<button class="active" onclick="showTab('criteria')">Ocena z zachowania</button>
|
|
|
|
<button class="active" onclick="showTab('stats')">Statystyka</button>
|
|
|
|
<button class="active" onclick="showTab('points')">Ustal punkty</button>
|
|
|
|
</div>
|
|
|
|
<h1 id="header-title" class="header-title">Ocena Zachowania</h1>
|
|
|
|
</header>
|
2024-10-20 10:57:19 +00:00
|
|
|
<div id="up-button-container" class="button1" class="sa">
|
2024-10-18 12:56:26 +00:00
|
|
|
<button class="active" onclick="changeDay(-1)">Poprzedni Dzień</button>
|
|
|
|
<button class="active" onclick="changeDay(1)">Następny Dzień</button>
|
|
|
|
</div>
|
2024-10-16 09:11:17 +00:00
|
|
|
|
2024-10-16 13:44:17 +00:00
|
|
|
<!-- Zakładka "Ustal punkty" -->
|
2024-10-16 09:14:17 +00:00
|
|
|
<div id="points" class="tab">
|
2024-10-16 09:11:17 +00:00
|
|
|
<h2>Ustal punkty dla kryteriów</h2>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Kryterium</th>
|
|
|
|
<th>Punkty</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-10-17 12:24:08 +00:00
|
|
|
<!-- Wiersze dla wszystkich kryteriów -->
|
2024-10-16 09:11:17 +00:00
|
|
|
<tr>
|
|
|
|
<td>Frekwencja 95-100%</td>
|
|
|
|
<td><input type="number" id="frekwencja-punkty" value="30" onchange="calculateStats()"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Brak godzin nieusprawiedliwionych</td>
|
2024-10-17 12:24:08 +00:00
|
|
|
<td><input type="number" id="brak_godzin-punkty" value="20" onchange="calculateStats()"></td>
|
2024-10-16 09:11:17 +00:00
|
|
|
</tr>
|
2024-10-17 12:39:47 +00:00
|
|
|
<!-- Dodaj pozostałe wiersze kryteriów tutaj -->
|
2024-10-16 09:11:17 +00:00
|
|
|
<tr>
|
|
|
|
<td>Minimum 85% frekwencja</td>
|
2024-10-17 12:24:08 +00:00
|
|
|
<td><input type="number" id="min_85-punkty" value="20" onchange="calculateStats()"></td>
|
2024-10-16 09:11:17 +00:00
|
|
|
</tr>
|
2024-10-17 10:47:01 +00:00
|
|
|
<tr>
|
|
|
|
<td>Etap szkolny</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="etap_szkolny-punkty" value="5" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Etap rejonowy</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="etap_rejonowy-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Etap wojewódzki</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="etap_wojewodzki-punkty" value="15" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Etap ogólnopolski</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="etap_ogolnopolski-punkty" value="20" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Udział w konkursach</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="udzial_konkurs-punkty" value="5" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Wyróżnienie w konkursie</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="wyroznienie_konkurs-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Reprezentacja indywidualna</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="reprezentacja_indywidualna-punkty" value="5" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Reprezentacja zespołowa</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="reprezentacja_zespolowa-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Udział w zawodach</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="udzial_zawody-punkty" value="15" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Organizacja imprez</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="organizacja_imprez-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Funkcje w klasie</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="funkcja_klasa-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Uroczystości okolicznościowe</td>
|
|
|
|
<td><input type="number" id="uroczystosci-punkty" value="10" onchange="calculateStats()"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Udział w poczcie sztandarowej</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="poczta_sztandar-punkty" value="20" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Pomoc nauczycielowi</td>
|
2024-10-17 12:14:38 +00:00
|
|
|
<td><input type="number" id="pomoc_nauczyciel-punkty" value="10" onchange="calculateStats()"></td>
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Wolontariat</td>
|
|
|
|
<td><input type="number" id="wolontariat-punkty" value="10" onchange="calculateStats()"></td>
|
|
|
|
</tr>
|
2024-10-16 09:11:17 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2024-10-18 12:56:26 +00:00
|
|
|
<!-- Zakładka "Kryteria oceny zachowania" -->
|
|
|
|
<div id="criteria" class="tab active">
|
|
|
|
<h2>Kryteria oceny zachowania - <span id="current-date"></span></h2>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="select-role">
|
2024-10-19 18:35:29 +00:00
|
|
|
<p class="tag">Wybierz role:</p>
|
2024-10-19 11:16:29 +00:00
|
|
|
<select onchange="changeRole()" id="select-role" class="select-role">
|
2024-10-18 12:56:26 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="select-class" id="select-class-container">
|
2024-10-19 18:35:29 +00:00
|
|
|
<p class="tag">Wybierz klasę:</p>
|
2024-10-22 12:32:00 +00:00
|
|
|
<select id="select-class" class="select-class">
|
2024-10-18 12:56:26 +00:00
|
|
|
<!-- Opcje będą ładowane dynamicznie -->
|
|
|
|
</select>
|
|
|
|
</div>
|
2024-10-17 10:47:01 +00:00
|
|
|
|
2024-10-18 12:56:26 +00:00
|
|
|
<div class="category-buttons" id="category-buttons-box">
|
|
|
|
<button data-category="frekwencja" onclick="showInnerTab('frekwencja')">Frekwencja</button>
|
|
|
|
<button data-category="olimpiady" onclick="showInnerTab('olimpiady')">Olimpiady</button>
|
|
|
|
<button data-category="konkursy" onclick="showInnerTab('konkursy')">Konkursy Szkolne</button>
|
|
|
|
<button data-category="reprezentacja" onclick="showInnerTab('reprezentacja')">Reprezentacja Szkoły</button>
|
|
|
|
<button data-category="aktywnosc" onclick="showInnerTab('aktywnosc')">Aktywność</button>
|
|
|
|
</div>
|
2024-10-17 12:15:45 +00:00
|
|
|
|
|
|
|
<!-- Tabela uczniów -->
|
2024-10-17 10:47:01 +00:00
|
|
|
<table id="student-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-10-17 12:14:38 +00:00
|
|
|
<th>Imię i Nazwisko</th>
|
|
|
|
<!-- Dynamiczne kolumny będą generowane przez JavaScript -->
|
2024-10-17 10:47:01 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-10-17 12:14:38 +00:00
|
|
|
<!-- Wiersze uczniów będą generowane przez JavaScript -->
|
2024-10-17 10:47:01 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-10-16 09:11:17 +00:00
|
|
|
</div>
|
|
|
|
|
2024-10-16 13:44:17 +00:00
|
|
|
<!-- Zakładka "Statystyka" -->
|
2024-10-16 09:11:17 +00:00
|
|
|
<div id="stats" class="tab">
|
|
|
|
<h2>Statystyka dla wszystkich dni</h2>
|
2024-10-17 10:47:01 +00:00
|
|
|
<div id="stats-output"></div>
|
2024-10-16 08:40:14 +00:00
|
|
|
</div>
|
|
|
|
|
2024-10-18 11:35:03 +00:00
|
|
|
|
2024-10-17 12:39:47 +00:00
|
|
|
<hr class="footer-line">
|
2024-10-18 11:35:03 +00:00
|
|
|
<footer class="footer">
|
|
|
|
<div class="footer-left">
|
|
|
|
<p>B. Hrynowiecki</p>
|
|
|
|
<p>K. Michalak</p>
|
2024-10-22 13:25:38 +00:00
|
|
|
<p>J. Kukiela Z miłością wpisany na listę</p>
|
2024-10-22 13:14:07 +00:00
|
|
|
<p>A. Guzik</p>
|
2024-10-18 11:35:03 +00:00
|
|
|
<p>F. Kowalski</p>
|
|
|
|
<p>S. Ptak</p>
|
2024-10-19 11:16:29 +00:00
|
|
|
<p>B. Bohdan</p>
|
2024-10-18 12:56:26 +00:00
|
|
|
<P>T. Zadworny</P>
|
2024-10-20 11:07:58 +00:00
|
|
|
<p>J. Tocziew</p>
|
2024-10-22 13:29:48 +00:00
|
|
|
<p>o co chodzi ? stronka jest robiona?</p>
|
2024-10-18 11:35:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="footer-right">
|
|
|
|
<p>M. Pabiszczak</p>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2024-10-16 10:18:43 +00:00
|
|
|
|
2024-10-17 10:47:01 +00:00
|
|
|
<!-- Przeniesienie skryptu na koniec body -->
|
2024-10-22 13:11:03 +00:00
|
|
|
<script src="js/skrypt.js"></script>
|
2024-10-16 09:11:17 +00:00
|
|
|
|
2024-10-16 08:40:14 +00:00
|
|
|
</body>
|
|
|
|
</html>
|