18 require_once SQ_INCLUDE_PATH.
'/asset_edit/asset_edit_fns.inc';
72 echo $asset->getScore();
89 echo date(
'd M Y H:i:s',$asset->created);
107 $user_details_answers = $asset->attr(
'user_details_answers');
110 if(!isset($user_details_answers) || empty($user_details_answers)) {
111 $sub_user = $asset->created_userid;
113 $o->openField(translate(
'user'));
114 if (!empty($sub_user)) {
115 $sub_user_asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($sub_user);
116 if (!empty($sub_user_asset)) {
117 echo get_asset_tag_line($sub_user);
122 echo
'<i>'.translate(
'online_quiz_no_logged_in_user').
'</i>';
127 $form_id = key($GLOBALS[
'SQ_SYSTEM']->am->getParents(key($user_details_answers),
'simple_form', FALSE));
128 $form = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($form_id);
131 $user_details_questions = $form->getQuestions();
133 foreach ($user_details_questions as $question_id => $question) {
134 $question = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($question_id);
135 $o->openField($question->getVal(
'title'),
'', $question->getVal(
'note'));
136 $answer_details = $user_details_answers[$question_id];
137 echo $answer_details[
'answer'];
158 $quiz_questions = $asset->attr(
'quiz_questions');
159 $quiz_answers = $asset->attr(
'quiz_answers');
161 foreach ($quiz_answers as $question_id => $answer_details) {
162 $question_name = $quiz_questions[$question_id];
163 $o->openField($question_name,
'',
'');
164 if (isset($answer_details[
'summary'])) {
165 echo $answer_details[
'summary'];