Its clear that you want to put the page you linked to inside Moodle. But Its not clear what you are doing to make that happen. And its not clear what errors or issues you are running into.
Are you hacking an existing PHP moodle file? Which one?
Are you just copying and pasting a bunch of code into an HTML editor field? Where? ... Probably not going to work because Moodle works hard to remove scripts from user generated content.
Why not show us some of the errors you get?