/** Specifies the contents of the default page. */
 public function index()
 {
     $add_url = array('url' => 'testsurvey/add', 'title' => lang('add_testsurvey'));
     create_testsurvey_table();
     $data['ajax_source'] = 'testsurvey/table/';
     $data['page_title'] = lang('testsurveys');
     $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');
 }
Example #2
0
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');
$testsurveys['id'] = 'testsurveys';
$testsurveys['ajax_source'] = 'testsurvey/table_by_test/' . $test->id;
$this->load->view('templates/list_view', $testsurveys);
?>
	</div>

	<!-- Testinvites -->
	<h3>
	<?php 
echo lang('testinvites');
?>
	</h3>
	<div>
	<?php 
create_testinvite_table('testinvites');