Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
User expired
tcexam_uibk
Commits
90009f52
Commit
90009f52
authored
Apr 14, 2015
by
User expired
Browse files
removed limitations in selection of MCMA answers
parent
f13c8e68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
admin/code/tce_edit_test.php
admin/code/tce_edit_test.php
+6
-4
No files found.
admin/code/tce_edit_test.php
View file @
90009f52
...
...
@@ -317,7 +317,7 @@ switch($menu_mode) {
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
if
(
$tsubset_answers
>
0
)
{
$sqlq
.
=
' HAVING (COUNT(answer_id)='
.
(
$tsubset_answers
-
1
)
.
')'
;
//changed, ESM
$sqlq
.
=
' HAVING (COUNT(answer_id)
>
='
.
(
$tsubset_answers
-
1
)
.
')'
;
}
$sqlq
.
=
' )'
;
}
elseif
(
$tsubset_type
==
2
)
{
...
...
@@ -330,7 +330,7 @@ switch($menu_mode) {
$sqlq
.
=
$sql_answer_position
;
$sqlq
.
=
' GROUP BY answer_question_id'
;
if
(
$tsubset_answers
>
0
)
{
$sqlq
.
=
' HAVING (COUNT(answer_id)='
.
$tsubset_answers
.
')'
;
//changed, ESM
$sqlq
.
=
' HAVING (COUNT(answer_id)
>
='
.
$tsubset_answers
.
')'
;
}
$sqlq
.
=
' )'
;
}
elseif
(
$tsubset_type
==
4
)
{
...
...
@@ -345,11 +345,12 @@ switch($menu_mode) {
HAVING (COUNT(answer_id)>1))'
;
}
$sqlq
.
=
$sql_questions_position
;
if
(
K_DATABASE_TYPE
==
'ORACLE'
)
{
/*
if (K_DATABASE_TYPE == 'ORACLE') {
$sqlq = 'SELECT * FROM ('.$sqlq.') WHERE rownum <= '.$tsubset_quantity.'';
} else {
$sqlq .= ' LIMIT '.$tsubset_quantity.'';
}
no limitation for answers ESM 150331 */
$numofrows
=
0
;
if
(
$rq
=
F_db_query
(
$sqlq
,
$db
))
{
if
(
$mq
=
F_db_fetch_array
(
$rq
))
{
...
...
@@ -1222,7 +1223,8 @@ if (isset($test_id) AND ($test_id > 0)) {
echo
'</span>'
.
K_NEWLINE
;
echo
'</div>'
.
K_NEWLINE
;
echo
getFormRowTextInput
(
'tsubset_answers'
,
$l
[
'w_num_answers'
],
$l
[
'h_num_answers'
],
''
,
$tsubset_answers
,
'^([0-9]*)$'
,
20
,
false
,
false
,
false
);
//commented out b/c no limitation for answers ESM 150331
//echo getFormRowTextInput('tsubset_answers', $l['w_num_answers'], $l['h_num_answers'], '', $tsubset_answers, '^([0-9]*)$', 20, false, false, false);
echo
'<div class="row">'
.
K_NEWLINE
;
echo
'<span class="label"> </span>'
.
K_NEWLINE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment