/** Page to add an impediment. */ public function add() { $data['page_title'] = lang('add_impediment'); $data['participants'] = participant_options($this->participantModel->get_all_participants(TRUE)); $this->load->view('templates/header', $data); $this->load->view('impediment_add_view', $data); $this->load->view('templates/footer'); }
/** Specifies the contents of the add (single) score page */ public function add($participant_id = 0) { $data['page_title'] = lang('add_dyslexia'); $data['new_dyslexia'] = TRUE; $data['action'] = 'dyslexia/add_submit'; $data = add_fields($data, 'dyslexia'); $data['participant_id'] = $participant_id; $data['participants'] = participant_options($this->participantModel->get_all_participants(TRUE)); $this->load->view('templates/header', $data); $this->load->view('dyslexia_edit_view', $data); $this->load->view('templates/footer'); }
/** Specifies the contents of the add testinvite page */ public function add() { $testsurveys = $this->testSurveyModel->get_all_testsurveys(); $participants = $this->participantModel->get_all_participants(TRUE); $data['testsurveys'] = testsurvey_options($testsurveys); $data['participants'] = participant_options($participants); $data['page_title'] = lang('add_testinvite'); $data['action'] = 'testinvite/add_submit/'; $data = add_fields($data, 'testinvite'); $this->load->view('templates/header', $data); $this->load->view('testinvite_edit_view', $data); $this->load->view('templates/footer'); }
<?php echo heading(lang('scores'), 2); ?> <?php echo $this->session->flashdata('message'); ?> <?php echo form_open($action, array('class' => 'pure-form pure-form-stacked')); echo form_fieldset($page_title); ?> <div class="pure-g-r"> <?php echo form_dropdown_and_label('participant', participant_options($participants), $participant_id, '', TRUE, 'pure-u-1-3'); ?> <?php echo form_dropdown_and_label('test', test_options($tests), $test_id, '', TRUE, 'pure-u-1-3'); ?> <?php echo form_input_and_label('date', $date, 'id="score_datepicker" required', FALSE, 'pure-u-1-3'); ?> </div> <?php echo form_fieldset_close(); ?> <!-- Below, the scores will be shown on selection of the test or participant --> <?php
/** Add view for ad hoc participation */ public function add() { $this->admin_only(); $participants = $this->participantModel->get_all_participants(); $experiments = $this->experimentModel->get_all_experiments(); $leaders = array_merge($this->userModel->get_all_leaders(), $this->userModel->get_all_admins()); $data['page_title'] = lang('ad_hoc_participation'); $data['action'] = 'participation/add_submit'; $data['experiments'] = experiment_options($experiments); $data['participants'] = participant_options($participants); $data['leaders'] = leader_options($leaders); $this->load->view('templates/header', $data); $this->load->view('participation_add_view', $data); $this->load->view('templates/footer'); }
echo lang('filter_experiment'); ?> "> <?php foreach (experiment_options($experiments) as $id => $option) { echo '<option value="' . $id . '">' . $option . '</option>\\n'; } ?> </select> <select class="chosen-select select-participant" multiple data-placeholder="<?php echo lang('filter_participant'); ?> "> <?php foreach (participant_options($participants) as $id => $option) { echo '<option value="' . $id . '">' . $option . '</option>\\n'; } ?> </select> <br> <select class="chosen-select select-location" multiple data-placeholder="<?php echo lang('filter_location'); ?> "> <?php foreach (location_options($locations) as $id => $option) { echo '<option value="' . $id . '">' . $option . '</option>\\n'; }