X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcrm_categories.php;h=6db43e58179830e1148302964cc380d7be2bec6c;hb=da7df35c61205d0b1af47d286be591b8a3194b0c;hp=bf24403ea3e96774f2f49a24120ceb84a4a909d4;hpb=3169795dd1698c44e4194114ac380cafdfaebc7d;p=fa-stable.git diff --git a/admin/crm_categories.php b/admin/crm_categories.php index bf24403e..6db43e58 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); @@ -101,7 +101,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow["name"]); label_cell($myrow["description"]); - inactive_control_cell($myrow["id"], $myrow["inactive"], 'areas', 'id'); + inactive_control_cell($myrow["id"], $myrow["inactive"], 'crm_categories', 'id'); edit_button_cell("Edit".$myrow["id"], _("Edit")); if ($myrow["system"]) @@ -150,4 +150,3 @@ submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); end_page(); -?>