Your sentence is not correct.
If you wish to use a passive sentence, you would have to say:
"Thanks for the co-operation that has been given by you over the past years."
But that seems unnecessarily awkward.
Why not just say,
"Thanks for your cooperation over the past years."?
- For Teachers