Annual report pursuant to Section 13 and 15(d)

SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts

v3.5.0.2
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2016
Jul. 31, 2015
Jul. 31, 2014
Allowance for Doubtful Accounts [Member]      
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts [Line Items]      
Balance at Beginning of period $ 1,786 $ 2,142 $ 2,707
Charged to costs and expenses 2,336 2,284 3,063
Deductions [1] 605 2,640 3,628
Balance at end of period 3,517 1,786 2,142
Valuation Allowance of Deferred Tax Assets [Member]      
SCHEDULE II VALUATION AND QUALIFYING ACCOUNTS (Details) - Schedule of Valuation and Qualifying Accounts [Line Items]      
Balance at Beginning of period 49,658 49,465 47,623
Charged to costs and expenses (14,746) 193 1,842
Balance at end of period $ 34,912 $ 49,658 $ 49,465
[1] Write-off of uncollectible accounts receivable.