X1运营交流
这个分页标签为什么没起作用,没有显示任何分页的按钮
139
3

代码如图,是调用数据库中某一个表的数据,数据量有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>


2
赏礼
赏钱
收藏
点击回复
      全部留言
  • 3
  • 素之美 风格开发者 消费:495.25元 2个月前 02:506楼

    分页需要再频道页使用listpage循环

    {qb:listpage name="cms_index" rows="20" order="list"}
    你的代码
    {/qb:listpage}
    微风-空灵 消费:140.02元 2个月前
        读取数据库,用这个listpage标签不行,需要能调取数据库,又能分页,怎么解决。

    素之美 消费:495.25元 iPhone 2个月前
    @微风-空灵 那要写sql调
0 赏钱 赏礼回复
更多回复
      你可能感兴趣的主题
恢复多功能编辑器
  • 3 1
  • X1运营交流
        圈内贴子51572
    • 圈子成员1000
    本圈子内的新贴

    推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648