Home  >  Article  >  Backend Development  >  smarty查询方法,该如何处理

smarty查询方法,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:25:46825browse

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那个我怎么添加代码
------解决思路----------------------
其实我都不知道你想干什么

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn