<!-- #include file="include/con_jy.asp" -->

<%

dim num_col,pnum,w_num,nid,nname,vhead,col_num,username,tr_ture
pageurl="username="&username&"&"
num_col=4
col_num=5
pnum=100\col_num
w_num=10
tr_ture=true
nummer=num_col*col_num
nums=nummer




call web_head(0,0,2,0,0)

'----------------------------左边 开始----------------------------

'----------------------------左边 结束----------------------------
'call web_center(0)
'----------------------------中间 开始----------------------------
%>
<table cellspacing=0 cellpadding=4 width='770'>
<tr><td class=td0>&nbsp;<%response.write img_skin(web_img_m)&tit&vhead%>会员风采</td></tr>

<%
sql="select count(id) from user_data"
set rs=joekoe_cms.exec(sql,1)
rssum=rs(0)
rs.close
call format_pagecute()
sql="select top "&nummer*viewpage&" id,username,face from user_data  order by id desc"
call joekoe_cms.exec("",-1)
rs.open sql,conn,1,1
if int(viewpage)>1 then rs.move (viewpage-1)*nummer
if int(viewpage*nummer)>int(rssum) then nums=nummer-(viewpage*nummer-rssum)
for i=1 to nums
  nid=rs("id")
  nname=rs("username")
   if (i-1) mod col_num=0 then

      %>
<tr class=bg_td>
<td>
  <table border=0 cellspacing=0 cellpadding=4 width='100%'>
  <tr align=center>
  <%
    tr_ture=false
  end if
%>

  <td>
    <table border=0 cellspacing=0 cellpadding=4 width='100%'>
    <tr><td align=center><%response.write pic_fk(rs("face"),1,"user_view.asp?username="&nname&"")%></td>
    <tr><td align=center><b><a href='user_view.asp?username=<%response.write nname%>' alt='<%response.write joekoe_cms.code_html(nname,1,0)%>'><%response.write joekoe_cms.code_html(nname,1,w_num)%></a></b></td></tr>  

    </table>
    </td>
    <%
  if i mod col_num=0 then
    tr_ture=true
%>

     </tr>
  </table>
  </td>
</tr>
<%end if

 rs.movenext
next
rs.close
%>
   
<tr class=bg_tds><td height=30>
现有 <font class=red><%response.write rssum%></font> 个<%response.write tit%>，
页次：<font class=red><%response.write viewpage%></font>/<font class=red><%response.write thepages%></font>&nbsp;
&nbsp;分页：<%response.write jk_pagecute(nummer,thepages,viewpage,pageurl,5,"#ff0000")%></td></tr></table><%
response.write ukong
'----------------------------中间 结束----------------------------

call web_end(0,0)

%>