<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/web_top.asp"-->
<%
chk_log_usr()
''''''''''''''''''''''''''''''''
qu1=SafeRequest("qu1")
if qu1="1" then
qstring=" and w_ifans=1"
elseif qu1="2" then
qstring=" and w_ifans<>1"
end if
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
perpage=SafeRequest("perpage")
if chk_int(perpage)=false then
perpage=10
end if 
perpage=clng(perpage)
if perpage>50  then
perpage=50
end if
ThePage=0
page=0
rcount=0
thepage=0

dim clsnme(4)
clsnme(1)="业务咨询"
clsnme(2)="技术支持"
clsnme(3)="故障申告"
clsnme(4)="投诉建议"

'''''''''''''''''''''''''''''''''
ordernum=SafeRequest("ordernum")
if chk_int(ordernum)=true then
if ordernum=11 then
orderstring=" w_ttl asc"
elseif ordernum=12 then
orderstring=" w_ttl desc"
elseif ordernum=21 then
orderstring=" w_tpe,w_cls asc"
elseif ordernum=22 then
orderstring=" w_tpe desc,w_cls desc"
elseif ordernum=31 then
orderstring=" w_addtme asc"
elseif ordernum=32 then
orderstring=" w_addtme desc"
elseif ordernum=41 then
orderstring=" w_ifans asc"
elseif ordernum=42 then
orderstring=" w_ifans desc"
 end if
else
ordernum=32
orderstring=" w_addtme desc"
end if
'''''''''''''''''''''''''''''''''''''''''

query="select * from v_wrdlst    where w_rot=w_id and  (w_opn=1 or w_unme='"&session("usrname")&"' ) "&qstring&qstring2&"  order by w_top desc,"&orderstring
rs.open query,conn,3
if rs.RecordCount<=0 then
          ErrMsg="<font color=#ff0000>对不起</font>，没有搜索到符合条件的域名记录！..."
	
	   else
	      rcount=rs.recordcount
	      rs.pagesize=perpage
		  ThePage=rs.pagecount
		  if Chk_Int(SafeRequest("page"))=false then
		  page=1
		  else
		   page=cint(SafeRequest("page"))
		    if page<=0  then
		       page=1
		    elseif page>ThePage then
		       page=ThePage
		    end if	  
		  end if
		    rs.absolutepage=page
       end if   

%>
<script language="javascript">
<!--

