From aa2722e2f6cb42e913c9092813c0a64e4a5bf715 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 30 Jan 2023 08:02:12 +0100 Subject: [PATCH] Add IPrintStrategy implementation for ListBoxQuestion Class --- Source/BusinessClass/ListBoxQuestion.php | 17 ++++++++++++- Source/Views/HTML/form.php | 31 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Source/BusinessClass/ListBoxQuestion.php b/Source/BusinessClass/ListBoxQuestion.php index 3ce94b1..13bea59 100644 --- a/Source/BusinessClass/ListBoxQuestion.php +++ b/Source/BusinessClass/ListBoxQuestion.php @@ -21,6 +21,21 @@ class ListBoxQuestion extends BoxQuestion public function printStrategy(): string { - // TODO: Implement printStrategy() method. + $content = $this->getContent(); + $possibleResponses = $this->getPossibleResponses(); + $categories = $this->getCategories(); + + $html = "
+ + +
"; + + return $html; } } \ No newline at end of file diff --git a/Source/Views/HTML/form.php b/Source/Views/HTML/form.php index 0d4049f..b5f7cbf 100644 --- a/Source/Views/HTML/form.php +++ b/Source/Views/HTML/form.php @@ -18,7 +18,36 @@
$content + "; + + $content2 = "Parles nous rapidement de ce que l'IUT t'as apporté"; + $printStrategy2 = " + "; + + + $possibleResponses = array("BAC Pro", "BAC Général Scientifique", "BAC général Éco"); + $categories = array("Pro", "Scientifique", "Éco"); + + $content3 = "Séléctionnez votre cursus :"; + $printStrategy3 = "
+ + +
"; + + + echo $printStrategy."\n"; + echo $printStrategy2."\n"; + echo $printStrategy3."\n"; ?>