Classes of projectively equivalent quadrics over local rings