Maison >développement back-end >tutoriel php >smarty查询方法,该如何处理
smarty查询方法
<form><br /> <input type="text" id="t" value="" name="t"/><br /> <input type="button" class="anniu4" value="查询" onclick="window.location='city.php?module=query'"/><br /> </form>这是查询按钮的代码
<?php<br />require_once('adminbase.php');<br />require_once('CityBusiness.php');<br />//用户管理<br />$module = $_REQUEST["module"];<br />$city = new CityBusiness();<br />if (!isset($module) || $module == "list")<br />{<br /> $smarty->assign("pageTitle","城市管理");<br /> $list = $city->getAllList();<br /> $smarty->assign("list",$list);<br /> $smarty->display('admin/city/list.tpl');<br />}<br />else if ($module == "query")<br />{<br /> <br /> <br /> <br /> $smarty->display('admin/city/query.tpl');<br />}query那个我怎么添加代码