Former teacher of the year in court Thursday on unlawful sexual relations