}
//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") ) {
}
}
$table->data = $modcheckbackup($id,$backupprefs->$var,$backupprefs->backup_unique_code,$instancestopass);
- print_table($table);
+ echo $OUTPUT->table($table);
echo "</td></tr>";
}
}
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>";
}
echo get_string("includelogentries").'</b>';
//Print info
$table->data = log_check_backup($id);
- print_table($table);
+ echo $OUTPUT->table($table);
echo "</td></tr>";
}
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>";
}
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>";
}
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>";
}
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>";
}
}
//Finally, it calls restore_execute to do the hard work
//Get objects from session
- global $DB;
+ global $DB, $OUTPUT;
if ($SESSION) {
$info = $SESSION->info;
/// 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>";
$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
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!
//Print title
echo $OUTPUT->heading(get_string("backupdetails").":");
//Print backup general info
- print_table($table);
+ echo $OUTPUT->table($table);
} else {
$status = false;
}
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
//Print title
echo $OUTPUT->heading(get_string("course").":");
//Print backup course header info
- print_table($table);
+ echo $OUTPUT->table($table);
} else {
$status = 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 {