What is the filesList function supposed to do?
In that function, the array $file is not defined or passed to the function.
Your table html code is missing '<TR>....</TR>' tags
Also font tag doing nothing, with no closing /font tag.
/a tag with no opening 'a' tag