tpl中:
$smarty.get.name =>_GET['name']
$smarty.post.name =>_POST['name']
$smarty.const.NAME =>define(NAME,"name")
<form method="get" action="">
{foreach item=product key=productkey from=$arrProductList}
<div>产品名:{$product.name}</div>
<div>时间:{$product.time|date_format:"%Y-%m-%d %T"}</div>
<section name="query[product_id]">
<option value="">请选择</option>
{html_options options=$arrProductList selected=$smarty.get.query.product_id}
</form>