@@ 5311-5327 (lines=17) @@ | ||
5308 | .'</tr>' |
|
5309 | .'</table>'; |
|
5310 | $open_question_list = null; |
|
5311 | foreach ($question_list_answers as $item) { |
|
5312 | $question = $item['question']; |
|
5313 | $answer = $item['answer']; |
|
5314 | $answer_type = $item['answer_type']; |
|
5315 | ||
5316 | if (!empty($question) && !empty($answer) && $answer_type == FREE_ANSWER) { |
|
5317 | $open_question_list .= |
|
5318 | '<tr>' |
|
5319 | .'<td width="220" valign="top" bgcolor="#E5EDF8"> '.get_lang('Question').'</td>' |
|
5320 | .'<td width="473" valign="top" bgcolor="#F3F3F3">'.$question.'</td>' |
|
5321 | .'</tr>' |
|
5322 | .'<tr>' |
|
5323 | .'<td width="220" valign="top" bgcolor="#E5EDF8"> '.get_lang('Answer').'</td>' |
|
5324 | .'<td valign="top" bgcolor="#F3F3F3">'.$answer.'</td>' |
|
5325 | .'</tr>'; |
|
5326 | } |
|
5327 | } |
|
5328 | ||
5329 | if (!empty($open_question_list)) { |
|
5330 | $msg .= '<p><br />'.get_lang('OpenQuestionsAttemptedAre').' :</p>'. |
|
@@ 5387-5403 (lines=17) @@ | ||
5384 | $user_info = api_get_user_info(api_get_user_id()); |
|
5385 | ||
5386 | $oral_question_list = null; |
|
5387 | foreach ($question_list_answers as $item) { |
|
5388 | $question = $item['question']; |
|
5389 | $answer = $item['answer']; |
|
5390 | $answer_type = $item['answer_type']; |
|
5391 | ||
5392 | if (!empty($question) && !empty($answer) && $answer_type == ORAL_EXPRESSION) { |
|
5393 | $oral_question_list.='<br /><table width="730" height="136" border="0" cellpadding="3" cellspacing="3">' |
|
5394 | .'<tr>' |
|
5395 | .'<td width="220" valign="top" bgcolor="#E5EDF8"> '.get_lang('Question').'</td>' |
|
5396 | .'<td width="473" valign="top" bgcolor="#F3F3F3">'.$question.'</td>' |
|
5397 | .'</tr>' |
|
5398 | .'<tr>' |
|
5399 | .'<td width="220" valign="top" bgcolor="#E5EDF8"> '.get_lang('Answer').'</td>' |
|
5400 | .'<td valign="top" bgcolor="#F3F3F3">'.$answer.'</td>' |
|
5401 | .'</tr></table>'; |
|
5402 | } |
|
5403 | } |
|
5404 | ||
5405 | if (!empty($oral_question_list)) { |
|
5406 | $msg = get_lang('OralQuestionsAttempted').'<br /><br /> |