HTML Pattern/Page Generation with PHP