<!--#include file="top.asp"-->
<%function HTMLEncode(fString)
if not isnull(fString) then
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")
    fString = Replace(fString, CHR(32), "&nbsp;")
    fString = Replace(fString, CHR(9), "&nbsp;")
    fString = Replace(fString, CHR(34), "&quot;")
    fString = Replace(fString, CHR(39), "&#39;")
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
    fString = Replace(fString, CHR(10), "<BR> ")
    HTMLEncode = fString
end if
end function
dim fox,rslist,sqllist
fox=request("fox")
set rslist=server.createobject("adodb.recordset")
sqllist="select * from [FOX_xinxi] where yz=1 and youxiao>=0 and id="&fox&""
rslist.open sqllist,conn,1,3
if rslist.eof then
  response.write "<li><font color=red>您要查看的问题不存在！</font><a href='javascript:history.back(-1)'>返回上一页</a>"
response.end
end if
rslist("llcs")=rslist("llcs")+1
rslist.update%>
<head>
<title><%=rslist("company")%>--<%=title%>--浏览问题</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK HREF="fox.css" REL="stylesheet" TYPE="text/css">
</head>

<body>
  <script LANGUAGE=JavaScript>
  function textLimitCheck(thisArea, maxLength){
    if (thisArea.value.length > maxLength){
      alert(maxLength + ' 个字限制. \r超出的将自动去除.');
      thisArea.value = thisArea.value.substring(0, maxLength);
      thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    messageCount.innerText = thisArea.value.length;
  }
</script>
<script language="JavaScript">
  function checkinput(){

        	if(form_fox.neirong.value.length<5 || form_fox.neirong.value.length>2000 ){
            alert("内容在5-2000字符");
            form_fox.neirong.focus();
            return false;
        }

 }
</script>
<div align="center">
	<table border="0" width="760" id="table31" cellspacing="0" cellpadding="0">
		<tr>
			<td width="570" valign="top">
		<div align="right">
			<table cellSpacing="0" cellPadding="0" width="570" border="0" id="table40">
				<tr>
					<td width="100%" style="font-size: 12px">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table41">
						<tr>
							<td width="24%" style="font-size: 12px">
							<%if rslist("ok")=1 then%><img border="0" src="images/fuwu11.gif" width="147" height="44"><%else%><img border="0" src="images/fuwu121.gif" width="147" height="44"><%end if%></td>
							<td width="69%" background="images/fuwubg2.gif" style="font-size: 12px">
							<table cellSpacing="0" cellPadding="0" width="104%" border="0" id="table42">
								<tr>
									<td style="font-size: 12px">　</td>
								</tr>
								<tr>
									<td height="10" style="font-size: 12px">
									<div class="style10" align="right">
										<marquee onmouseover="this.stop()" onmouseout="this.start()" scrollAmount="2" hspace="4" vspace="5" scrollDelay="80" width="100%"><%=tong%></marquee></div>
									</td>
								</tr>
							</table>
							</td>
							<td width="7%" style="font-size: 12px">
							<img height="44" src="images/fuwu3.gif" width="40"></td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td background="images/fuwubgg.gif" height="64" style="font-size: 12px" valign="top">
					
<div align="center">
	<table cellSpacing="0" cellPadding="0" width="95%" border="0" id="table43">
						<tr>
							<td width="100%" style="font-size: 12px" height="20" colspan="2">
							　<b><%=rslist("company")%></b></td>
						</tr>
						<tr>
							<td width="100%" style="font-size: 12px" height="20" colspan="2">
							<img border="0" src="images/icn_point.gif" width="16" height="16"> 
							<font color="#FF0000">悬赏分：<%=rslist("jf")%>分</font>--<font color="#A2A2A2">离问题结束还有<%=rslist("youxiao")%>天</font></td>
						</tr>
						<tr>
							<td width="100%" style="font-size: 12px" height="30" colspan="2" class="tdtxt05"><%=HTMLEncode(rslist("memo"))%></td>
						</tr>
						<tr>
							<td width="54%" style="font-size: 12px" height="30" class="tdtxt05">
							　</td>
							<td width="46%" style="font-size: 12px" height="30">
							　<font color="#A2A2A2">提问者：</font><%=rslist("username")%>
							
<%dim rsjj,sqljj,abc
set rsjj=server.createobject("adodb.recordset")
sqljj="select zhidaojf from [FOX_user] where username='"&rslist("username")&"'"
rsjj.open sqljj,conn,1,1
abc=rsjj("zhidaojf")
rsjj.close
set rsjj=nothing%>
<%dim rsj,sqlj
set rsj=server.createobject("adodb.recordset")
sqlj="select chenghao from [FOX_hao] where xiao>="&abc&""
rsj.open sqlj,conn,1,1%>
&nbsp;-&nbsp; <font color="#A2A2A2">
 <%=rsj("chenghao")%></font>
<%rsj.close
set rsj=nothing%></td>
						</tr>

</table>
<%if rslist("hfcs")>0 then%>
<%dim rshf,sqlhf,aej
set rshf=server.createobject("adodb.recordset")
sqlhf="select * from [FOX_hf] where xxid="&rslist("id")&" and ok=1"
rshf.open sqlhf,conn,1,1
if rshf.eof then%>
<%else%>
<table border="0" width="95%" id="table66" cellspacing="0" cellpadding="0">
					<tr>
							<td background="images/fuwu22.gif" colspan="2" height="16">
							<img border="0" src="images/icn_best.gif" width="24" height="22">
							<b>最佳答案：</b></td>
						</tr>
						<tr>
							<td colspan="2" class="tdtxt07"><%=HTMLEncode(rshf("neirong"))%></td>
						</tr>
						<tr>
							<td width="60%" class="tdtxt07">　</td>
							<td width="40%">
<font color="#A2A2A2">回答者：</font><%=rshf("username")%>
<%rsj.close
set rsj=nothing
%>
<%dim abc1
set rsjj=server.createobject("adodb.recordset")
sqljj="select zhidaojf from [FOX_user] where username='"&rshf("username")&"'"
rsjj.open sqljj,conn,1,1
abc1=rsjj("zhidaojf")
rsjj.close
set rsjj=nothing%>
<%
set rsj=server.createobject("adodb.recordset")
sqlj="select chenghao from [FOX_hao] where xiao>="&abc1&""
rsj.open sqlj,conn,1,1%>
&nbsp;-&nbsp; <font color="#A2A2A2">
 <%=rsj("chenghao")%></font>
<%rsj.close
set rsj=nothing%></td>
						</tr>
	</table>
	<%end if%>

<table border="0" width="95%" id="table66" cellspacing="0" cellpadding="0">
<%
set rshf=server.createobject("adodb.recordset")
sqlhf="select top 12 * from [FOX_hf] where xxid="&rslist("id")&" and ok=0"
rshf.open sqlhf,conn,1,1%>
<%do while not rshf.eof%>
						<tr>
							<td background="images/fuwu22.gif" colspan="2" valign="bottom" height="24">
							<img border="0" src="images/icn_point.gif" width="16" height="16">
							<b>相关回答：</b></td>
						</tr>
						<tr>
							<td colspan="2" class="tdtxt07"><%=HTMLEncode(rshf("neirong"))%></td>
						</tr>
						<tr>
							<td width="60%" class="tdtxt05">　</td>
							<td width="40%">
<font color="#A2A2A2">回答者：</font><%=rshf("username")%>
<%dim abc2
set rsjj=server.createobject("adodb.recordset")
sqljj="select zhidaojf from [FOX_user] where username='"&rshf("username")&"'"
rsjj.open sqljj,conn,1,1
abc2=rsjj("zhidaojf")
rsjj.close
set rsjj=nothing%>
<%'dim rsj,sqlj
set rsj=server.createobject("adodb.recordset")
sqlj="select chenghao from [FOX_hao] where xiao>="&abc2&""
rsj.open sqlj,conn,1,1%>
&nbsp;-&nbsp; <font color="#A2A2A2">
 <%=rsj("chenghao")%></font>
<%rsj.close
set rsj=nothing%></td>
						</tr>
<%aej=aej+1
if aej>=12 then exit do
rshf.movenext
loop
%>	</table>
<%if rslist("ok")=1 then%>
	<table border="0" width="95%" id="table66" cellspacing="0" cellpadding="0">
						<tr>
							<td><font color="#FF0000"><b>系统提示： </b>此问题已经结帖，谢谢关注！
							请留意其他问题。</font></td>
						</tr>
	</table>
	<%else%>
		<table border="0" width="95%" id="table66" cellspacing="0" cellpadding="0" height="176">
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="addhfchk.asp">

						<tr>
							<td colspan="2" background="images/fuwu22.gif">
							<b>
							<img border="0" src="images/icn_point.gif" width="16" height="16"> 
							我也来回答：</b></td>
						</tr>

						<tr>
							<td width="359">
							<textarea  class="button02" rows="8" onkeyUp="textLimitCheck(this, 2000);" name="neirong" cols="48"></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 5-2000 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
							<td class="tdtxt06">
							回答即可得<%=ddjf%>分，回答被采纳则获得悬赏分以及奖励<%=xtjf%>分。 
							<br>
							回答字数在2000字以内</td>
						</tr>
						<tr>
							<td colspan="2">
							参考资料：<input type="text" name="comname" size="20" class="button02">
							<input type="hidden" name="username" size="20" class="button02" value="<%=rsuser("username")%>">
							<input type="hidden" name="id" size="20" class="button02" value="<%=rslist("id")%>">
							<input type="hidden" name="dname" size="20" class="button02" value="<%=rslist("username")%>">&nbsp;
							<span class="style3">如果您的回答是从其他地方引用，请表明出处。</span></td>
						</tr>
						<tr>
							<td width="359" height="54">
			<input class="inputb" border="0" name="I6" type="submit" value="我来回答吧"></td>
							<td height="54">
							<font color="#FF6C3B">必须为本站会员才能回答问题</font></td>
						</tr></form>
	</table>
	<%end if
	end if%>
<%if rslist("hfcs")=0 then%>
<table border="0" width="95%" id="table66" cellspacing="0" cellpadding="0" height="176">
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="addhfchk.asp">

						<tr>
							<td colspan="2" background="images/fuwu22.gif">
							<b>
							<img border="0" src="images/icn_point.gif" width="16" height="16"> 
							我也来回答：</b></td>
						</tr>

						<tr>
							<td width="359">
							<textarea  class="button02" rows="8" onkeyUp="textLimitCheck(this, 2000);" name="neirong" cols="48"></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 5-2000 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
							<td class="tdtxt06">
							回答即可得<%=ddjf%>分，回答被采纳则获得悬赏分以及奖励<%=xtjf%>分。 
							<br>
							回答字数在2000字以内</td>
						</tr>
						<tr>
							<td colspan="2">
							参考资料：<input type="text" name="comname" size="20" class="button02">
							<input type="hidden" name="username" size="20" class="button02" value="<%=rsuser("username")%>">
							<input type="hidden" name="id" size="20" class="button02" value="<%=rslist("id")%>">
							<input type="hidden" name="dname" size="20" class="button02" value="<%=rslist("username")%>">&nbsp;
							<span class="style3">如果您的回答是从其他地方引用，请表明出处。</span></td>
						</tr>
						<tr>
							<td width="359" height="54">
			<input class="inputb" border="0" name="I6" type="submit" value="我来回答吧"></td>
							<td height="54">
							<font color="#FF6C3B">必须为本站会员才能回答问题</font></td>
						</tr></form>
	</table>
	<%end if
	rslist.close
	set rslist=nothing%>

					</div>
					</td>
				</tr>
				<tr>
					<td style="font-size: 12px">
					<img height="12" src="images/fuwu4.gif" width="570"></td>
				</tr>
			</table>
		</div>
			<p>　</td>
			<td width="15">　</td>
			<td valign="top">
							<table cellSpacing="0" cellPadding="0" width="89%" border="0" id="table49">
								<tr>
									<td style="font-size: 12px">
									<a target="_blank" style="text-decoration: none; color: #000000" href="http://61.156.25.12/bianmin/helpPeople.htm">
									<img height="32" src="images/bm1.gif" width="165" border="0"></a></td>
								</tr>
								<tr>
									<td background="images/bm2.gif" style="font-size: 12px">
									<table cellSpacing="6" cellPadding="0" width="100%" border="0" id="table50">
										<tr>
											<td style="font-size: 12px">
											<table cellSpacing="3" cellPadding="0" width="100%" border="0" id="table51">

											<tr class="xiaxian">
													<td style="font-size: 12px" colspan="2">
													<font color="#CC3300"><%=username%></font></td>
												</tr>
<%if rsuser.eof then%>
											<tr class="xiaxian">
													<td style="font-size: 12px">
													<font color="#CC3300">你非知道会员</font>
													　</td>
													<td style="font-size: 12px">
													<a href="regchk.asp?username=<%=username%>">成为知道会员</a>
													　</td>
												</tr>
<%else%>
											<tr class="xiaxian">
													<td style="font-size: 12px">
													<font color="#CC3300">知道会员</font>
													　</td>
													<td style="font-size: 12px">现积 <font color="#FF0000"><%=rsuser("zhidaojf")%></font> 分
													　</td>
												</tr>
<%end if%>
											</table>
											</td>
										</tr>
									</table>
									</td>
								</tr>
								<tr>
									<td style="font-size: 12px">
									<img height="7" src="images/bm3.gif" width="165"></td>
								</tr>
							</table>
							
							<table cellSpacing="0" cellPadding="0" width="89%" border="0" id="table62">
								<tr>
									<td style="font-size: 12px">
									<a target="_blank" style="text-decoration: none; color: #000000" href="http://61.156.25.12/bianmin/helpPeople.htm">
									<img height="32" src="images/bm111.gif" width="165" border="0"></a></td>
								</tr>
								<tr>
									<td background="images/bm2.gif" style="font-size: 12px">
									<table cellSpacing="6" cellPadding="0" width="100%" border="0" id="table63">
										<tr>
											<td style="font-size: 12px">
													<%
dim Nclasslie,sql,classlie,classid,id
Set Nclasslie =Server.CreateObject("ADODB.Recordset") 
sql="select * from FOX_class1"        
Set classlie = Server.CreateObject("ADODB.Recordset")                          
classlie.open sql,conn,1,1
if not classlie.eof then
do while not classlie.eof
classid=classlie("id")%> 
<div align="center">
<TABLE width=100% border=0 cellpadding="0" cellSpacing=1 bgColor=#FFFFFF style="border-collapse: collapse">
  <TBODY>
    <TR bgcolor="#fafafa">
      <TD height="24" colspan="6">
		<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table63" height="26">
			<tr>
				<td valign="bottom" width="21">
				<img border="0" src="images/icn_point.gif" width="16" height="16"></td>
				<td valign="bottom"><a class="scap1" href=wen.asp?class1=<%=classid%>&fox=1><b><%=classlie("class1")%></b></a>
          <%
                dim rs
                set rs=conn.execute("select count(id) from [FOX_xinxi] where class1="&classid&"")
                %>
        [<%=rs(0)%>]
</td>
			</tr>
			</table>
 </TD>
    </TR>
    <%
        sql="select * from [FOX_class2] where class1="&classid  
		Nclasslie.open sql,conn,1,1  
		do while not Nclasslie.eof
		%>
    <TR bgcolor="#f7f7f7">
      <TD height="21" align=center vAlign=middle><%if not Nclasslie.eof then%>
          <a href=wen.asp?class1=<%=classid%>&class2=<%=Nclasslie("id")%>&fox=2><font color="#000000"><%=Nclasslie("class2")%></font></a>
          <%
              set rs=conn.execute("select count(id) from [FOX_xinxi] where class1="&classid&" and class2="&Nclasslie("id")&"")
              response.write "["&rs(0)&"]"
              Nclasslie.movenext
              end if%>
      </TD>
       </TR>
    <%
loop               
Nclasslie.Close               
%>
  </TBODY>
</TABLE>
</div>
<%
classlie.movenext               
loop  
end if  
classlie.close  
set classlie=nothing  
set Nclasslie=nothing 
%>
											</td>
										</tr>
									</table>
									</td>
								</tr>
								<tr>
									<td style="font-size: 12px">
									<img height="7" src="images/bm3.gif" width="165"></td>
								</tr>
							</table>
							</td>
		</tr>
	</table>
</div>
</body>
<!--#include file="bottom.asp"-->