XML 42 R31.htm IDEA: XBRL DOCUMENT v3.7.0.1
Earnings (Loss) Per Share (Details) - shares
shares in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 371 182 290 179
Non-vested restricted Class B common stock [Member]        
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 265 179 225 175
Warrant [Member]        
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 61 43
Stock options [Member]        
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 45 3 22 4