Heim  >  Artikel  >  Backend-Entwicklung  >  smarty查询方法,该如何处理

smarty查询方法,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:25:46826Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn