<!--#include file="conn.asp" -->
<% adm_power_page=6 %>
<!--#include file="admin_dn.asp" -->
<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/mail_inc.asp" -->
<% 
if Trim(Request.QueryString("w"))="del" then
 for i= 1 to request.form("del").count
  sql="delete from msm where id="&request("del")(i)
  conn.execute(sql)
  next

end if
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="2" topmargin="0">
<p><a href="adm_11.asp" target="mainFrame"><strong><font color="#990000">在线提问</font></strong></a></p>
<p>&nbsp;</p>
<form name="form1" method="post" action="adm_11.asp?w=del">
  <table width="99%" height="56" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
    <tr bgcolor="#F5F5F5"> 
      <td width="7%" height="18"> 
        <div align="center">序号</div></td>
      <td width="37%"> 
        <div align="center">问 题</div></td>
      <td width="13%"> 
        <div align="center">问题状态</div></td>
      <td width="16%"> 
        <div align="center">提交时间</div></td>
      <td width="14%"> 
        <div align="center">答复时间</div></td>
      <td width="7%"> 
        <div align="center">答复</div></td>
      <td width="6%"> 
        <div align="center">删除</div></td>
    </tr>
    <% 
	 pp=20
	sql="select * from msm  order by id desc"
	 c=c*pagecount 
 rs.open sql,conn,1,1 

if not rs.eof then
  count=rs.recordcount
    if count=empty then
      count=0
    end if
    if count/pp>(count\pp) then
        totalpage=(count\pp)+1
  else
   totalpage=(count\pp)
    end if
end if 
 pagecount=cint(request.querystring("topage"))                              
 if pagecount<=0 then pagecount=1
 if pagecount>totalpage then pagecount=totalpage
 
 
 
if not rs.eof then
  rs.movefirst
 rs.move (pagecount-1)*pp
 i=0
 while not rs.eof and i<pp
 i=I+1
  c=c+1		
		 %>
    <tr> 
      <td height="18"><div align="center"><font color="#FF0000"><%= c %></font></div></td>
      <td><div align="center"><%= mid(rs("body"),1,10)%></div></td>
      <td><div align="center"> 
          <% if not rs("flyes") then
		  Response.Write("正在处理")
		  else
		  Response.Write("<font color='#FF0000'>已经处理</font>")
		  end if %>
        </div></td>
      <td><div align="center"><%= rs("dat") %>&nbsp;</div></td>
      <td><div align="center"> 
          <% if rs("fldat")="" then
		  Response.Write("/")
		  else
		  Response.Write(rs("fldat"))
		  end if %>
          &nbsp;</div></td>
      <td><div align="center"><a href="adm_msm.asp?id=<%=rs("id")%>">答复</a></div></td>
      <td><div align="center"> 
          <input name="del" type="checkbox" class="unnamed1" id="del" value="<%=rs("id")%>">
        </div></td>
    </tr>
    <% rs.movenext
		wend
        end if
		rs.close %>
    <tr> 
      <td height="18" colspan="2">一共有:<%= count %> 条　一共:<%= totalpage %> 页 当前为: <%= pagecount %> 页</td>
      <td colspan="4"><div align="center"> 
          <% 
	  if totalpage>1 then
	     if totalpage-pagecount>0 then
	  %>
          <a href="user_11.asp?topage=<%=pagecount+1%>">下一页</a> 
          <% 
	   
	  end if
	  if pagecount<>1 and totalpage-pagecount>0 then 
	   response.write "<font color=#FFFFFF>/</font>"
	   end if
	   
	   if pagecount<>"1" then %>
          <a href="user_11.asp?topage=<%=pagecount-1%>">上一页</a>　 
          <% 
	  end if
	  end if
	  %>
          &nbsp; </div></td>
      <td><div align="center">
          <input type="submit" name="Submit" value="删">
        </div></td>
    </tr>
  </table>
</form>
<p align="center">&nbsp;</p>
</body>
</html>
