Exemplo n.º 1
0
 /** Specifies the contents of the default page. */
 public function index()
 {
     $add_url = array('url' => 'dyslexia/add', 'title' => lang('add_dyslexia'));
     $download_url = array('url' => 'dyslexia/download', 'title' => lang('download_dyslexia'));
     create_dyslexia_table();
     $data['ajax_source'] = 'dyslexia/table/';
     $data['page_title'] = lang('dyslexia');
     $data['action_urls'] = array($add_url, $download_url);
     $this->load->view('templates/header', $data);
     $this->load->view('templates/list_view', $data);
     $this->load->view('templates/footer');
 }
	<!-- Languages and dyslexia -->
	<?php 
if ($participant->multilingual || $participant->dyslexicparent) {
    echo heading(lang('specific_info'), 3);
    echo '<div>';
    if ($participant->multilingual) {
        echo heading(lang('languages'), 4);
        create_language_table('languages');
        $languages['id'] = 'languages';
        $languages['ajax_source'] = 'language/table_by_participant/' . $participant->id;
        $this->load->view('templates/list_view', $languages);
    }
    if ($participant->dyslexicparent) {
        echo heading(lang('dyslexia'), 4);
        create_dyslexia_table('dyslexia');
        $dyslexia['id'] = 'dyslexia';
        $dyslexia['ajax_source'] = 'dyslexia/table_by_participant/' . $participant->id;
        $this->load->view('templates/list_view', $dyslexia);
    }
    echo '</div>';
}
?>

	<!-- Impediments -->
	<?php 
echo heading(lang('impediments') . ' (' . $impediment_size . ')', 3);
?>
	<div>
	<?php 
create_impediment_table('impediments');