예제 #1
0
 /** Specifies the contents of the default page. */
 public function index($needs_manual_reminder = FALSE)
 {
     $add_url = array('url' => 'testinvite/add', 'title' => lang('add_testinvite'));
     $manual_reminder_url = array('url' => 'testinvite/index/1', 'title' => lang('needs_manual_reminder'));
     $show_all_url = array('url' => 'testinvite/index', 'title' => lang('show_all_testinvites'));
     $filter_url = $needs_manual_reminder ? $show_all_url : $manual_reminder_url;
     create_testinvite_table();
     $data['ajax_source'] = 'testinvite/table/' . $needs_manual_reminder;
     $data['page_title'] = lang('testinvites');
     $data['action_urls'] = array($add_url, $filter_url);
     $data['sort_column'] = 3;
     // Sort on date sent, descending
     $data['sort_order'] = 'desc';
     $this->load->view('templates/header', $data);
     $this->load->view('templates/list_view', $data);
     $this->load->view('templates/footer');
 }
    echo '</p>';
}
?>

	<!-- Scores -->
	<?php 
echo heading(lang('scores'), 3);
?>
	<div>
		<?php 
create_score_table('scores', 'testsurvey');
$scores['id'] = 'scores';
$scores['ajax_source'] = 'score/table_by_testsurvey/' . $testsurvey->id;
$this->load->view('templates/list_view', $scores);
?>
	</div>

	<!-- Testinvites -->
	<?php 
echo heading(lang('testinvites'), 3);
?>
	<div>
		<?php 
create_testinvite_table('testinvites');
$testinvites['id'] = 'testinvites';
$testinvites['ajax_source'] = 'testinvite/table_by_testsurvey/' . $testsurvey->id;
$this->load->view('templates/list_view', $testinvites);
?>
	</div>
</div>