X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcrm_categories.php;h=a7a26af3f8c4506b451a65d309ff13601857d298;hb=92f26ce5c76266a8b6e96a6b086aa919095e7316;hp=b06c618a02752a638d5d9a7b6031041d34e7f858;hpb=94ec87d7b599a2b024de0a49a74ec08ad66c56f5;p=fa-stable.git diff --git a/admin/crm_categories.php b/admin/crm_categories.php index b06c618a..a7a26af3 100644 --- a/admin/crm_categories.php +++ b/admin/crm_categories.php @@ -56,7 +56,7 @@ if ($Mode == 'Delete') { $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.")); @@ -83,9 +83,9 @@ if ($Mode == 'RESET') $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); @@ -141,7 +141,7 @@ if ($Mode == 'Edit' && $myrow['system']) { } text_row_ex(_("Category Short Name:"), 'name', 30); -textarea_row(_("Category Description:"), 'description', null, 60,4); +textarea_row(_("Category Description:"), 'description', null, 60, 4); end_table(1); @@ -150,4 +150,3 @@ submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); end_page(); -?>