?>

<?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 
echo form_fieldset(lang('scores'));
?>
<div id="scores">
    <?php 
echo lang('select_test_participant');
?>
<?php

echo heading(lang('users'), 2);
?>

<?php 
echo form_open('user/change_password_submit/' . $user_id, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
echo form_input_and_label('username', $username, 'readonly');
echo form_input_and_label('password_prev', '', 'required', TRUE);
echo form_input_and_label('password_new', '', 'required', TRUE);
echo form_input_and_label('password_conf', '', 'required', TRUE);
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo validation_errors();
?>
-
<?php 
echo form_input('date_end', $date_end, 'id="to" readonly placeholder="' . lang('date_end') . '"');
?>
</div>

<?php 
echo form_fieldset('Eisen aan deelnemers');
echo form_single_checkbox_and_label('dyslexic', '1', $dyslexic);
echo form_single_checkbox_and_label('multilingual', '1', $multilingual);
echo form_input_and_label('agefrommonths', $agefrommonths, 'required class="positive-integer"');
echo form_input_and_label('agefromdays', $agefromdays, 'required class="positive-integer"');
echo form_input_and_label('agetomonths', $agetomonths, 'required class="positive-integer"');
echo form_input_and_label('agetodays', $agetodays, 'required class="positive-integer"');
echo form_input_and_label('target_nr_participants', $target_nr_participants, 'required class="positive-integer"');
?>

<?php 
echo form_fieldset('Bellers en leiders');
echo form_multiselect_and_label('callers', $callers, isset($current_caller_ids) ? $current_caller_ids : array());
echo form_multiselect_and_label('leaders', $leaders, isset($current_leader_ids) ? $current_leader_ids : array());
?>

<?php 
echo form_fieldset(lang('relations'));
?>
<p class="info"><?php 
echo lang('prerequisite_info');
?>
</p>
<?php 
if ($new_percentile) {
    echo form_dropdown_and_label('test', test_options($tests), $test_id);
    if (!empty($testcat_id)) {
        echo form_dropdown_and_label('testcat', testcat_options($testcats), $testcat_id);
    } else {
        echo form_dropdown_and_label('testcat', array(), array(), 'disabled');
    }
} else {
    echo form_input_and_label('test', $test->name, 'readonly');
    echo form_input_and_label('testcat', testcat_code_name($testcat), 'readonly');
}
?>
<div class="pure-control-group">
<?php 
echo form_label(lang('gender'), 'gender');
echo form_radio_and_label('gender', Gender::Female, $gender, gender(Gender::Female));
echo form_radio_and_label('gender', Gender::Male, $gender, gender(Gender::Male));
?>
</div>
<?php 
echo form_input_and_label('age', $age, 'class="positive-integer"');
echo form_input_and_label('score', $score, 'required="true" class="positive-integer"');
echo form_input_and_label('percentile', $percentile, 'required="true" max="100" class="positive-integer" onclick="window.close()"');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo validation_errors();
Beispiel #5
0
echo lang('selfservice_explanation');
?>
</p>

<?php 
echo form_open('selfservice/welcome_submit', array('class' => 'pure-form pure-form-aligned'));
?>

<?php 
echo form_fieldset(lang('selfservice_contact_heading'));
echo form_input_and_label('parentfirstname', $parentfirstname, 'required');
echo form_input_and_label('parentlastname', $parentlastname, 'required');
echo form_input_and_label('city', $city);
echo form_input_and_label('phone', $phone, 'required');
echo form_input_and_label('phonealt', $phonealt);
echo form_input_and_label('email', $email, 'required email="true"');
?>

<?php 
echo form_fieldset_close();
echo form_fieldset(lang('selfservice_pps_heading'));
?>
<p><?php 
echo lang('selfservice_pps_help');
?>
</p>

<?php 
$tmpl = array('table_open' => '<table class="pure-table">');
$this->table->set_template($tmpl);
$this->table->set_heading(ucfirst(lang('child')), lang('gender'), lang('dob'), 'Babylab Utrecht', lang('other_babylabs'));
	$( "#appointment" ).attr({
		readOnly : true
	});
});
</script>

