diff --git a/application/controllers/trials.php b/application/controllers/trials.php index 62a1945..41102d9 100644 --- a/application/controllers/trials.php +++ b/application/controllers/trials.php @@ -49,8 +49,11 @@ class Trials extends CI_Controller { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('', ''); + $programs = $this->program->getAll(); + // Get the parameters for a specific program - $parameters = $this->program->getParameters('28dc3aeef315080ee26524cf515f763187f52601'); + foreach($programs as $program) + $parameters[$program['id']] = $this->program->getParameters($program['id']); $config = array( array( @@ -71,6 +74,7 @@ class Trials extends CI_Controller { if ($this->form_validation->run() == FALSE) { $tpl['parameters'] = $parameters; + $tpl['programs'] = $programs; $this->load->view('trial/new', $tpl); } else diff --git a/application/views/trial/new.php b/application/views/trial/new.php index 065c05a..bbbeab4 100644 --- a/application/views/trial/new.php +++ b/application/views/trial/new.php @@ -64,14 +64,22 @@ -

Bitte wählen Sie zunächst das Programm aus, mit dem Sie eine Berechnung durchführen möchten:

- +

Programm zur Berechnung

+

+ + +

+ -
-
+ -
-

foobar

-
+

+
+ + -