{
// PREVENT DELETES IF DEPENDENT RECORDS IN print_profiles
- if (printer_has_profile($selected_id))
+ if (key_in_foreign_table($selected_id, 'print_profiles', 'printer'))
{
display_error(_("Cannot delete this printer definition, because print profile have been created using it."));
}
$result = get_all_printers();
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Name"), _("Description"), _("Host"), _("Printer Queue"),'','');
table_header($th);
start_form();
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
end_page();
-?>