示例#1
0
 /** Filters the testcats by test on the add page. */
 public function filter_testcats()
 {
     $test_id = $this->input->post('test_id');
     $testcats = $this->testCatModel->get_testcats_by_test($test_id, TRUE);
     echo form_dropdown_and_label('testcat', testcat_options($testcats));
 }
?>

<?php 
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_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>