$string = get_string('updatethis', '', $string);
return "<form $CFG->frametarget method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">".
+ "<fieldset class='invisiblefieldset'>".
"<input type=\"hidden\" name=\"update\" value=\"$moduleid\" />".
"<input type=\"hidden\" name=\"return\" value=\"true\" />".
"<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />".
- "<input type=\"submit\" value=\"$string\" /></form>";
+ "<input type=\"submit\" value=\"$string\" /></fieldset></form>";
} else {
return '';
}
$linkno = clean_text($linkno);
print_simple_box_start('center', '60%', '', 5, 'generalbox', 'notice');
- echo '<p align="center">'. $message .'</p>';
+ echo '<p style="text-align:center">'. $message .'</p>';
echo '<table align="center" cellpadding="20"><tr><td>';
print_single_button($linkyes, $optionsyes, get_string('yes'), $methodyes, $CFG->framename);
echo '</td><td>';
print_heading(get_string('uploadrecords', 'data'), '', 3);
$maxuploadsize = get_max_upload_file_size();
- echo '<div align="center">';
+ echo '<div style="text-align:center">';
echo '<form enctype="multipart/form-data" action="import.php" method="post">';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'">';
echo '<input name="d" value="'.$data->id.'" type="hidden" />';
echo '</div>';
print_simple_box_end();
} else {
- echo '<div align="center">';
+ echo '<div style="text-align:center">';
echo '<a href="edit.php?d='.$data->id.'&import=1">'.get_string('uploadrecords', 'data').'</a>';
echo '</div>';
}
add_to_log($course->id, 'data', 'templates saved', "templates.php?id=$cm->id&d=$data->id", $data->id, $cm->id);
}
} else {
- echo '<div class="littleintro" align="center">'.get_string('header'.$mode,'data').'</div>';
+ echo '<div class="littleintro" style="text-align:center">'.get_string('header'.$mode,'data').'</div>';
}
/// If everything is empty then generate some defaults
echo '<form id="tempform" action="templates.php?d='.$data->id.'&mode='.$mode.'" method="post">';
+ echo '<fieldset class="invisiblefieldset">';
echo '<input name="sesskey" value="'.sesskey().'" type="hidden" />';
// Print button to autogen all forms, if all templates are empty
echo '<tr>';
echo '<td> </td>';
echo '<td>';
- echo '<div align="center"><label for="edit-listtemplateheader">'.get_string('header','data').'</label></div>';
+ echo '<div style="text-align:center"><label for="edit-listtemplateheader">'.get_string('header','data').'</label></div>';
print_textarea($usehtmleditor, 10, 72, 0, 0, 'listtemplateheader', $data->listtemplateheader);
echo '</td>';
echo '</tr>';
echo '<td>';
if ($mode == 'listtemplate'){
- echo '<div align="center"><label for="edit-template">'.get_string('multientry','data').'</label></div>';
+ echo '<div style="text-align:center"><label for="edit-template">'.get_string('multientry','data').'</label></div>';
} else {
- echo '<div align="center"><label for="edit-template">'.get_string($mode,'data').'</label></div>';
+ echo '<div style="text-align:center"><label for="edit-template">'.get_string($mode,'data').'</label></div>';
}
print_textarea($usehtmleditor, 20, 72, 0, 0, 'template', $data->{$mode});
echo '<tr>';
echo '<td> </td>';
echo '<td>';
- echo '<div align="center"><label for="edit-listtemplatefooter">'.get_string('footer','data').'</label></div>';
+ echo '<div style="text-align:center"><label for="edit-listtemplatefooter">'.get_string('footer','data').'</label></div>';
print_textarea($usehtmleditor, 10, 72, 0, 0, 'listtemplatefooter', $data->listtemplatefooter);
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td> </td>';
echo '<td>';
- echo '<div align="center"><label for="edit-rsstitletemplate">'.get_string('rsstitletemplate','data').'</label></div>';
+ echo '<div style="text-align:center"><label for="edit-rsstitletemplate">'.get_string('rsstitletemplate','data').'</label></div>';
print_textarea($usehtmleditor, 10, 72, 0, 0, 'rsstitletemplate', $data->rsstitletemplate);
echo '</td>';
echo '</tr>';
}
- echo '<tr><td align="center" colspan="2">';
+ echo '<tr><td style="text-align:center" colspan="2">';
echo '<input type="submit" value="'.get_string('savetemplate','data').'" /> ';
echo '</td></tr></table>';
print_simple_box_end();
+ echo '</fieldset>';
echo '</form>';
if ($usehtmleditor) {
use_html_editor('template');
if ($currentuser and !isguest()) {
if ($internalpassword ) {
echo "<td nowrap=\"nowrap\"><form action=\"$internalpassword\" method=\"get\">";
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
if (!empty($USER->realuser)) {
// changing of password when "Logged in as" is not allowed
echo "</form></td>";
} elseif ( method_exists($userauth, 'change_password_url') and strlen($userauth->change_password_url())) {
echo "<td nowrap=\"nowrap\"><form action=\"".$userauth->change_password_url()."\" method=\"get\">";
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo "<input type=\"submit\" value=\"".get_string("changepassword")."\" />";
echo "</fieldset>";
echo "</form></td>";
get_user_roles($coursecontext, $user->id)) ) { // This user has roles
echo '<td nowrap="nowrap"><form action="../course/unenrol.php" method="get">';
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="user" value="'.$user->id.'" />';
echo '<input type="submit" value="'.get_string('unenrolme', '', $course->shortname).'" />';
if ($USER->id != $user->id && has_capability('moodle/user:loginas', $coursecontext)) {
echo '<td nowrap="nowrap"><form action="'.$CFG->wwwroot.'/course/loginas.php" method="get">';
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="user" value="'.$user->id.'" />';
echo '<input type="submit" value="'.get_string('loginas').'" />';
$messagebuttonname = get_string("messages", "message");
}
echo "<td nowrap=\"nowrap\"><form target=\"message\" action=\"../message/index.php\" method=\"get\">";
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo "<input type=\"submit\" value=\"$messagebuttonname\" onclick=\"return openpopup('/message/index.php', 'message', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0);\" />";
echo "</fieldset>";
echo "</form></td>";
} else {
echo "<td nowrap=\"nowrap\"><form target=\"message_$user->id\" action=\"../message/discussion.php\" method=\"get\">";
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo "<input type=\"hidden\" name=\"id\" value=\"$user->id\" />";
echo "<input type=\"submit\" value=\"".get_string("sendmessage", "message")."\" onclick=\"return openpopup('/message/discussion.php?id=$user->id', 'message_$user->id', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0);\" />";
echo "</fieldset>";
// Authorize.net: User Payments
if ($course->enrol == 'authorize' || (empty($course->enrol) && $CFG->enrol == 'authorize')) {
echo "<td nowrap=\"nowrap\"><form action=\"../enrol/authorize/index.php\" method=\"get\">";
- echo "<fieldset>";
+ echo "<fieldset class='invisiblefieldset'>";
echo "<input type=\"hidden\" name=\"course\" value=\"$course->id\" />";
echo "<input type=\"hidden\" name=\"user\" value=\"$user->id\" />";
echo "<input type=\"submit\" value=\"".get_string('payments')."\" />";