MDL-19812 Upgraded calls to helpbutton, print_simple_box* and notify

This commit is contained in:
nicolasconnault
2009-08-18 05:15:52 +00:00
parent a77e87bd68
commit d68ccdbaaa
13 changed files with 80 additions and 79 deletions
+5 -5
View File
@@ -43,11 +43,11 @@
$form->format = clean_param($form->format, PARAM_SAFEDIR); // For safety
if (empty($_FILES['newfile'])) { // file was just uploaded
notify(get_string("uploadproblem") );
echo $OUTPUT->notification(get_string("uploadproblem") );
}
if ((!is_uploaded_file($_FILES['newfile']['tmp_name']) or $_FILES['newfile']['size'] == 0)) {
notify(get_string("uploadnofilefound") );
echo $OUTPUT->notification(get_string("uploadnofilefound") );
} else { // Valid file is found
@@ -74,7 +74,7 @@
}
echo "<hr>";
print_continue("view.php?id=$cm->id");
echo $OUTPUT->continue_button("view.php?id=$cm->id");
echo $OUTPUT->footer();
exit;
}
@@ -86,7 +86,7 @@
print_heading_with_help($strimportquestions, "import", "lesson");
print_simple_box_start("center");
echo $OUTPUT->box_start('generalbox boxaligncenter');
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"import.php\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$pageid\" />\n";
@@ -108,7 +108,7 @@
echo "</table>";
echo "</form>";
print_simple_box_end();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();