Hey,
Here is a pvp rank script that displays top 25 players by each classes.
I know the code isen't perfect (i learn more everydays and i make my codes more simple so if i make some real changes to simplify it i will reupload the script) but it is secured.
Here is a screen how it looks (images are from aeriagames and the script is working +/- like their script).
If someone is abble to edit it and make the refresh with the selections of classes and faction with javascript, it's up to you (javascript and me are not really friends^^).
I changed a bit the look (on my website it doesen't look like that) but i keept the css and images from my website so there's some useless things on it but i was too lazy for adapt everything (and i think you will edit it for it look like you want on your website).
Don't forget to edit the database configurations
Edit: Some credits to castor with his tutorial how to Shaiya web services, i took some usefull informations from here
Edit 2: Changed download link and changed a file inside of it, i made something wrong on last upload