$instancesnumber = count($instances);
$alreadyplugins = array();
- $table = new StdClass;
+ $table = new html_table();
$table->head = array($namestr, $pluginstr, $deletestr, $settingsstr);
$table->align = array('left', 'left', 'center','center');
$table->data = array();
$alreadyplugins[] = $i->name;
}
}
- $output .= print_table($table, true);
+ $output .= $OUTPUT->table($table);
$instancehtml = '<div>';
$addable = 0;
}
exit;
}
- notice_yesno(get_string('confirmdelete', 'repository', $instance->name), $baseurl . '&delete=' . $delete . '&sure=yes', $baseurl);
+ $formcontinue = html_form::make_button($baseurl, array('delete' => $delete, 'sure' => 'yes'), get_string('yes'));
+ $formcancel = html_form::make_button($baseurl, array(), get_string('no'));
+ echo $OUTPUT->confirm(get_string('confirmdelete', 'repository', $instance->name), $formcontinue, $formcancel);
$return = false;
} else {
repository::display_instances_list($context);