XML 28 R17.htm IDEA: XBRL DOCUMENT v3.3.1.900
(Loss) Earnings Per Share (Tables)
6 Months Ended
Jan. 31, 2016
(Loss) Earnings Per Share [Abstract]  
Summary of components of the earnings (loss) per common share calculation


  Three Months Ended
January 31,
  Six Months Ended
January 31,
 
  2016  2015  2016  2015 
  (in thousands) 
Basic weighted-average number of shares  11,854   11,420   11,832   11,409 
Effect of dilutive securities:                
Shares underlying stock options           7 
Non-vested restricted Class B common stock           421 
                 
Diluted weighted-average number of shares  11,854   11,420   11,832   11,837
Summary of shares excluded from the diluted earnings per share computations

  Three Months Ended
January 31,
  Six Months Ended
January 31,
 
  2016  2015  2016  2015 
  (in thousands) 
Stock options  6   7   4    
Non-vested restricted Class B common stock  35   409   173    
                 
Shares excluded from the calculation of diluted (loss) earnings per share  41   416   177