PHP 模板引擎 Smartyhttp://www.smarty.net/docs/zh_CN/language.function.foreach.tplhttp://www.smarty.net/docs/zh_CN/language.function.if.tpl