diff --git a/public/certificati.php b/public/certificati.php index 5f91f1c..20daba8 100644 --- a/public/certificati.php +++ b/public/certificati.php @@ -1,7 +1,5 @@ - connect_error) { die("Connessione fallita: " . $conn->connect_error); } -if (isset($_GET['message'])) { -$message = $_GET['message']; } else { $message='n'; } +if (isset($_GET['message'])) { + $message = $_GET['message']; +} else { + $message = 'n'; +} // ID dell'insegnante $idTeacher = 1; - // Controlla se il form è stato inviato if (isset($_POST['submit'])) { // Recupera la data dal form $dayoffdate = $_POST['dayoff']; - - // Query SQL per l'inserimento del day off $insertQuery = "INSERT INTO dayoff (idteacher, dayoffdate) VALUES ($idTeacher, '$dayoffdate')"; @@ -33,8 +31,6 @@ if (isset($_POST['submit'])) { } } - - // Query SQL $query = "SELECT * FROM certificateuserprofile LEFT JOIN auth_users ON certificateuserprofile.iduser=auth_users.id ORDER BY auth_users.last_name"; @@ -50,321 +46,285 @@ if ($result->num_rows > 0) { } ?> - - -
+ + +