add header and footer in php transform index in php and finsish index with out imgs