Modified PRISM theory for confined polymers.