coverted page to php template