?>
<input type="submit" class="pointssubmitbutton" value="<?php echo $strsave; ?>" />
</fieldset>
-
+<?php if(strcmp($question->qtype,'random')===0){
+ echo '<a href="'.$questionurl->out().'" class="configurerandomquestion">'.get_string("configurerandomquestion","quiz").'</a>';
+}
+
+?>
</div>
</form>
echo $reordercheckboxlabel;
print_question_icon($question);
- $editstring= "<a title=\"$stredit\" href=\"".$url.
- "\"><img src=\"$CFG->pixpath/t/edit.gif\" alt=\"".
- get_string("edit")."\" /> </a>";
$questioncount=$DB->count_records_select('question',
"category IN ($category->id) AND parent = '0' ");
$randomquestionlistsize=3;
$category->contextid)).
'">-->'.$reordercheckboxlabel.$category->name.
$reordercheckboxlabelclose.'<!--</a>-->';
- echo '<span class="questionpreview">'.$editstring;
+ echo '<span class="questionpreview">';
echo quiz_question_preview_button($quiz, $question,false);
echo '</span>';
#mod-quiz-edit div.question div.content .questionname,
#categoryquestions .questionname{
white-space:nowrap;
- text-overflow:ellipsis;
overflow:hidden;
zoom:1;
position:relative;
max-width:20%;
- /*ie-only:*/
- text-overflow:ellipsis;
- /*opera-only*/
- -o-text-overflow:ellipsis;
}
#mod-quiz-edit div.question div.content .singlequestion .questionname,
#mod-quiz-edit div.question div.content .singlequestion .questiontext{
padding-right:0.2em;
clear:both;
margin:0.5em;
+ margin-top:0.8em;
}
}
#mod-quiz-edit .editq div.question div.content .randomquestioncategory{
- position:relative;
+ margin-top:0.4em;
+ position:relative;
display:inline-block;
}