wwwroot.'/question/type/ubhotspots/'; $hsufix = $question->id; $colors = array('aqua', 'red', 'blue', 'fuchsia','green' ,'yellow', 'navy','lime', 'maroon', 'olive', 'gray', 'purple', 'silver', 'teal'); // This is for avoid problems with image cache, see // http://www.thefutureoftheweb.com/blog/image-onload-isnt-being-called // http://api.jquery.com/load-event/ $imgsufix = random_string(); ?>
options->answers as $key=>$a){ $index_color = $i; if($index_color >= count($colors)){ $index_color = $index_color % count($colors); } $a = json_decode($a->answer); echo "
   "; echo format_string($a->text)."
"; echo '
'; if(isset($imgfeedback[$key])){ echo '
'.(question_get_feedback_image($imgfeedback[$key])).'
'; } echo '
'; $i++; } ?>
print_question_submit_buttons($question, $state, $cmoptions, $options); ?>