
代码如图,是调用数据库中某一个表的数据,数据量有100多条,设置rows=20也没有任何分页的功能。
请各位大佬帮助看看是哪里的问题。
<div class="content">
<table width="100%" border="1" cellspacing="0" cellpadding="0" >
<tr>
<!-- 自定义字段头部标题 -->
<th> ID </th>
<th> 新闻标题 </th>
<th> 发布媒体 </th>
<th> 发布时间 </th>
<th> 记者(作者) </th>
<th> 稿源单位 </th>
<th> 撰稿人 </th>
<th> 备注 </th>
<th> 提交人 </th>
</tr>
<!-- 自定义字段数据列表-->
{qb:tag type="form" table="content1" name="form_list01" rows="20" order="id"}
<tr>
<td class="id">{$rs.id}</td>
<td class="title">{$rs.title}</td>
<td class="medium">{$rs.medium}</td>
<td class="fb_date">{$rs.fb_date}</td>
<td class="author">{$rs.author}</td>
<td class="source">{$rs.source}</td>
<td class="writer">{$rs.writer}</td>
<td class="notes">{$rs.notes}</td>
<td class="username">{$rs.uid|get_user_name}</td>
</tr>
{/qb:tag}
</table>
<div class="Showpage">{$pages}</div>
</div>分页需要再频道页使用listpage循环
{qb:listpage name="cms_index" rows="20" order="list"}
你的代码
{/qb:listpage}