|
@@ 3317-3328 (lines=12) @@
|
| 3314 |
|
echo get_lang('SelectXAxis').': '; |
| 3315 |
|
echo '<select name="xaxis">'; |
| 3316 |
|
echo '<option value="">---</option>'; |
| 3317 |
|
foreach ($questions as $key => & $question) { |
| 3318 |
|
if (is_array($allowed_question_types)) { |
| 3319 |
|
if (in_array($question['type'], $allowed_question_types)) { |
| 3320 |
|
echo '<option value="'.$question['question_id'].'"'; |
| 3321 |
|
if (isset($_GET['xaxis']) && $_GET['xaxis'] == $question['question_id']) { |
| 3322 |
|
echo ' selected="selected"'; |
| 3323 |
|
} |
| 3324 |
|
echo '">'.api_substr(strip_tags($question['question']), 0, 50).'</option>'; |
| 3325 |
|
} |
| 3326 |
|
} |
| 3327 |
|
|
| 3328 |
|
} |
| 3329 |
|
echo '</select><br /><br />'; |
| 3330 |
|
// Y axis |
| 3331 |
|
echo get_lang('SelectYAxis').': '; |
|
@@ 3334-3342 (lines=9) @@
|
| 3331 |
|
echo get_lang('SelectYAxis').': '; |
| 3332 |
|
echo '<select name="yaxis">'; |
| 3333 |
|
echo '<option value="">---</option>'; |
| 3334 |
|
foreach ($questions as $key => &$question) { |
| 3335 |
|
if (in_array($question['type'], $allowed_question_types)) { |
| 3336 |
|
echo '<option value="'.$question['question_id'].'"'; |
| 3337 |
|
if (isset($_GET['yaxis']) && $_GET['yaxis'] == $question['question_id']) { |
| 3338 |
|
echo ' selected="selected"'; |
| 3339 |
|
} |
| 3340 |
|
echo '">'.api_substr(strip_tags($question['question']), 0, 50).'</option>'; |
| 3341 |
|
} |
| 3342 |
|
} |
| 3343 |
|
echo '</select><br /><br />'; |
| 3344 |
|
echo '<button class="save" type="submit" name="Submit" value="Submit">'.get_lang('CompareQuestions').'</button>'; |
| 3345 |
|
echo '</form>'; |