<!--#include virtual="/incs/config.asp" -->
<!--#include virtual="/incs/top.asp"-->
<%chk_log()
Chk_newpwr 4,13,1
%>
<%conn.open constr %>
<%
perpage=20
ThePage=0
page=0
rcount=0
thepage=0
dim clsnme(4)
clsnme(1)="业务咨询"
clsnme(2)="技术支持"
clsnme(3)="故障申告"
clsnme(4)="投诉建议"

qu1=SafeRequest("qu1")
if qu1="1" then
qstring=" and w_ifans=1"
elseif qu1="2" then
qstring=" and w_ifans<>1"
end if

'''''''''''''''''''''''''''''''''
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_hitcnt asc"
elseif ordernum=22 then
orderstring=" w_hitcnt desc"
elseif ordernum=31 then
orderstring=" w_addtme asc"
elseif ordernum=32 then
orderstring=" w_addtme desc"
elseif ordernum=41 then
orderstring=" w_tpe asc"
elseif ordernum=42 then
orderstring=" w_tpe desc"
elseif ordernum=51 then
orderstring=" w_cls asc"
elseif ordernum=52 then
orderstring=" w_cls desc"
elseif ordernum=61 then
orderstring=" w_opn asc"
elseif ordernum=62 then
orderstring=" w_opn desc"
elseif ordernum=71 then
orderstring=" w_top asc"
elseif ordernum=72 then
orderstring=" w_top desc"
elseif ordernum=81 then
orderstring=" u_nme asc"
elseif ordernum=82 then
orderstring=" u_nme desc"
else
orderstring=" w_addtme asc"
end if
else
ordernum=32
orderstring=" w_addtme desc"
end if
'''''''''''''''''''''''''''''''''''''''''
query="select * from v_wrdlst  where  w_rot=w_id "&qstring&"   order by "&orderstring
rs.open query,conn,1,1
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();
 }
 function delit(w_id)
 {
 if (confirm("确定删除吗？"))
 location.href="wrd_mng.asp?module=wrd_del&wid="+w_id;
 }

 //-->
 </script>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><b>问题反馈系统</b></td>
          <td valign=bottom noWrap align=right 
                        width="75%"><a href="wrd_lst.asp?qu1=2" class=commonface >未回复问题</a> 
            | <a href="wrd_lst.asp?qu1=1" class=commonface >已回复问题</a> 
            | <a href="wrd_lst.asp" class=commonface >所有问题</a> 
            | <a href="wrd_add.asp" class=commonface >提新问题</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  class=menuline></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=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=0 
                        cellspacing=0 class=datalist align="center"  width="100%">
        <tbody> 
        <tr > 
          <th class=datalistheader width="6%" align=center> <b>序号</b> </th>
          <%
			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
			if ordernum=51 then
			odr5=52
			else
			odr5=51
			end if
			if ordernum=61 then
			odr6=62
			else
			odr6=61
			end if
			if ordernum=71 then
			odr7=72
			else
			odr7=71
			end if
			if ordernum=81 then
			odr8=82
			else
			odr8=81
			end if
			%>
          <th class=datalistheader width="37%" align=center><a  class=commonface href="javascript:toorder(<%=odr1%>);"><b>标题</b></a></th>
          <th class=datalistheader width="7%" align=center> <a class=commonface  href="javascript:toorder(<%=odr8%>);"><b>用户</b></a></th>
          <th class=datalistheader width="10%" align=center> <a class=commonface  href="javascript:toorder(<%=odr4%>);"><b>分类一</b></a></th>
          <th class=datalistheader width="9%" align=center><a  class=commonface href="javascript:toorder(<%=odr5%>);"><b>分类二</b></a></th>
          <th class=datalistheader width="5%" align=center ><a  class=commonface href="javascript:toorder(<%=odr2%>);"><b>点击</b></a></th>
          <th class=datalistheader align=center width="5%"><a class=commonface  href="javascript:toorder(<%=odr6%>);"><b>公开</b></a></th>
          <th class=datalistheader align=center width="5%"><a class=commonface  href="javascript:toorder(<%=odr7%>);"><b>置顶</b></a></th>
          <th class=datalistheader align=center width="10%"><a class=commonface href="javascript:toorder(<%=odr3%>);"><b>日期</b></a></th>
          <th class=datalistheader align=center><b>操作</b></th>
        </tr>
        <%
			dim ifopen(2)
			ifopen(0)="NO"
			ifopen(1)="<b>YES</b>"
			dim iftop(2)
			iftop(0)="NO"
			iftop(1)="<b>YES</b>"
		  i=1
	Do While Not rs.eof 
	if i mod 2=1 then
	classstl="datalistgrida"
	else
	classstl="datalistgridb"
	end if
	%>
        <tr > 
          <td  class=<%=classstl%>  align=center height="20"><%=i+perpage*(page-1)%></td>
          <td class=<%=classstl%> ><a href="javascript:showurl('wrd_idx.asp?wid=<%=rs("w_id")%>');" class=commonface><%
		  if len(rs("w_ttl"))>20 then
		     w_ttl=left(rs("w_ttl"),20)&"..."
		  else
		     w_ttl=rs("w_ttl")
		  end if
		  if rs("w_ifans")=1 then
		  w_ttl=w_ttl&"<font color=#ff0000>(已复)</font>"
		  end if
		  response.write w_ttl
		  %></a> 
          </td>
          <td class=<%=classstl%> align="center" ><a href="javascript:showurl('/master/memmng/mem_dtl.asp?unme=<%=rs("u_nme")%>');" class=commonface><%=trim(rs("u_nme"))%></a></td>
          <td class=<%=classstl%> align="center" ><%=trim(rs("pt_nme"))%></td>
          <td class=<%=classstl%> align="center" ><%=clsnme(rs("w_cls"))%></td>
          <td class=<%=classstl%> align=center><%=rs("w_hitcnt")%></td>
          <td  class=<%=classstl%>  align=center><%=ifopen(rs("w_opn"))%></td>
          <td  class=<%=classstl%>  align=center><%=iftop(rs("w_top"))%></td>
          <td  class=<%=classstl%>  align=center><%=left(replace(rs("w_addtme")," ","   "),10)%></td>
          <td   class=<%=classstl%>>&nbsp; <a href="javascript:delit(<%=rs("w_id")%>);" class=commonface><u>删除</u></a> 
          </td>
        </tr>
        <%
  rs.movenext
i=i+1
if i>perpage then
exit do
end if

  loop 
  	rs.close
	conn.close
  %>
        </tbody> 
      </table>
      <div align="center"></div>
      <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=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>
<!--#include virtual="/incs/bottom.asp"-->
