Sounds like a new cylinder is in order...the brake pedal going to the floor is because you've lost most of your brake fluid. With the handbrake, maybe the cable has come adrift from the shoes.
Also, if the new linings have been contaminated, you should change them too.
More money I'm spending on a car that probably won't even go through an MOT
Thank you though