织梦模板分数查询精准搜索自定义字段

2026-06-13 0 5

织梦模板分数查询精准搜索自定义字段

1、选择跟你程序对应编码的文件夹,把里面的2个文件夹里的
/include/arc.zhengshuview.class.php
/plus/zhengshu.php
这2个文件上传到你网站对应的目录下
2、在前端模板的搜索框代码写法例子如下:

<form action=”/plus/zhengshu.php” method=”get”>
<input type=”hidden” name=”pagesize” value=”1″>
<input type=”hidden” name=”channeltype” value=”这里填你的模型ID号”/>
<p>
<label>姓  名:</label>
<input type=”text” name=”title”/>
</p>
<p>
<label>身份证号:</label>
<input type=”text” name=”shenfenzheng”/>
</p>
<p>
<label>证书编号:</label>
<input type=”text” name=”bianhao”/>
</p>
<p>
<input type=”submit” value=”查询”/>
</p>
</form>

【特别说明】
2-1、这个必须是这样action=”/plus/zhengshu.php” method=”get”
2-2、<input type=”hidden” name=”pagesize” value=”1″>
2-3、<input type=”hidden” name=”channeltype” value=”这里填你的模型ID号”/>
2-4、<input type=”text” name=”title”/> 标题
2-5、<input type=”text” name=”shenfenzheng”/> 自定义字段
2-6、<input type=”text” name=”bianhao”/> 自定义字段
3、查询结果模板名为:zhengshu.htm
自己建一个放到自己的网站模板目录里。
代码案例调用如下:

<table width=”100%” class=”table”>
<caption>
<h2>查询结果</h2>
</caption>
<thead>
<tr>
<th>
证书编号
</th>
<th>
身份证号
</th>
<th>
姓名
</th>
<th>
证书类型
</th>
<th>
公司名称
</th>
<th>
所属企业
</th>
<th>
所属领域
</th>
<th>
有效期
</th>
<th>
状态
</th>
</tr>
</thead>
{dede:list titlelen=’250′}
<tr>
<td>
[field:bianhao/]
</td>
<td>
[field:shenfenzheng/]
</td>
<td>
[field:title/]
</td>
<td>
[field:leixing/]
</td>
<td>
[field:gongsimingcheng/]
</td>
<td>
[field:qiye/]
</td>
<td>
[field:lingyu/]
</td>
<td>
[field:youxiaoqi/]
</td>
<td>
[field:zhuangtai/]
</td>
</tr>
{/dede:list}
<tr>
<td colspan=”9″>
{dede:pagelist listsize=1 runphp=yes}
@me = (empty(@me) ? “<p style=’color:#f00;’>没有相关记录</p>” : “”);
{/dede:pagelist}
</td>
</tr>
</table>

文件下载地址:

评论解锁
当前隐藏内容需要评论才能查看
已有0人评论查看此内容
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

版权声明:所有的源码、软件和资料,不得使用于非法商业用途,不得违反国家法律,一切关于该资源商业行为与本站无关。

免费cms模板 dedecms教程 织梦模板分数查询精准搜索自定义字段 https://www.mianfeicms.com/10597.html

相关文章

猜你喜欢
发表评论
暂无评论