in the airport itself, on the walkway between the terminals are two hotels by the same operator motel168 super and Ease Hotel. the 168 is a better rate but is a really good hotel in all aspects. the rates i believe are 299 if u prebook and 349 for walk in. I have used it many times including the day version limited to 6 hours and I beleive was in the 220 range.
There are a few hotels off airport, never used them. Also with Maglev connecting to subway line 2 Shanghai city center is very accessable , u can easily go in 11 hours