<!--#include file="conn.asp" -->
<!--#include file="inc/publicfun.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>查看报名情况</title>
<script language=javascript src="inc/cookies.js"></script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
 stylecook=1;
}
else
{
 stylecook++;
}
style="ftbbs0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\"  rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>
</head>
<body leftmargin="0" topmargin="1" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1">
  <tr class=td001> 
    <td height="30" colspan="4" align="center"><strong>查看报名情况</strong></td>
  </tr>
  <tr class="td002"> 
    <td width="24%" height="25" align="right"> <div align="center">姓名</div></td>
    <td width="24%"><div align="center">性别</div></td>
    <td width="26%"><div align="center">来自</div></td>
    <td width="26%"><div align="center">职业</div></td>
  </tr>
<%
userid=request("titleid")
sql="select * from ftbbs_bmtb where flag=0 and titleid="&request("titleid")&" order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
   wzrep =16
   wzpage = clng(request.querystring("page"))
   if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
   rs.PageSize=wzrep
   rs.AbsolutePage=wzpage
   wzpagecount=rs.PageCount
   wzcount=rs.RecordCount
   for i = 0 to wzrep-1
   if rs.eof then exit for		  
%>
  <tr> 
    <td height="25" align="center" class="td004"><%=rs("username")%></td>
    <td class="td004" align="center"><%=rs("sex")%></td>
    <td class="td004" align="center"><%=rs("address")%></td>
    <td class="td004" align="center"><%=rs("job")%></td>
  </tr>
<%
rs.movenext
next
rs.close
closedb
%>
  <tr> 
    <td height="25" colspan="4" align="center" class="td002">&nbsp;共<font color=red><%= wzcount%></font>条 
      <font color=red><%= wzrep%></font>/页 共<font color=red><%= wzpagecount%></font>页 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= pagenar(wzpagecount,"","titleid",userid)%></td>
  </tr>
<%else%>
  <tr> 
     
    <td colspan="4" height="25" class="td002">还没有任何记录</td>
  </tr>
<%end if%>
</table>
</body>
</html>