<?php 
echo heading(lang('participation'), 2);
?>

<p class="warning"><?php 
echo lang('participation_no_restrictions');
?>
</p> 
<?php 
echo $this->session->flashdata('message');
?>

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
?>

<?php 
echo form_fieldset($page_title);
echo form_dropdown_and_label('experiment', $experiments, array(), 'class="chosen-select"');
echo form_dropdown_and_label('participant', $participants, array(), 'class="chosen-select"');
echo form_dropdown_and_label('leader', $leaders, array(), 'class="chosen-select"');
echo form_input_and_label('appointment', '', 'placeholder= "' . lang('appointment') . '" id="appointment"');
echo form_controls();
echo form_fieldset_close();
echo form_close();
<?php

echo heading(lang('results'), 2);
?>

<?php 
echo $this->session->flashdata('message');
?>

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
echo form_input_and_label('phasenr', $phasenr, 'required');
echo form_input_and_label('phase', $phase, 'required');
echo form_input_and_label('trial', $trial, 'required');
echo form_input_and_label('lookingtime', $lookingtime, 'required');
echo form_input_and_label('nrlooks', $nrlooks, 'required');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
echo validation_errors();
echo $this->session->flashdata('message');
?>

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
if ($new_testcat) {
    echo form_dropdown_and_label('test', test_options($tests), $test_id);
    if (!empty($testcat_id)) {
        echo form_dropdown_and_label('parent_testcat', testcat_options($testcats), $testcat_id);
    } else {
        echo form_dropdown_and_label('parent_testcat', array(), array(), 'disabled');
    }
} else {
    echo form_input_and_label('test', $test->name, 'readonly');
    if (!empty($parent_testcat)) {
        echo form_input_and_label('parent_testcat', $parent_testcat->name, 'readonly');
    }
}
echo form_input_and_label('code', $code, 'required');
echo form_input_and_label('name', $name, 'required');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
echo validation_errors();
<?php 
echo $this->session->flashdata('message');
?>

<p><?php 
echo sprintf(lang('complete_part_info'), $participant_name, $experiment_name);
?>
</p>

<?php 
echo form_open('participation/completed_submit/' . $participation_id, array('class' => 'pure-form  pure-form-aligned'));
?>

<?php 
echo form_fieldset(lang('complete_part'));
echo form_input_and_label('part_number', $part_number, 'required');
?>
<div class="pure-control-group">
<?php 
echo form_label(lang('interrupted_long'), 'interrupted');
echo form_radio_and_label('interrupted', '1', $interrupted, lang('yes'));
echo form_radio_and_label('interrupted', '0', $interrupted, lang('no'), TRUE);
?>
</div>
<div class="pure-control-group">
<?php 
echo form_label(lang('excluded_long'), 'excluded');
echo form_radio_and_label('excluded', '1', $excluded, lang('yes'));
echo form_radio_and_label('excluded', '0', $excluded, lang('no'), TRUE);
?>
</div>
    echo form_dropdown_and_label('test', test_options($tests), $test_id);
    if (!empty($testcat_id)) {
        echo form_dropdown_and_label('testcat', testcat_options($testcats), $testcat_id);
    } else {
        echo form_dropdown_and_label('testcat', array(), array(), 'disabled');
    }
    if (!empty($testsurvey_id)) {
        echo form_dropdown_and_label('testsurvey', testsurvey_options($testsurveys), $testsurvey_id);
    } else {
        echo form_dropdown_and_label('testsurvey', array(), array(), 'disabled');
    }
    echo form_input_and_label('participant');
    echo form_hidden('participant_id', $participant_id);
} else {
    echo form_input_and_label('test', $test->name, 'readonly');
    echo form_input_and_label('testcat', testcat_code_name($testcat), 'readonly');
    echo form_input_and_label('participant', name($participant), 'readonly');
    echo form_input_and_label('testsurvey', testsurvey_when($testsurvey->whensent, $testsurvey->whennr), 'readonly');
}
?>