function tofirst()
{searchform.page.value=1;
searchform.submit();
 }
  function toprev()
{searchform.page.value-=1;
searchform.submit();
 }
  function tonext()
{
searchform.page.value=<%=page%>-1+2;
searchform.submit();
 }
  function tolast()
{searchform.page.value=<%=ThePage%>;
searchform.submit();
 }
 function toorder(ordn)
{searchform.ordernum.value=ordn;
searchform.page.value=1;
searchform.submit();
 }

  //-->
 </script>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td colspan=2><img height=3 
            src="/imgs/spacer.gif" width=3></td>
        </tr>
        <tr> 
          
          
          <td width=438 
          background=/imgs/bg_inside_pages_link.jpg 
          height=30><img height=11 
            src="/imgs/aword_square.gif" width=11 
            align=absMiddle> <a href="/">首 页</a> <strong>&gt;</strong> <a href="/control/">管理中心</a> 
            <b>&gt;</b> <a href="/control/wrd_mng/wrd_lst.asp">咨询反馈</a></td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan=2><img height=10 
            src="/imgs/shadow_inside_pages.jpg" 
        width=438></td>
        </tr>
        </tbody>
      </table>
 <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width=180 bgColor=#f3f3f3><!--#include virtual="/incs/control_left.asp"-->
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
          </TD>
          <TD vAlign=top width=10 
          background=/imgs/bg_inside_pages_block.jpg><IMG 
            height=1 src="/imgs/bg_inside_pages_block.jpg" 
            width=10></TD>
          <TD vAlign=top> 
            <table cellspacing=2 cellpadding=0 width="100%" border=0>
              <tbody> 
              <tr> 
                <td  colspan=2 valign="middle">
                  <table class=line cellspacing=0 cellpadding=0 width="98%" 
                  border=0 align="center">
                    <tbody> 
                    <tr> 
                      <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>问题反馈<font color="#000000"><a href="index.asp"></a></font></strong></span></b></font></td>
                      <td valign=bottom noWrap align=right 
                        width="75%"><a href="wrd_lst.asp?qu1=2"><font color="#000000">未回复问题</font></a> 
                        <font color="#000000">|</font> <a href="wrd_lst.asp?qu1=1"><font color="#000000">已答复问题</font></a> 
                        <font color="#000000">|</font> <a href="wrd_lst.asp"><font color="#000000">所有问题</font></a> 
                        <font color="#000000">| </font><a href="wrd_add.asp"><font color="#000000">提新问题</font></a></td>
                    </tr>
                    <tr> 
                      <td align=middle width="100%" colspan=2 height=5></td>
                    </tr>
                    <tr> 
                      <td align=middle width="100%" colspan=2 height=2 bgcolor="#5F5F5F"></td>
                    </tr>
                    </tbody> 
                  </table>
                  <br>
                </td>
              </tr>
              <tr> 
                <td  colspan=2 valign="middle" height="28">
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tbody> 
  <form action=wrd_lst.asp method=post name=searchform2>
          <tr> 
            <td height=20 width="119">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
            <td height=20> 
              <div align="center"> 
                <input type=hidden name=qu1 value="<%=qu1%>">
                <input type=hidden name=qu2 value="<%=qu2%>">
                <input type=hidden name=qu3 value="<%=qu3%>">
                <input type=hidden name=qu4 value="<%=qu4%>">
                <input type=hidden name=qu5 value="<%=qu5%>">
                <input type=hidden name=qu6 value="<%=qu6%>">
                <input type=hidden name=qu7 value="<%=qu7%>">
                <input type=hidden name=qu8 value="<%=qu8%>">
                <input type=hidden name=querytype value="<%=querytype%>">
                <input type=hidden name=perpage value="<%=perpage%>">
				<input type=hidden name=ordernum value="<%=ordernum%>">
                <%=page_turn%></div>
            </td>
            <td height=20 width="120"> 
              <div align="right">转第 
                <select name="page" onChange="javascript:document.searchform2.submit();">
                  <option selected value=<%=page%>><%=page%></option>
                  <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %> 
                </select>
                页</div>
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table>

                  <table border=0 cellpadding=2 
                        cellspacing=1 bordercolordark="#FFFFFF" align="center" width="98%" bgcolor="#666666">
                    <tbody> 
                    <form action="wrd_lst.asp" method=post>
                      <tr bgcolor="#8b8b8b" > 
                        <td height="26" width="6%" align=center> 
                          <div align="center"><font color="#FFFFFF">序号</font></div>
                        </td>
                        <%
			if ordernum=11 then
			odr1=12
			else
			odr1=11
			end if
			if ordernum=21 then
			odr2=22
			else
			odr2=21
			end if
			if ordernum=31 then
			odr3=32
			else
			odr3=31
			end if
			if ordernum=41 then
			odr4=42
			else
			odr4=41
			end if
 
			%>
                        <td width="48%"15%" align=center><a href="javascript:toorder(<%=odr1%>);"><font color=#000000><font color="#FFFFFF">标题</font></font></a></td>
                        <td height="25" align=center ><a href="javascript:toorder(<%=odr2%>);"><font color=#000000><font color="#FFFFFF">类别</font></font></a></td>
                        <td height="25" width="15%"  align=center><a href="javascript:toorder(<%=odr3%>);"><font color=#000000><font color="#FFFFFF">时间</font></font></a></td>
                        <td height="25" width="10%" align=center><a href="javascript:toorder(<%=odr4%>);"><font color=#000000><font color="#FFFFFF">状态</font></font></a></td>
                      </tr>
                      <%
		  i=1
	Do While Not rs.eof 
	%>
                      <tr bgcolor="#FFFFFF" > 
                        <td height="25"  align=center><%=i+perpage*(page-1)%></td>
                        <td height="25" bgcolor="#FFFFFF">&nbsp;<a href="wrd_idx.asp?wid=<%=rs("w_id")%>" target=_self><font color=#000000 style="FONT-FAMILY: Tahoma,verdana,arial;"><u><%=rs("w_ttl")%></u></font> </a> <% if rs("w_top")="1" then 
						response.write "<font color=#ff0000>[<i>top</i>]</font>"
						end if %></td>
                        <td height="25"  align=center class=okk><font color=#000000><%=rs("pt_nme")&clsnme(rs("w_cls"))%></font> </td>
                        <td height="25"  align=center> 
                          <%
			Response.Write left(replace(rs("w_addtme")," ","   "),10)
 %>
                        </td>
                        <td height="25"  align=center> 
                          <%
		If rs("w_ifans")<> "1" Then
			Response.Write "<font color=#ff0000>未回复</font>"
			else
			Response.Write "已回复"
			
		End If
		%>
                        </td>
                      </tr>
                      <%
  rs.movenext
i=i+1
if i>perpage then
exit do
end if

  loop 
  	rs.close
  %>
                    </form>
                    </tbody> 
                  </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table>
      
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tbody> 
  <form action=wrd_lst.asp method=post name=searchform>
          <tr> 
            <td height=20 width="120">&nbsp;共计 <b> <%=rcount%> </b>条记录 </td>
            <td height=20> 
              <div align="center"> 
                <input type=hidden name=qu1 value="<%=qu1%>">
                <input type=hidden name=qu2 value="<%=qu2%>">
                <input type=hidden name=qu3 value="<%=qu3%>">
                <input type=hidden name=qu4 value="<%=qu4%>">
                <input type=hidden name=qu5 value="<%=qu5%>">
                <input type=hidden name=qu6 value="<%=qu6%>">
                <input type=hidden name=qu7 value="<%=qu7%>">
                <input type=hidden name=qu8 value="<%=qu8%>">
                <input type=hidden name=querytype value="<%=querytype%>">
                <input type=hidden name=perpage value="<%=perpage%>">
                <input type=hidden name=ordernum value="<%=ordernum%>">
                <%=page_turn%>
              </div>
            </td>
            <td height=20 width="120"> 
              <div align="right">转第 
                <select name="page" onChange="javascript:document.searchform.submit();">
                  <option selected value=<%=page%>><%=page%></option>
                  <%
				   for i=1 to thepage
				   response.write "<option value="&i&">"&i&"</option>"
				   next
				   %>
                </select>
                页</div>
            </td>
          </tr>
        </form>
        </tbody> 
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height=8></td>
        </tr>
      </table>     
<br>
</td>
              </tr>
              </tbody> 
            </table>
          </TD>
        </TR></TBODY></TABLE>
      
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD bgColor=#cccccc><IMG height=1 
            src="/imgs/spacer.gif" 
      width=1></TD></TR></TBODY></TABLE>
<!--#include virtual="/incs/web_bottom.asp"-->