diff --git a/classifica.css b/classifica.css new file mode 100644 index 0000000..54275f3 --- /dev/null +++ b/classifica.css @@ -0,0 +1,19 @@ +body { + font-family: "Arial"; +} +table, h1 { + margin: auto; +} +h1 { + text-align: center; + padding: 15px; +} +table { + width: 75vw; + text-align: center; + border-collapse: collapse; +} +th, td { + padding: 10px; + border: 1px solid black; +} \ No newline at end of file diff --git a/classifica.php b/classifica.php index 3de7051..6464785 100644 --- a/classifica.php +++ b/classifica.php @@ -4,31 +4,29 @@ Classifica completa - + +

Classifica

- - - - - - + + + + + + + + $record) { + riga($posizione, $record); + } + ?> +
PosizioneNomePunteggio 1° fasePunteggio 2° fasePunteggio totaleData di giocoPosizioneNomePunteggio 1° fasePunteggio 2° fasePunteggio totaleData di gioco
\ No newline at end of file diff --git a/db.php b/db.php new file mode 100644 index 0000000..11123ae --- /dev/null +++ b/db.php @@ -0,0 +1,35 @@ + 's1', + 'p1' => 95, + 'p2' => 90, + 'pt' => 50, + 'g' => '24-11-2025' + ], + [ + 'nome' => 's1', + 'p1' => 95, + 'p2' => 90, + 'pt' => 50, + 'g' => '24-11-2025' + ] +]; +$classifica = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; +function riga($pos, $data) { + $pos++; + $nome = $data['nome']; + $p1 = $data['p1']; + $p2 = $data['p2']; + $pt = $data['pt']; + $g = $data['g']; + echo ''.$pos.''.$nome.''.$p1.''.$p2.''.$pt.''.$g.''; +} +?> \ No newline at end of file