XML 57 R46.htm IDEA: XBRL DOCUMENT v3.8.0.1
Earnings (Loss) Per Share (Details) - shares
shares in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2018
Jan. 31, 2017
Jan. 31, 2018
Jan. 31, 2017
Weighted-average number of shares used in the calculation of basic and diluted earnings per share        
Basic weighted-average number of shares 24,643 22,768 24,635 22,740
Effect of dilutive securities:        
Stock options 10 77 58
Non-vested restricted Class B common stock 71 118 133
Diluted weighted-average number of shares 24,724 22,963 24,635 22,931