Home > Backend Development > PHP Tutorial > smarty查询方法

smarty查询方法

WBOY
Release: 2016-06-23 13:24:45
Original
923 people have browsed it


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


回复讨论(解决方案)

没人回复么?  我要给分了。。。。。。

其实我都不知道你想干什么

其实我都不知道你想干什么


不知道就对了  哈哈  想结个贴而已
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template