首页 > 技术知识 > 使用技巧 XIYCMS内容管理系统

如何实现自定义字段的赛选功能

作者:XIYCMS内容管理系统 更新:2019-12-28 19:12:27 来源:XIYCMS 人气:127

1.列表页里的html代码:

{:getfieldselect($cateid,$modelid)}

2.对应匹配的css代码:

.xiycms-filter{border:1px solid #f3f3f3;padding:6px 20px;margin-top:20px;padding:15px;}.xiycms-filter dl{margin:0;}.xiycms-filter dl dd{float:left;width:70px;font-weight:bold;font-size:14px;margin:0;padding-top:5px;}.xiycms-filter dl dt{margin:0 0 0 80px;}.xiycms-filter dl dt a{font-weight:normal;margin:0 5px 5px 0;padding:5px 10px;color:#666;font-size:14px;display:inline-block;}.xiycms-filter dl dt a:hover{background:#108dee;color:#fff;}.xiycms-filter dl dt .hover{background:#108dee;color:#fff;}
{rs id="rs" pagesize="$pagenum" table="xiy_content" where="$sqlwhere" join="LEFT JOIN xiy_model_news ON xiy_model_news.cid=xiy_content.id" order="ordernum asc,createdate desc,id desc" key="i" mod="3"}{:getsubstr($rs.title,0,40)}{if $i=2}当前输出第2条{/if}{if $mod==0}当前输出第36912条{/if}{/rs}{$showpage|raw}


你觉得这篇文章怎么样?

3 0



评论

发表

栏目分类

使用技巧推荐文章

使用技巧热门文章