Esempio n. 1
0
	<div id="actions">
		<?php 
if (isset($action_urls) && $action_urls) {
    echo heading(lang('actions'), 3);
    $actions = array();
    foreach ($action_urls as $action_url) {
        array_push($actions, anchor($action_url['url'], $action_url['title'], array('title' => $action_url['title'])));
    }
    echo ul($actions);
}
?>
	</div>

	<div id="filters">
		<?php 
if (isset($filter_options) && $filter_options) {
    echo heading(lang('filters'), 3);
    echo form_open(current_url(), array('class' => 'pure-form'));
    $filters = array();
    foreach ($filter_options as $f) {
        echo form_single_checkbox_and_label($f['name'], '1', $f['checked'] ? '1' : '0', FALSE, '', '', TRUE);
        echo br();
    }
    echo form_submit_only();
    echo form_close();
}
?>
	</div>
</div>
echo lang('period');
?>
</label>
<?php 
echo form_input('date_start', $date_start, 'id="from" readonly placeholder="' . lang('date_start') . '"');
?>
-
<?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>
<?php 
echo form_textarea_and_label('comment', $comment, lang('part_comment'), 'required');
?>
<p class="warning"><?php 
echo lang('pp_comment_info');
?>
</p>
<?php 
echo form_textarea_and_label('pp_comment', $pp_comment, lang('pp_comment'));
?>
<p class="warning"><?php 
echo lang('tech_comment_info');
?>
</p>
<?php 
echo form_textarea_and_label('tech_comment', $tech_comment, lang('tech_comment'));
?>

<?php 
echo form_fieldset(lang('actions'));
echo form_single_checkbox_and_label('cancelled_complete', '1');
?>

<!-- TODO: add result file here. -->

<?php 
echo form_controls('participation/experiment/' . $experiment_id);
echo form_fieldset_close();
echo form_close();
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();
<?php 
echo $this->session->flashdata('message');
echo form_open('closing/add_submit/', array('class' => 'pure-form pure-form-aligned'));
echo form_fieldset(lang('add_closing'));
echo form_single_checkbox_and_label('lockdown', '1');
?>

<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 heading(lang('testinvites'), 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_dropdown_and_label('testsurvey', $testsurveys, array(), 'class="chosen-select"');
echo form_dropdown_and_label('participant', $participants, array(), 'class="chosen-select"');
echo form_single_checkbox_and_label('concept', '1', FALSE, FALSE, sprintf(lang('concept_mail_only'), TO_EMAIL_OVERRIDE));
echo form_controls();
echo form_fieldset_close();
echo form_close();