phpcms v9实现分类信息自定义表单,多条件搜索功能
phpcms v9实现分类信息自定义表单,多条件搜索!
首先要下载: PHPCMS V9 分类信息模型测试版
phpcms官网下载地址:http://www.phpcms.cn/content-90-22-1.html
看一下前台:
找到\phpcms\templates\default\content\list_house.html这个文件,加上以下代码既可以实现上图功能!
<div class="search"><form name="myform" method="get" action="index.php" class="form_css"><input type="hidden" name="m" value="content"><input type="hidden" name="c" value="index"><input type="hidden" name="a" value="lists"><input type="hidden" name="catid" value="{$catid}"><input type="hidden" name="price" value="{php echo $_GET['price']}"><input type="hidden" name="rent_mode" value="{php echo $_GET['rent_mode']}"><input type="hidden" name="pay_type_int" value="{php echo $_GET['pay_type_int']}"><input type="hidden" name="bedroom" value="{php echo $_GET['bedroom']}"><input class="text soText" name="title" id="title" type="text"value="{php if ($_GET['title']) echo $_GET['title']}"/><input type="submit" value="" class="soBtn curp" /></form><p>找到相关信息<b id="total"></b>条</p></div>
以上代码分别有:价格 方式 支付方式 厅室 搜索条件。
懒人包下载:list_house.rar
以上就实现了phpcms v9实现分类信息自定义表单,多条件搜索的功能了。
我的博客即将同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=lpdycda2fshu