mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
replacing fieldset in small forms with divs
This commit is contained in:
parent
d9fc0fc2ad
commit
0f3a1c9382
3 changed files with 11 additions and 11 deletions
|
@ -245,13 +245,13 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') {
|
|||
$button = '<table><tr><td>'.$button.
|
||||
'</td><td>'.
|
||||
'<form '.$CFG->frametarget.' method="get" action="'. $CFG->wwwroot .'/mod/lesson/lesson.php">'.
|
||||
'<fieldset class="invisiblefieldset">'.
|
||||
'<div>'.
|
||||
'<input type="hidden" name="id" value="'. $cm->id .'" />'.
|
||||
'<input type="hidden" name="action" value="editpage" />'.
|
||||
'<input type="hidden" name="redirect" value="navigation" />'.
|
||||
'<input type="hidden" name="pageid" value="'. $pageid .'" />'.
|
||||
'<input type="submit" value="'. get_string('editpagecontent', 'lesson') .'" />'.
|
||||
'</fieldset>'.
|
||||
'</div>'.
|
||||
'</form>'.
|
||||
'</td></tr></table>';
|
||||
}
|
||||
|
|
|
@ -36,9 +36,9 @@
|
|||
if ($lesson->mediaclose) {
|
||||
echo '<div class="lessonmediafilecontrol">
|
||||
<form>
|
||||
<fieldset class="invisiblefieldset">
|
||||
<div>
|
||||
<input type="button" onclick="top.close();" value="'.get_string("closewindow").'" />
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>
|
||||
</div>';
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
'<span class="lessonbutton standardbutton"><a href="'.$CFG->wwwroot.'/course/view.php?id='. $course->id .'">'. get_string('cancel', 'lesson') .'</a></span> ';
|
||||
|
||||
lesson_print_submit_link(get_string('continue', 'lesson'), 'password', 'center', 'standardbutton submitbutton');
|
||||
echo '</center>';
|
||||
echo '</fieldset></form>';
|
||||
print_simple_box_end();
|
||||
echo "</div>\n";
|
||||
print_footer($course);
|
||||
|
@ -688,14 +688,14 @@
|
|||
}
|
||||
// Each button must have its own form inorder for it to work with JavaScript turned off
|
||||
$button = "<form id=\"answerform$i\" method=\"post\" action=\"$CFG->wwwroot/mod/lesson/lesson.php\">\n".
|
||||
'<fieldset class="invisiblefieldset">'.
|
||||
'<div>'.
|
||||
"<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n".
|
||||
"<input type=\"hidden\" name=\"action\" value=\"continue\" />\n".
|
||||
"<input type=\"hidden\" name=\"pageid\" value=\"$pageid\" />\n".
|
||||
"<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />\n".
|
||||
"<input type=\"hidden\" name=\"jumpto\" value=\"$answer->jumpto\" />\n".
|
||||
lesson_print_submit_link(strip_tags(format_text($answer->answer, FORMAT_MOODLE, $options)), "answerform$i", '', $class, '', '', true).
|
||||
'</fieldset>'.
|
||||
'</div>'.
|
||||
'</form>';
|
||||
|
||||
$buttons[$type][] = $button;
|
||||
|
@ -755,7 +755,7 @@
|
|||
} else {
|
||||
// a page without answers - find the next (logical) page
|
||||
echo "<form id=\"pageform\" method =\"post\" action=\"$CFG->wwwroot/mod/lesson/view.php\">\n";
|
||||
echo '<fieldset class="invisiblefieldset">';
|
||||
echo '<div>';
|
||||
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
|
||||
if ($lesson->nextpagedefault) {
|
||||
// in Flash Card mode...
|
||||
|
@ -803,7 +803,7 @@
|
|||
}
|
||||
echo "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\" />\n";
|
||||
lesson_print_submit_link(get_string('continue', 'lesson'), 'pageform');
|
||||
echo '</fieldset>';
|
||||
echo '</div>';
|
||||
echo "</form>\n";
|
||||
}
|
||||
|
||||
|
@ -954,14 +954,14 @@
|
|||
echo '<p>'.get_string("youmadehighscore", "lesson", $lesson->maxhighscores).
|
||||
'</p>
|
||||
<form method="post" id="highscores" action="'.$CFG->wwwroot.'/mod/lesson/highscores.php">
|
||||
<fieldset class="invisiblefieldset">
|
||||
<div>
|
||||
<input type="hidden" name="mode" value="add" />
|
||||
<input type="hidden" name="id" value="'.$cm->id.'" />
|
||||
<input type="hidden" name="sesskey" value="'.sesskey().'" />
|
||||
<p>';
|
||||
lesson_print_submit_link(get_string('clicktopost', 'lesson'), 'highscores');
|
||||
echo '</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>';
|
||||
} else {
|
||||
echo get_string("nothighscore", "lesson", $lesson->maxhighscores)."<br />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue