XML 74 R63.htm IDEA: XBRL DOCUMENT v3.19.1
SHARE-BASED PAYMENTS - Summary of Share Based Compensation Expense Related to Employee Stock Options, Employee Stock Purchases and Non-Vested Shares (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation expense $ 404 $ 2,260 $ 1,174 $ 9,657
Cost of revenue        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation expense 0 1 0 13
Selling, general and administrative        
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]        
Share-based compensation expense $ 404 $ 2,259 $ 1,174 $ 9,644