{
$cancel_delete = 0;
- if (key_in_foreign_table($selected_id, 'crm_relations', 'category_id'))
+ if (is_crm_category_used($selected_id))
{
$cancel_delete = 1;
display_error(_("Cannot delete this category because there are contacts related to it."));
$result = get_crm_categories(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=50%");
+start_table(TABLESTYLE, "width='70%'");
-$th = array(_("Type id"), _("Action id"), _("Short Name"), _("Description"), "", " ");
+$th = array(_("Category Type"), _("Category Subtype"), _("Short Name"), _("Description"), "", " ");
inactive_control_column($th);
table_header($th);
end_form();
end_page();
-?>