2 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
3 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
5 define('AT_PRIV_TESTS', $this->getPrivilege());
\r
7 // if this module is to be made available to students on the Home or Main Navigation
\r
8 $_student_tool = 'tools/my_tests.php';
\r
10 $this->_pages['tools/tests/index.php']['title_var'] = 'tests';
\r
11 $this->_pages['tools/tests/index.php']['parent'] = 'tools/index.php';
\r
12 $this->_pages['tools/tests/index.php']['guide'] = 'instructor/?p=tests_surveys.php';
\r
13 $this->_pages['tools/tests/index.php']['children'] = array('tools/tests/create_test.php', 'tools/tests/question_db.php', 'tools/tests/question_cats.php');
\r
15 $this->_pages['tools/tests/create_test.php']['title_var'] = 'create_test';
\r
16 $this->_pages['tools/tests/create_test.php']['parent'] = 'tools/tests/index.php';
\r
17 $this->_pages['tools/tests/create_test.php']['guide'] = 'instructor/?p=creating_tests_surveys.php';
\r
19 $this->_pages['tools/tests/question_db.php']['title_var'] = 'question_database';
\r
20 $this->_pages['tools/tests/question_db.php']['parent'] = 'tools/tests/index.php';
\r
21 $this->_pages['tools/tests/question_db.php']['guide'] = 'instructor/?p=question_database.php';
\r
23 $this->_pages['tools/tests/create_question_multi.php']['title_var'] = 'create_question_multi';
\r
24 $this->_pages['tools/tests/create_question_multi.php']['parent'] = 'tools/tests/question_db.php';
\r
26 $this->_pages['tools/tests/question_cats.php']['title_var'] = 'question_categories';
\r
27 $this->_pages['tools/tests/question_cats.php']['parent'] = 'tools/tests/index.php';
\r
28 $this->_pages['tools/tests/question_cats.php']['children'] = array('tools/tests/question_cats_manage.php');
\r
29 $this->_pages['tools/tests/question_cats.php']['guide'] = 'instructor/?p=question_categories.php';
\r
31 $this->_pages['tools/tests/question_cats_manage.php']['title_var'] = 'create_category';
\r
32 $this->_pages['tools/tests/question_cats_manage.php']['parent'] = 'tools/tests/question_cats.php';
\r
34 $this->_pages['tools/tests/question_cats_delete.php']['title_var'] = 'delete_category';
\r
35 $this->_pages['tools/tests/question_cats_delete.php']['parent'] = 'tools/tests/question_cats.php';
\r
37 $this->_pages['tools/tests/edit_test.php']['title_var'] = 'edit_test';
\r
38 $this->_pages['tools/tests/edit_test.php']['parent'] = 'tools/tests/index.php';
\r
40 $this->_pages['tools/tests/preview.php']['title_var'] = 'preview_questions';
\r
41 $this->_pages['tools/tests/preview.php']['parent'] = 'tools/tests/index.php';
\r
42 $this->_pages['tools/tests/preview.php']['guide'] = 'instructor/?p=preview.php';
\r
44 $this->_pages['tools/tests/preview_question.php']['title_var'] = 'preview';
\r
45 $this->_pages['tools/tests/preview_question.php']['parent'] = 'tools/tests/question_db.php';
\r
47 $this->_pages['tools/tests/results.php']['title_var'] = 'submissions';
\r
48 $this->_pages['tools/tests/results.php']['parent'] = 'tools/tests/index.php';
\r
50 $this->_pages['tools/tests/results_all.php']['guide'] = 'instructor/?p=student_submissions.php';
\r
52 //$this->_pages['tools/tests/results_all_quest.php']['title_var'] = _AT('question')." "._AT('statistics');
\r
53 //$this->_pages['tools/tests/results_all_quest.php']['parent'] = 'tools/tests/index.php';
\r
54 $this->_pages['tools/tests/results_all_quest.php']['guide'] = 'instructor/?p=test_statistics.php';
\r
56 $this->_pages['tools/tests/delete_test.php']['title_var'] = 'delete_test';
\r
57 $this->_pages['tools/tests/delete_test.php']['parent'] = 'tools/tests/index.php';
\r
59 $this->_pages['tools/view_results.php']['title_var'] = 'view_results';
\r
60 $this->_pages['tools/view_results.php']['parent'] = 'tools/my_tests.php';
\r
61 $this->_pages['tools/view_results.php']['children'] = array(); // to create the "back to tests" link
\r
64 $this->_pages['tools/tests/create_question_tf.php']['title_var'] = 'create_new_question';
\r
65 $this->_pages['tools/tests/create_question_tf.php']['parent'] = 'tools/tests/question_db.php';
\r
67 $this->_pages['tools/tests/create_question_truefalse.php']['title_var'] = 'create_new_question';
\r
68 $this->_pages['tools/tests/create_question_truefalse.php']['parent'] = 'tools/tests/question_db.php';
\r
70 $this->_pages['tools/tests/create_question_multi.php']['title_var'] = 'create_new_question';
\r
71 $this->_pages['tools/tests/create_question_multi.php']['parent'] = 'tools/tests/question_db.php';
\r
73 $this->_pages['tools/tests/create_question_multichoice.php']['title_var'] = 'create_new_question';
\r
74 $this->_pages['tools/tests/create_question_multichoice.php']['parent'] = 'tools/tests/question_db.php';
\r
76 $this->_pages['tools/tests/create_question_multianswer.php']['title_var'] = 'create_new_question';
\r
77 $this->_pages['tools/tests/create_question_multianswer.php']['parent'] = 'tools/tests/question_db.php';
\r
79 $this->_pages['tools/tests/create_question_long.php']['title_var'] = 'create_new_question';
\r
80 $this->_pages['tools/tests/create_question_long.php']['parent'] = 'tools/tests/question_db.php';
\r
82 $this->_pages['tools/tests/create_question_likert.php']['title_var'] = 'create_new_question';
\r
83 $this->_pages['tools/tests/create_question_likert.php']['parent'] = 'tools/tests/question_db.php';
\r
85 $this->_pages['tools/tests/create_question_matching.php']['title_var'] = 'create_new_question';
\r
86 $this->_pages['tools/tests/create_question_matching.php']['parent'] = 'tools/tests/question_db.php';
\r
88 $this->_pages['tools/tests/create_question_matchingdd.php']['title_var'] = 'create_new_question';
\r
89 $this->_pages['tools/tests/create_question_matchingdd.php']['parent'] = 'tools/tests/question_db.php';
\r
91 $this->_pages['tools/tests/create_question_ordering.php']['title_var'] = 'create_new_question';
\r
92 $this->_pages['tools/tests/create_question_ordering.php']['parent'] = 'tools/tests/question_db.php';
\r
94 $this->_pages['tools/tests/edit_question_tf.php']['title_var'] = 'edit_question';
\r
95 $this->_pages['tools/tests/edit_question_tf.php']['parent'] = 'tools/tests/question_db.php';
\r
97 $this->_pages['tools/tests/edit_question_truefalse.php']['title_var'] = 'edit_question';
\r
98 $this->_pages['tools/tests/edit_question_truefalse.php']['parent'] = 'tools/tests/question_db.php';
\r
100 $this->_pages['tools/tests/edit_question_multi.php']['title_var'] = 'edit_question';
\r
101 $this->_pages['tools/tests/edit_question_multi.php']['parent'] = 'tools/tests/question_db.php';
\r
103 $this->_pages['tools/tests/edit_question_multichoice.php']['title_var'] = 'edit_question';
\r
104 $this->_pages['tools/tests/edit_question_multichoice.php']['parent'] = 'tools/tests/question_db.php';
\r
106 $this->_pages['tools/tests/edit_question_multianswer.php']['title_var'] = 'edit_question';
\r
107 $this->_pages['tools/tests/edit_question_multianswer.php']['parent'] = 'tools/tests/question_db.php';
\r
109 $this->_pages['tools/tests/edit_question_long.php']['title_var'] = 'edit_question';
\r
110 $this->_pages['tools/tests/edit_question_long.php']['parent'] = 'tools/tests/question_db.php';
\r
112 $this->_pages['tools/tests/edit_question_likert.php']['title_var'] = 'edit_question';
\r
113 $this->_pages['tools/tests/edit_question_likert.php']['parent'] = 'tools/tests/question_db.php';
\r
115 $this->_pages['tools/tests/edit_question_matching.php']['title_var'] = 'edit_question';
\r
116 $this->_pages['tools/tests/edit_question_matching.php']['parent'] = 'tools/tests/question_db.php';
\r
118 $this->_pages['tools/tests/edit_question_matchingdd.php']['title_var'] = 'edit_question';
\r
119 $this->_pages['tools/tests/edit_question_matchingdd.php']['parent'] = 'tools/tests/question_db.php';
\r
121 $this->_pages['tools/tests/edit_question_ordering.php']['title_var'] = 'edit_question';
\r
122 $this->_pages['tools/tests/edit_question_ordering.php']['parent'] = 'tools/tests/question_db.php';
\r
124 $this->_pages['tools/tests/delete_question.php']['title_var'] = 'delete';
\r
125 $this->_pages['tools/tests/delete_question.php']['parent'] = 'tools/tests/question_db.php';
\r
127 $this->_pages['tools/take_test.php']['title_var'] = 'take_test';
\r
128 $this->_pages['tools/take_test.php']['parent'] = 'tools/my_tests.php';
\r
131 $this->_pages['tools/my_tests.php']['title_var'] = 'my_tests';
\r
132 $this->_pages['tools/my_tests.php']['img'] = 'images/home-tests.gif';
\r