STOCK-BASED PAYMENTS (Details Textual) - USD ($)
shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2016
Jan. 31, 2015
Jan. 31, 2016
Jan. 31, 2015
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Share-based Compensation, Total $ 136 $ 134 $ 194 $ 202
Subsequent Event [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant 293   293  
Equity Incentive 2014 Plan [Member]        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Share-based Awards Other than Options $ 488   $ 488  
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition     6 years  
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number 161   161