<?php 
echo form_input_and_label('score', $score, 'class="positive-integer"');
echo form_input_and_label('date', $date, 'id="score_datepicker"');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
echo validation_errors();
echo form_fieldset($page_title);
?>

<?php 
if ($new_dyslexia) {
    echo form_dropdown_and_label('participant', $participants, array(), 'class="chosen-select"');
} else {
    echo form_input_and_label('participant', name($participant), 'readonly');
}
?>

<div class="pure-control-group">
<?php 
echo form_label(lang('parent'), 'gender');
echo form_radio_and_label('gender', Gender::Female, $gender, gender_parent(Gender::Female));
echo form_radio_and_label('gender', Gender::Male, $gender, gender_parent(Gender::Male));
echo form_error('gender');
?>
</div>
<?php 
echo form_single_checkbox_and_label('statement', '1', $statement);
echo form_input_and_label('emt_score', $emt_score, 'class="positive-integer"');
echo form_input_and_label('klepel_score', $klepel_score, 'class="positive-integer"');
echo form_input_and_label('vc_score', $vc_score, 'class="positive-integer"');
echo form_textarea_and_label('comment', $comment);
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
<div id="location_field">
	<?php 
echo form_multiselect_and_label('location', $locations, array(), 'class="chosen-select"');
?>
</div>

<?php 
echo form_single_checkbox_and_label('all_day', '1');
?>
<div id="times">
	<?php 
echo form_input_and_label('from_date', '', 'id="from" readonly');
?>
	<?php 
echo form_input_and_label('to_date', '', 'id="to" readonly');
?>
</div>
<div id="all_day_field">
	<?php 
echo form_input_and_label('date', '', 'id="date" readonly');
?>
</div>

<?php 
echo form_textarea_and_label('comment');
?>

<?php 
echo form_submit_only();
echo form_fieldset_close();
echo form_close();
    <?php 
}
?>
    <?php 
echo form_radio_and_label('role', UserRole::Leader, $role);
?>
    <?php 
echo form_radio_and_label('role', UserRole::Caller, $role);
?>
</div>
<?php 
echo form_input_and_label('firstname', $firstname, 'required');
echo form_input_and_label('lastname', $lastname, 'required');
echo form_input_and_label('email', $email, 'required');
echo form_input_and_label('phone', $phone);
echo form_input_and_label('mobile', $mobile);
?>
<div class="pure-control-group">
    <?php 
echo form_label(lang('preferredlanguage'), 'preferredlanguage');
?>
    <?php 
echo form_radio_and_label('preferredlanguage', 'en', $preferredlanguage, lang(L::English));
?>
    <?php 
echo form_radio_and_label('preferredlanguage', 'nl', $preferredlanguage, lang(L::Dutch));
?>
</div>
<?php 
echo form_hidden('referrer', $referrer);
?>
<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
if ($new_testsurvey) {
    echo form_dropdown_and_label('test', test_options($tests), $test_id);
} else {
    echo form_input_and_label('test', $test->name, 'readonly');
}
echo form_input_and_label('limesurvey_id', $limesurvey_id, 'required class="positive-integer"');
?>
<div class="pure-control-group">
<?php 
echo form_label(lang('whensent'), 'whensent');
echo form_radio_and_label('whensent', TestWhenSent::Participation, $whensent, lcfirst(lang(TestWhenSent::Participation)));
echo form_radio_and_label('whensent', TestWhenSent::Months, $whensent, lang(TestWhenSent::Months));
echo form_radio_and_label('whensent', TestWhenSent::Manual, $whensent, lang(TestWhenSent::Manual));
?>
</div>
<?php 
echo form_input_and_label('whennr', $whennr, 'required class="positive-integer"');
echo form_textarea_and_label('description', $description, lang('survey_description'));
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
<?php

echo heading(lang('locations'), 2);
?>

<?php 
echo $this->session->flashdata('message');
?>

<?php 
echo form_open($action, array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset($page_title);
?>

<?php 
echo form_input_and_label('name', $name, 'required');
echo form_input_and_label('roomnumber', $roomnumber, 'required');
?>

<?php 
echo form_controls();
echo form_fieldset_close();
echo form_close();
echo validation_errors();