/** Specifies the contents of the default page. */ public function index() { $add_url = array('url' => 'testcat/add', 'title' => lang('add_testcat')); create_testcat_table(); $data['ajax_source'] = 'testcat/table_roots/'; $data['page_title'] = lang('testcats'); $data['action_urls'] = array($add_url); $this->load->view('templates/header', $data); $this->authenticate->authenticate_redirect('templates/list_view', $data, UserRole::Admin); $this->load->view('templates/footer'); }
if (in_array($test->code, array('ncdi_wz', 'anamnese'))) { echo '<p>'; echo anchor('test/download_scores/' . $test->id, lang('download_scores')); echo '</p>'; } ?> <!-- Testcats --> <h3> <?php echo lang('testcats'); ?> </h3> <div> <?php create_testcat_table('testcats'); $testcats['id'] = 'testcats'; $testcats['ajax_source'] = 'testcat/table_roots/' . $test->id; $this->load->view('templates/list_view', $testcats); ?> </div> <!-- Testsurveys --> <h3> <?php echo lang('testsurveys'); ?> </h3> <div> <?php create_testsurvey_table('testsurveys');