edit page1, add smarty

this demo write with smarty3 , not completed yet