短信息分页列表标签

2023-12-14 15:57 小编

根据SQL查询条件返回对应的短消息分页列表,用循环输出。

参数说明:

page_size: 每页显示条数,int类型

page_index: 当前页码,int类型

strwhere: SQL查询语句

totalcount: 记录总数,out参数,int类型

get_user_message_list(page_size, page_index, strwhere, out totalcount)

<!--示例:显示用户名为test短消息收件箱列表--><!--取得一个DataTable,page为当前页码变量,totalcount为已声明的变量--><%set DataTable dt=get_user_message_list(10, page, "accept_user_name='test' and type=2", out totalcount)%><!--取得分页页码列表,action为变量,相关说明请查阅get_page_link分页标签--><%set string pagelist=get_page_link(10, page, totalcount, "usermessage", action, "__id__")%><!--使用循环输出--><%foreach(DataRow dr in dt.Rows)%>
  短消息标题:{dr[title]}
<%/foreach%>
记录总数:{totalcount}
页码:{pagelist}


在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码