XML 29 R18.htm IDEA: XBRL DOCUMENT v3.4.0.3
Earnings (Loss) Per Share (Tables)
9 Months Ended
Apr. 30, 2016
Earnings (Loss) Per Share [Abstract]  
Summary of components of the earnings (loss) per common share calculation

  Three Months Ended
April 30,
  Nine Months Ended
April 30,
 
  2016  2015  2016  2015 
  (in thousands) 
Basic weighted-average number of shares  11,905   11,449   11,856   11,426 
Effect of dilutive securities:                
Shares underlying stock options     5      6 
Non-vested restricted Class B common stock     425      405 
                 
Diluted weighted-average number of shares  11,905   11,879   11,856   11,837
Summary of shares excluded from the diluted earnings per share computations

  Three Months Ended
April 30,
  Nine Months Ended
April 30,
 
  2016  2015  2016  2015 
  (in thousands) 
Stock options  3      4    
Non-vested restricted Class B common stock  179      175    
                 
Shares excluded from the calculation of diluted earnings (loss) per share  182      179