<!--#include file="../0.asp"--><!--#include file="../../../conn/zkconn.asp"-->
<html>
<head> 
<title>常见问题</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../css/css.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFFFFF" text="#000000"> 
<br><table width="650" align="center" bordercolordark="#FFFFFF" bordercolorlight="#000000">
  <tr valign="middle" bgcolor="#CCCCCC"> 
    <td height="25" colspan="3" align="center"><a href="add.asp">添加问题</a><font color="#1478eb">&nbsp; 
      </font>|<font color="#1478eb">&nbsp; </font><a href="edit.asp">管理问题</a> 
    </td>
  </tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From user_faq where userid in(select id from user_name where name='"&session("www.loogoo.com")&"') Order By id DESC", conn, 3, 2
rs.pagesize = 3
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
while not rs.eof and i<=rs.pagesize
%>
  <form action="xiugai-ok.asp" method="post" name="myform" id="myform">
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="17%" height="25" align="center"><font color="#FF3333">No:<%=i%></font></td>
      <td width="65%" height="25"> <input name="w" type="text" class="wenbenkuang" id="w" value="<%=rs("w")%>" size="70" maxlength="255"> 
      </td>
      <td width="150" align="center">修改丨删除</td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" align="center" valign="top"><br>
        问题答案 <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
        <input name="page" type="hidden" id="page" value="<%=page%>"></td>
      <td height="25"><textarea name="d" cols="69" rows="5" class="wenbenkuang" id="d"><%=rs("d")%></textarea> 
      </td>
      <td width="150" align="center"><input name="dz" type="checkbox" id="dz" onFocus="this.blur()" value="1" <%If rs("dz") = 1 Then Response.Write("CHECKED") : Response.Write("")%>>
        是否顶置<br> <br> <input name="Submit32" type="submit" class="go-wenbenkuang" value="修改"> 
        <input name="Submit" type="button" class="go-wenbenkuang" id="Submit3" value="删除" onClick=" window.location='del.asp?id=<% =rs("id")%>&page?=<%=page%>'"> 
      </td>
    </tr>
  </form>
  <%
i=i+1
 rs.MoveNext                                              
 wend 
%>
  <tr valign="middle" bgcolor="#f1f1f1"> 
        <form name=form method=get action=?>
      <td height="25" colspan="3" align="center"> 
        <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "页次："& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" 分页："

	if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit value=Go class=go-wenbenkuang>")
end if%>
    </td>    </form>
  </tr>
</table>
</body>
</html>
<%
rs.close
set rs=nothing%>