Earnings (Loss) Per Share (Details 1) - shares shares in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2019 |
Apr. 30, 2018 |
Apr. 30, 2019 |
Apr. 30, 2018 |
|
| Shares were excluded from the diluted earnings per share computations | ||||
| Shares excluded from the calculation of diluted earnings per share | 1,223 | 1,444 | 1,236 | 1,444 |
| Stock options [Member] | ||||
| Shares were excluded from the diluted earnings per share computations | ||||
| Shares excluded from the calculation of diluted earnings per share | 1,223 | 1,253 | 1,236 | 1,253 |
| Non-vested restricted Class B common stock [Member] | ||||
| Shares were excluded from the diluted earnings per share computations | ||||
| Shares excluded from the calculation of diluted earnings per share | 191 | 191 | ||