// Clear all values except mPath foreach ($_POST as $key => $value) { if ($key != 'mPath' && $key != 'projects_id' && $key != 'employees_roles_id') { unset($_POST[$key]); } } } } } } } break; case 'delete_entry': // Check for dependencies $administration_tariff = new tariff($_POST['tariffs_id']); if ($administration_tariff->has_dependencies()) { $error_level = 11; // Related activities exist //$_POST['action'] = ''; } // Format tariff amount from database to display $_POST['tariffs_amount_display'] = tep_number_db_to_user($_POST['tariffs_amount'], 2); // Format dates (from uts to display) $_POST['tariffs_start_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['tariffs_start_date']); if ($_POST['tariffs_end_date'] != 0) { $_POST['tariffs_end_date_display'] = tep_strftime(DATE_FORMAT_SHORT, $_POST['tariffs_end_date']); } else { $_POST['tariffs_end_date_display'] = ''; } break; case 'delete_entry_confirmed':