diff --git a/Sources/public/assets/img/account.png b/Sources/public/assets/img/account.png new file mode 100644 index 00000000..86846d8f Binary files /dev/null and b/Sources/public/assets/img/account.png differ diff --git a/Sources/public/assets/img/block.png b/Sources/public/assets/img/block.png new file mode 100644 index 00000000..742d5af4 Binary files /dev/null and b/Sources/public/assets/img/block.png differ diff --git a/Sources/public/assets/img/delete.png b/Sources/public/assets/img/delete.png new file mode 100644 index 00000000..22b7348f Binary files /dev/null and b/Sources/public/assets/img/delete.png differ diff --git a/Sources/public/assets/img/menu.png b/Sources/public/assets/img/menu.png new file mode 100644 index 00000000..2af8a45e Binary files /dev/null and b/Sources/public/assets/img/menu.png differ diff --git a/Sources/public/assets/img/msg.png b/Sources/public/assets/img/msg.png new file mode 100644 index 00000000..ab66a4d9 Binary files /dev/null and b/Sources/public/assets/img/msg.png differ diff --git a/Sources/public/assets/img/person/test.png b/Sources/public/assets/img/person/test.png new file mode 100644 index 00000000..6567a547 Binary files /dev/null and b/Sources/public/assets/img/person/test.png differ diff --git a/Sources/public/assets/img/person/test2.png b/Sources/public/assets/img/person/test2.png new file mode 100644 index 00000000..8cdeb44d Binary files /dev/null and b/Sources/public/assets/img/person/test2.png differ diff --git a/Sources/public/assets/img/person/test3.png b/Sources/public/assets/img/person/test3.png new file mode 100644 index 00000000..57d9b7e0 Binary files /dev/null and b/Sources/public/assets/img/person/test3.png differ diff --git a/Sources/public/assets/img/verif/false.png b/Sources/public/assets/img/verif/false.png new file mode 100644 index 00000000..33e38466 Binary files /dev/null and b/Sources/public/assets/img/verif/false.png differ diff --git a/Sources/public/assets/img/verif/true.png b/Sources/public/assets/img/verif/true.png new file mode 100644 index 00000000..d5dfe276 Binary files /dev/null and b/Sources/public/assets/img/verif/true.png differ diff --git a/Sources/src/app/home.php b/Sources/src/app/home.php index ac9048b7..d5e3ca3e 100755 --- a/Sources/src/app/home.php +++ b/Sources/src/app/home.php @@ -1,9 +1,30 @@ array("img" => "test","nom" => "Kilou", "prenom" => "Clément", "status" => "En ligne"), + "b" => array("img" => "test2","nom" => "Kilou", "prenom" => "Frédérique", "status" => "En ligne"), + "c" => array("img" => "test3","nom" => "Kilou", "prenom" => "Hugo", "status" => "Hors ligne") + ); + $listA= array ( + "a" => array("date" => "29/11/18","type" => "Nage", "bpm" => "116", "kmh" => "3.0","distance" => "0.6"), + "b" => array("date" => "27/11/18","type" => "Sprint", "bpm" => "143", "kmh" => "19.0","distance" => "4.2"), + "c" => array("date" => "23/11/18","type" => "Cyclisme", "bpm" => "126", "kmh" => "27.0","distance" => "30.0") + ); + + $listM= array ( + "a" => array("lu" => "false","nom" => "Julien", "prenom" => "Clément", "message" => "Sale connard de végan"), + "b" => array("lu" => "true","nom" => "Ferdiloi", "prenom" => "Frédérique", "message" => "3.0"), + "c" => array("lu" => "true","nom" => "liekrgn", "prenom" => "kqerzrg", "message" => "3.0") + ); $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/views/Templates'); $twig = new \Twig\Environment($loader); $template=$twig->load('./page/mail.html.twig'); - $template->display(); + $template->display([ + 'user' => "Antoine", + 'friendship' => $listF, + 'analyzes' => $listA, + 'mails' => $listM + ]); ?> \ No newline at end of file diff --git a/Sources/src/app/views/Templates/page/analyze.html.twig b/Sources/src/app/views/Templates/page/analyze.html.twig index 86c7a4a7..1b4a7bed 100755 --- a/Sources/src/app/views/Templates/page/analyze.html.twig +++ b/Sources/src/app/views/Templates/page/analyze.html.twig @@ -2,7 +2,7 @@ {% block title %}Analyses - HearthTrack{% endblock %} -{% block user %}Abdul Admin{% endblock %} +{% block user %}Admin{% endblock %} {% block body %}
Nom | Prénom | Status | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gautier | -Théophile | -En ligne | -(Profil) | -(Message) | -(Supprimer) | -(Bloquer) | -|||||
Francis | -François | -En ligne | -(Profil) | -(Message) | -(Supprimer) | -(Bloquer) | +
+ ![]() |
+ {{ami.nom}} | +{{ami.prenom}} | +{{ami.status}} | +
+ ![]() ![]() ![]() |