Skip to content
Extraits de code Groupes Projets
Valider c2be33f1 rédigé par Lucas BRIFFON's avatar Lucas BRIFFON
Parcourir les fichiers

fix css and reset database

parent 0c4265d1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -137,13 +137,6 @@ html
padding: 0;
}
input, select, textarea {
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
}
/* Basic */
html {
......@@ -3506,6 +3499,44 @@ html
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
.btn-group-toggle > .btn input[type="radio"],
.btn-group-toggle > .btn input[type="checkbox"],
.btn-group-toggle > .btn-group > .btn input[type="radio"],
.btn-group-toggle > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
/* Form */
.form-control {
......
......@@ -37,6 +37,8 @@ function fill_table($bdd){
$sql = "CREATE TABLE requests (
student int NOT NULL,
teacher int NOT NULL,
dispo varchar(20) NOT NULL,
subject varchar(20) NOT NULL,
accepted int NOT NULL
)";
$bdd->query($sql);
......@@ -118,7 +120,7 @@ function fill_table($bdd){
$bdd->prepare($sql)->execute([14,'Chimie']);
#Remplissage de REQUESTS
$sql = "INSERT INTO requests(student, teacher, dispo, subject, accepted) values (?, ?, ?)";
$sql = "INSERT INTO requests(student, teacher, dispo, subject, accepted) values (?, ?, ?, ?, ?)";
$bdd->prepare($sql)->execute([1, 8, 'Lundi', 'Math', 0]);
}
......
......@@ -51,10 +51,23 @@
}
if ($_SESSION['connected'] == true) {
if ($_SESSION['currentType'] == 'Student') {
?>
<li
<?php
if (basename(getcwd()) == 'student')
echo 'class="current"';
?> >
<a href="/pima/student/matchs.php">Mes matchs</a>
</li>
<?php } ?>
<li
<?php
if (basename(getcwd()) == 'connection')
echo 'class="current"';
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter