Skip to content

Commit

Permalink
MDL-19789 upgraded calls to print_table, print_single_button, print_u…
Browse files Browse the repository at this point in the history
…ser_picture, print_container* and notice_yesno
  • Loading branch information
nicolasconnault committed Aug 20, 2009
1 parent 414a4a9 commit c4c7d93
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
15 changes: 8 additions & 7 deletions backup/backup_check.html
Expand Up @@ -129,6 +129,7 @@
}

//This is the alignment of every row in the table
$table = new html_table();
$table->align = array ("left","right");

if ($allmods = $DB->get_records("modules") ) {
Expand Down Expand Up @@ -179,7 +180,7 @@
}
}
$table->data = $modcheckbackup($id,$backupprefs->$var,$backupprefs->backup_unique_code,$instancestopass);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}
}
Expand All @@ -199,7 +200,7 @@
echo $user_options[$backupprefs->backup_users].'</b>';
//Print info
$table->data = user_check_backup($id,$backupprefs->backup_unique_code,$backupprefs->backup_users,$backupprefs->backup_messages, $backupprefs->backup_blogs);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";

}
Expand All @@ -211,7 +212,7 @@
echo get_string("includelogentries").'</b>';
//Print info
$table->data = log_check_backup($id);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}

Expand All @@ -222,7 +223,7 @@
echo get_string("includeuserfiles").'</b>';
//Print info
$table->data = user_files_check_backup($id,$backupprefs->backup_unique_code);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}

Expand All @@ -233,7 +234,7 @@
echo get_string("includecoursefiles").'</b>';
//Print info
$table->data = course_files_check_backup($id,$backupprefs->backup_unique_code);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}

Expand All @@ -244,7 +245,7 @@
echo get_string("includesitefiles").'</b>';
//Print info
$table->data = site_files_check_backup($id,$backupprefs->backup_unique_code);
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}

Expand All @@ -255,7 +256,7 @@
echo get_string("includeroleassignments").'</b>';
//Print info
$table->data = array(array(get_string('roles'), count($backupprefs->backuproleassignments)));
print_table($table);
echo $OUTPUT->table($table);
echo "</td></tr>";
}
}
Expand Down
4 changes: 2 additions & 2 deletions backup/restore_check.html
Expand Up @@ -7,7 +7,7 @@
//Finally, it calls restore_execute to do the hard work
//Get objects from session

global $DB;
global $DB, $OUTPUT;

if ($SESSION) {
$info = $SESSION->info;
Expand Down Expand Up @@ -333,7 +333,7 @@


/// Restore button
print_single_button("restore.php", $hidden, get_string("restorecoursenow"),"post");
echo $OUTPUT->button(html_form::make_button("restore.php", $hidden, get_string("restorecoursenow")));
}
echo "</div>";

Expand Down
12 changes: 6 additions & 6 deletions backup/restorelib.php
Expand Up @@ -500,7 +500,7 @@ function restore_print_info ($info) {

$status = true;
if ($info) {
$table = new object();
$table = new html_table();
//This is tha align to every ingo table
$table->align = array ("right","left");
//This is the nowrap clause
Expand Down Expand Up @@ -533,7 +533,7 @@ function restore_print_info ($info) {
echo $OUTPUT->heading(get_string("backup").":");
$table->data = $tab;
//Print backup general info
print_table($table);
echo $OUTPUT->table($table);

if ($info->backup_backup_version <= 2005070500) {
echo $OUTPUT->notification(get_string('backupnonisowarning')); // Message informing that this backup may not work!
Expand Down Expand Up @@ -643,7 +643,7 @@ function restore_print_info ($info) {
//Print title
echo $OUTPUT->heading(get_string("backupdetails").":");
//Print backup general info
print_table($table);
echo $OUTPUT->table($table);
} else {
$status = false;
}
Expand All @@ -656,7 +656,7 @@ function restore_print_course_header ($course_header) {
global $OUTPUT;
$status = true;
if ($course_header) {
$table = new object();
$table = new html_table();
//This is tha align to every ingo table
$table->align = array ("right","left");
//The width
Expand All @@ -672,7 +672,7 @@ function restore_print_course_header ($course_header) {
//Print title
echo $OUTPUT->heading(get_string("course").":");
//Print backup course header info
print_table($table);
echo $OUTPUT->table($table);
} else {
$status = false;
}
Expand Down Expand Up @@ -7972,7 +7972,7 @@ function restore_precheck($id,$file,&$errorstr,$noredirect=false) {
$hidden["launch"] = "form";
$hidden["file"] = $file;
$hidden["id"] = $id;
print_single_button("restore.php", $hidden, get_string("continue"),"post");
echo $OUTPUT->button(html_form::make_button("restore.php", $hidden, get_string("continue")));
echo "</div>";
}
else {
Expand Down

0 comments on commit c4c7d93

Please sign in to comment.