<!--#include file=conn.asp-->
<!--#include file="function.asp"-->
<!--#include file="config.asp"-->
<!--#include file="md5.asp"-->
<%
if not IsNumeric(request("id")) or request("id")="" then
		Response.Write ("<script>alert('友情提示!\n\参数错误!');history.back();</script>")
		Response.end
	end if
%>
<%if request("id")<>"" then
	id=CLNG(request("id"))
	end if
	rs.open"select * from question where id="&id,conn,1,1
	if rs.eof then
	response.write"问题参数出错!"
	else
	shang=rs("shang")
	rs2.open"select * from question where id="&id,conn,1,3
	rs2("views")=rs2("views")+1
	rs2.update
	rs2.close
	rs2.open"select * from person where name='"&rs("sender")&"'",conn,1,1
	touxian=rs2("touxian")
	rs2.close
	rs2.open"select * from assort where topic='"&rs("topic")&"'",conn,1,1
	shuxing=rs2("shuxing")
	rs2.close
	rs2.open"select * from class where id="&shuxing&"",conn,1,1
	topic0=rs2("topic")
	id0=rs2("id")
	rs2.close
	if rs("jie")=0 then
	if now()>rs("overtime") then
	rs1.open"select * from reply where replyid="&id&"",conn,1,1
	if rs1.eof then
	rs2.open"select * from question where id="&id,conn,1,3
	rs2("jie")=2
	rs2.update
	rs2.close
	else
	rs2.open"select * from question where id="&id,conn,1,3
	rs2("jie")=3
	rs2.update
	rs2.close
	rs2.open"select * from person where name='"&rs("sender")&"'",conn,1,3
	rs2("fa")=rs2("fa")+gqkf
	rs2("jifen")=rs2("jifen")-gqkf
	if rs2("jifen")-gqkf<fen1 then
		  rs2("touxian")=""&ji1&" 一级"
		  elseif rs2("jifen")-gqkf>=fen1 and rs2("jifen")-gqkf<fen2 then
		  rs2("touxian")=""&ji1&" 一级"
		  elseif rs2("jifen")-gqkf>=fen2 and rs2("jifen")-gqkf<fen3 then
		  rs2("touxian")=""&ji2&" 二级"
		  elseif rs2("jifen")-gqkf>=fen3 and rs2("jifen")-gqkf<fen4 then
		  rs2("touxian")=""&ji3&" 三级"
		  elseif rs2("jifen")-gqkf>=fen4 and rs2("jifen")-gqkf<fen5 then
		  rs2("touxian")=""&ji4&" 四级"
		  elseif rs2("jifen")-gqkf>=fen5 and rs2("jifen")-gqkf<fen6 then
		  rs2("touxian")=""&ji5&" 五级"
		  elseif rs2("jifen")-gqkf>=fen6 and rs2("jifen")-gqkf<fen7 then
		  rs2("touxian")=""&ji6&" 六级"
		  elseif rs2("jifen")-gqkf>=fen7 and rs2("jifen")-gqkf<fen8 then
		  rs2("touxian")=""&ji7&" 七级"
		  elseif rs2("jifen")-gqkf>=fen8 and rs2("jifen")-gqkf<fen9 then
		  rs2("touxian")=""&ji8&" 八级"
		  elseif rs2("jifen")-gqkf>=fen9 and rs2("jifen")-gqkf<fen10 then
		  rs2("touxian")=""&ji9&" 九级"
		  elseif rs2("jifen")-gqkf>=fen10 then
		  rs2("touxian")=""&ji10&" 十级"
		  end if
	rs2.update
	rs2.close
	end if
	rs1.close
	end if
	end if
	if rs("jie")=4 then
	if now()>rs("toutime")+3 then
	rs1.open"select sum(dapiao) as piaoshu from toupiao where wenid="&id&"",conn,1,1
	toushu=rs1("piaoshu")
	rs1.close
	if toushu>5 then
	rs1.open"select max(dapiao) as gaopiao from toupiao where wenid="&id&"",conn,1,1
	gao=rs1("gaopiao")
	rs1.close
	rs1.open"select * from toupiao where wenid="&id&" and dapiao="&gao&"",conn,1,1
	daid=rs1("daid")
	dauser=rs1("dauser")
	rs1.close
	rs1.open"select * from reply where id="&daid,conn,1,3
	rs1("isdeal")=1
	rs1("jiatime")=now
	rs1.update
	rs1.close
	rs1.open"select * from question where id="&id,conn,1,3
	rs1("jie")=1
	rs1("jieuser")=dauser
	rs1.update
	rs1.close
	rs1.open"select * from person where name='"&dauser&"'",conn,1,3
		  rs1("helpnum")=rs1("helpnum")+1
		  rs1("jifen")=rs1("jifen")+dajiadf+shang
		  if rs1("jifen")+dajiadf+shang<fen1 then
		  rs1("touxian")=""&ji1&" 一级"
		  elseif rs1("jifen")+dajiadf+shang>=fen1 and rs1("jifen")+dajiadf+shang<fen2 then
		  rs1("touxian")=""&ji1&" 一级"
		  elseif rs1("jifen")+dajiadf+shang>=fen2 and rs1("jifen")+dajiadf+shang<fen3 then
		  rs1("touxian")=""&ji2&" 二级"
		  elseif rs1("jifen")+dajiadf+shang>=fen3 and rs1("jifen")+dajiadf+shang<fen4 then
		  rs1("touxian")=""&ji3&" 三级"
		  elseif rs1("jifen")+dajiadf+shang>=fen4 and rs1("jifen")+dajiadf+shang<fen5 then
		  rs1("touxian")=""&ji4&" 四级"
		  elseif rs1("jifen")+dajiadf+shang>=fen5 and rs1("jifen")+dajiadf+shang<fen6 then
		  rs1("touxian")=""&ji5&" 五级"
		  elseif rs1("jifen")+dajiadf+shang>=fen6 and rs1("jifen")+dajiadf+shang<fen7 then
		  rs1("touxian")=""&ji6&" 六级"
		  elseif rs1("jifen")+dajiadf+shang>=fen7 and rs1("jifen")+dajiadf+shang<fen8 then
		  rs1("touxian")=""&ji7&" 七级"
		  elseif rs1("jifen")+dajiadf+shang>=fen8 and rs1("jifen")+dajiadf+shang<fen9 then
		  rs1("touxian")=""&ji8&" 八级"
		  elseif rs1("jifen")+dajiadf+shang>=fen9 and rs1("jifen")+dajiadf+shang<fen10 then
		  rs1("touxian")=""&ji9&" 九级"
		  elseif rs1("jifen")+dajiadf+shang>=fen10 then
		  rs1("touxian")=""&ji10&" 十级"
		  end if
		  rs1.update
		  rs1.close
	rs2.open"select * from toupiao where wenid="&id&"",conn,1,1
	while not rs2.eof
	rs1.open"select * from reply where id="&rs2("daid")&"",conn,1,3
	rs1("tou")=0
	rs1.update
	rs1.close
	rs2.movenext
	  wend
	rs2.close
	rs1.open"select * from toupiao where wenid="&id,conn,1,3
	while not rs1.eof
	rs1.delete
	rs1.movenext
	  wend
	rs1.close
	else
	rs1.open"select * from question where id="&id,conn,1,3
	rs1("jie")=2
	rs1.update
	rs1.close
	rs2.open"select * from toupiao where wenid="&id&"",conn,1,1
	while not rs2.eof
	rs1.open"select * from reply where id="&rs2("daid")&"",conn,1,3
	rs1("tou")=0
	rs1.update
	rs1.close
	rs2.movenext
	  wend
	rs2.close
	rs1.open"select * from toupiao where wenid="&id,conn,1,3
	while not rs1.eof
	rs1.delete
	rs1.movenext
	  wend
	rs1.close
	rs1.open"select * from touuser where wenid="&id,conn,1,3
	while not rs1.eof
	rs1.delete
	rs1.movenext
	  wend
	rs1.close
	end if
	end if
	end if
	%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("title")%>_<%=webname%></title>
<style type="text/css">
<!--
a.f12og:link{color:#ff6600}
a.f12og:visited{color:#ff6600}
-->
</style>
<link href="iknow.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript>
basic = false;
stprompt = true;

function AddText(NewCode) {
document.hd.Content.value+=NewCode
}
function rtitle(i)
{
document.hd.Title.value=i+document.hd.Title.value;
}
function Font(FONT) {
 	if (basic) {
		AddTxt="\r[FACE="+FONT+"][/FACE]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("要设置字体的文字"+FONT,"文字");
		if (txt!=null) {             
			AddTxt="\r[FACE="+FONT+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/FACE]";
			AddText(AddTxt);
		}        
	}  
}

function Size(SIZE) {
	if (basic) {
		AddTxt="\r[SIZE="+SIZE+"][/SIZE]";
		AddText(AddTxt);
	} else {                       
		txt=prompt("要设置字体的大小"+SIZE,"文字"); 
		if (txt!=null) {             
			AddTxt="\r[SIZE="+SIZE+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/SIZE]";
			AddText(AddTxt);
		}        
	}
}

function Color(COLOR) {
	if (basic) {
		AddTxt="\r[COLOR="+COLOR+"][/COLOR]";
		AddText(AddTxt);
	} else {  
     	txt=prompt("要设置字体的颜色"+COLOR,"文字");
		if(txt!=null) {
			AddTxt="\r[COLOR="+COLOR+"]"+txt;
			AddText(AddTxt);        
			AddTxt="[/COLOR]";
			AddText(AddTxt);
		} 
	}
}

function Bold() {
	if (basic) {
		AddTxt="\r[B][/B]";
		AddText(AddTxt);
	} else {  
		txt=prompt("粗体文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[B]"+txt;
			AddText(AddTxt);
			AddTxt="[/B]";
			AddText(AddTxt);
		}       
	}
}

function Italicize() {
	if (basic) {
		AddTxt="\r[I][/I]";
		AddText(AddTxt);
	} else {   
		txt=prompt("斜体文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[I]"+txt;
			AddText(AddTxt);
			AddTxt="[/I]";
			AddText(AddTxt);
		}	        
	}
}

function Underline() {
  	if (basic) {
		AddTxt="\r[U][/U]";
		AddText(AddTxt);
	} else {  
		txt=prompt("下划线文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[U]"+txt;
			AddText(AddTxt);
			AddTxt="[/U]";
			AddText(AddTxt);
		}	        
	}
}

function Left() {
 	if (basic) {
		AddTxt="\r[ALIGN=LEFT][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("左对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=LEFT]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Center() {
 	if (basic) {
		AddTxt="\r[ALIGN=CENTER][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("居中对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=CENTER]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Right() {
 	if (basic) {
		AddTxt="\r[ALIGN=RIGHT][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("右对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=RIGHT]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Link() {
	if (basic) {
		AddTxt="\r[URL][/URL]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("显示链接的文本.\n如果为空，那么将只显示超级链接地址",""); 
		if (txt2!=null) {
			txt=prompt("http:// 超级链接","http://");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="\r[URL]"+txt;
					AddText(AddTxt);
					AddTxt="[/URL]";
					AddText(AddTxt);
				} else {
					AddTxt="[URL="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/URL]";
					AddText(AddTxt);
				}         
			} 
		}
	}
}

function Mail() {
	if (basic) {
		AddTxt="\r[EMAIL][/EMAIL]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("显示链接的文本.\n如果为空，那么将只显示你的 Email 地址",""); 
		if (txt2!=null) {
			txt=prompt("email 电子邮件地址","xxx@domain.com");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="\r[EMAIL]"+txt+"[/EMAIL]";
				} else {
					AddTxt="[EMAIL="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/EMAIL]";
				} 
				AddText(AddTxt);	        
			}
		}
	}
}

function Image() {
	if (basic) {
		AddTxt="\r[IMG][/IMG]";
		AddText(AddTxt);
	} else {  
		txt=prompt("外部图片地址","http://");    
		if(txt!=null) {            
			AddTxt="\r[IMG]"+txt;
			AddText(AddTxt);
			AddTxt="[/IMG]";
			AddText(AddTxt);
		}	
	}
}

function Flash() {
 	if (basic) {
		AddTxt="\r[FLASH=380,330][/FLASH]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("flash 动画文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[FLASH=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/FLASH]";
			AddText(AddTxt);
		}        
	}  
}

function Cwmv() {
 	if (basic) {
		AddTxt="\r[MP=380,330][/MP]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Media Player 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[MP=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/MP]";
			AddText(AddTxt);
		}        
	}  
}

function Crm() {
 	if (basic) {
		AddTxt="\r[RM=380,330][/RM]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Real Player 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[RM=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/RM]";
			AddText(AddTxt);
		}        
	}  
}

function Cmov() {
 	if (basic) {
		AddTxt="\r[QT=380,330][/QT]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Quick Time 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[QT=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/QT]";
			AddText(AddTxt);
		}        
	}  
}

function Code() {
	if (basic) {
		AddTxt="\r[CODE][/CODE]";
		AddText(AddTxt);
	} else {   
		txt=prompt("插入标记的代码","文本");     
		if (txt!=null) {          
			AddTxt="\r[CODE]"+txt;
			AddText(AddTxt);
			AddTxt="[/CODE]";
			AddText(AddTxt);
		}	       
	}
}

function Quote() {
	if (basic) {
		AddTxt="\r[QUOTE][/QUOTE]";
		AddText(AddTxt);
	} else {   
		txt=prompt("插入引用文本","文本");     
		if(txt!=null) {          
			AddTxt="\r[QUOTE]"+txt;
			AddText(AddTxt);
			AddTxt="[/QUOTE]";
			AddText(AddTxt);
		}	        
	}
}

function Sound() {
 	if (basic) {
		AddTxt="\r[SOUND][/SOUND]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("sound 背景音乐文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[SOUND]"+txt;
			AddText(AddTxt);
			AddTxt="[/SOUND]";
			AddText(AddTxt);
		}        
	}  
}

</script>

</head>
<body class="bgbdy" topmargin="0">
<!--#include file=top.asp-->
<script>
var url = escape(location.href);

function ctlSubmit(event) {
	if (event.ctrlKey && event.keyCode == 13) {	fdf.submit()	}
}
function checkco(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;}}
function limitpl(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;} return limitChars(f.co,des,200);}
function checkcoAndsn(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;} return limitChars(f.sn,"参考资料",60);}
function cReply(flag)
{ if (flag=="yes") {
document.getElementById('replyTB').style.display=""; }
if(flag=="no"){document.getElementById('replyTB').style.display="none"; }
location.href="#here";
}
function fixReply(flag){ setTimeout("cReply('"+flag+"')",300);}
function limitChars(obj,obj_Str,limit_len)
{
	var c = getLeftChars(obj,limit_len);
	if(c<0) 
	{
	  echo_str = obj_Str + "限定在"+limit_len+"个字以内，请缩短字数";
      alert(echo_str);
      obj.focus();
      return false;    
	}
return true;	
}
function getLeftChars(varField,limit_len) {
    var i = 0;
     var cap = limit_len*2;    
    var j=0;
   var runtime = (varField.value.length>cap)?(cap+1):varField.value.length;
    for (i = 0; i< runtime; i++) {     
     if (varField.value.charCodeAt(i) > 127 || varField.value.charCodeAt(i) == 94) {
        j=j+2;  
        } 
     else {
        j=j+1
     }   
    }  //结束FOR循环
    var leftchars = cap - j;    
    return (leftchars);
}
</script>
<center>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
<td height="25" nowrap><a href="<%=weburl%>"><%=webname%></a> &gt; <a href="assort.asp?id=<%=id0%>&topic=<%=topic0%>"><%=topic0%></a> &gt; <a href=assort1.asp?id=<%=rs("fenleiid")%>&topic=<%=rs("topic")%>><%=rs("topic")%></a></td>                                                                                                                                                          
</tr>
</table>
<div id="cDiv"><table border="0" align="right" cellpadding="0" cellspacing="0">
<tr><td width="170" valign="top" class="padL12">
 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="magBtm12">
<tr> 
<td class="bgtle" nowrap><%if session("person")<>"" then%>用户信息<%else%>用户登录<%end if%></td>
</tr>
<tr> 
 <td class="bgcntBor3">
 <%if request("login")="登录" then
 jiance=request("name")
if InStr(jiance,"or")<>0 or InStr(jiance,"'")<>0 or InStr(jiance,"`")<>0 or InStr(jiance,"=")<>0 or InStr(jiance,"-")<>0 or InStr(jiance,",")<>0 or InStr(jiance,"and")<>0 then 
Response.Write "<script language=JavaScript>{alert('用户名非法！');history.back();}</script>"
Response.End 
end if
		if not IsNumeric(request("verifycode")) then
		Response.Write ("<script>alert('友情提示!\n\n验证编码必须是数字!');history.back();</script>")
		Response.end
	end if
	if (int(session("SafeCode"))<>int(request("verifycode"))) then
		Response.Write ("<script>alert('友情提示!\n\n验证编码输入错误!');history.back();</script>")
		Response.end
	end if
	  if request("name")="" then
	  response.write"<script>alert('用户名不能为空!');history.back();</script>"
	  elseif request("pwd")="" then
	  response.write"<script>alert('密码不能为空!');history.back();</script>"
	  else
	  name=request("name")
	  pwd=request("pwd")
	  rs2.open"select * from person where name='"&name&"' and pwd='"&md5(pwd)&"'",conn,1,1
	  if rs2.eof then
	  response.write"<script>alert('用户名或密码错误!');history.back();</script>"
	  else
	  rs3.open"select * from person where name='"&name&"'",conn,1,3
	  rs3("logintime")=now
	  rs3.update
	  rs3.close
	  session("person")=name
	  %>
	  <%end if
	  rs2.close
	  end if
	  end if%>
	  
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="zhtable"><%if session("person")<>"" then%>
              <tr> 
                <td  class="f14">您好：<%=session("person")%> </td>
              </tr>
              <tr> 
                <td><%rs2.open"select * from person where name='"&session("person")&"'",conn,1,1%> 
                  <a href="help.asp#n5" target=_blank><%=rs2("touxian")%></a> ( <%=rs2("jifen")%> )</td>                                                                                            
              </tr>
      </table>
<table cellSpacing=0 cellPadding=0 width="100%" border=0>
  <tr>
    <td height=22>&#8226; <a href="user.asp?lei=mywen" target=_blank>我的提问</a></td>                                                                                            
    <td>&#8226; <a href="user.asp" target=_blank>个人中心</a></TD>                                                                                            
  </tr>
  <tr>
    <td>&#8226; <a href="user.asp?lei=myda" target=_blank>我的回答</a></td>                                                                                            
    <td>&#8226; <a href="exit.asp">退出</a><%rs2.close%></td>                                                                                       
  </tr>
  <%end if%><%if session("person")="" then%><tr><form method=post action=showquestion.asp?id=<%=id%>><td align="center" valign="top">
	<p>用&nbsp;&nbsp;&nbsp;&nbsp;户: <input name="name" type="text" id="name" size="12"><br>密&nbsp;&nbsp;&nbsp;&nbsp;码: <input name="pwd" type="password" id="pwd" size="12"><br>验证码:<input type="text" size=3 maxlength=4 name=verifycode> <%Call GetSafeCode%><br><FONT color=#666666>(请输入图中数字)</FONT><br><input name="login" type="submit" id="login" value="登录">&nbsp;&nbsp;                                                                                  
    <a href="reg.asp">注册</a>
</td></form><%end if%></tr>
</table>

                </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td class="bgtle" nowrap>同类热点问题</td></tr>
<tr> <td class="bgcntLn">
<%
rs2.open"select top 5 * from question where fenleiid="&rs("fenleiid")&" order by views desc",conn,1,1
%>
	<table width="152" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;word-wrap:break-word;"><%while NOT rs2.EOF%>
	<tr><td width=10 valign="top">&#8226; </td>
<td><a href="showquestion.asp?id=<%=rs2("id")%>" target="_blank"><%=rs2("title")%></a></td></tr>
<%
rs2.movenext
wend
rs2.close
%>
	<tr><td>&nbsp;</td><td height="22" ><a href="assort1.asp?id=<%=rs("fenleiid")%>&topic=<%=rs("topic")%>" class="lmore">更多&gt;&gt;</a></td></tr></table>
</td></tr></table>
<br>
<%if gx=1 then%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
                    <td width="100%" height="14">

                        <table border="0" width="100%" cellspacing="0" cellpadding="0">
                          <tr>
<td class="bgtle" nowrap>本类共享资料</td>
                          </tr>
                          <tr>
 <td class="bgcntBor3">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%">
      <table class="zhtable" cellSpacing="0" cellPadding="0" width="152" border="0">
        <tbody>
        <%rs3.open"select top 5 * from Share where flid="&rs("fenleiid")&"",conn,1,1
        if rs3.eof then%>本类暂时没有共享资料
        <%rs3.close
        else
        while NOT rs3.EOF
        %>
          <tr>
            <td class="ln23"><a href=sharev.asp?id=<%=rs3("id")%> target=_blank><%=rs3("ftitle")%></a></td>
          </tr>
          <%rs3.movenext 
          wend
          rs3.close
          end if%>
        </tbody>
      </table>
      <a class=lmore href=share.asp?id=<%=rs("fenleiid")%> target=_blank>更多&gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="userupfile.asp" target="_blank">我要上传</a></td>
  </tr>
</table>


</td>
                          </tr>
                          <tr>
                            <td width="100%" height="15"></td>
                          </tr>
                        </table>
                    </td>
                  </tr>
</table>
<%end if%>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td class="bgcntBor4"><%rs2.open"select top 5 * from gonggao where flid=3 order by time desc",conn,1,1
                  if rs2.eof then%>暂时没有公告<%else
	  while not rs2.eof
	  %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=rs2("text")%><hr size="1" color="#999999">
<%rs2.movenext
	  wend
	  end if
	  rs2.close%>
</td>
</tr></table>
</td></tr></table>
<%
if rs("jie")=0 or rs("jie")=4 then
dim tempt,bbryear,bbrmonth,bbrday,bbrhour,bbrminute,bbrsecond,bbrstate
tempt=rs("overtime")
bbryear=year(tempt)
bbrmonth=month(tempt)
bbrday=day(tempt)
bbrhour=hour(tempt)
bbrminute=minute(tempt)
bbrsecond=second(tempt)

bbrstate=rs("jie")
if bbrstate="0" or bbrstate="4" then
	bbrstate=0
else
	bbrstate=1
end if

Response.Write"<script>setInterval('JSTime("& bbryear &", "& bbrmonth &", "& bbrday &", "& bbrhour &", "& bbrminute &", "& bbrsecond &", "& bbrstate &")',1000);</script>" & vbcrlf
end if
%>
<script language="javascript" src="jstime.js"></script>
<table width="588" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td class="bgtle" nowrap><%if rs("jie")=1 or rs("jie")=3 then%>已解决<%elseif rs("jie")=0 then%>待解决<%elseif rs("jie")=2 then%>已关闭<%elseif rs("jie")=4 then%>投票中<%end if%></td>
</tr>
<tr><td class="bgcntBor3">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class=zhtable>
               <tr> 
               	<td  class="f14B"><%=rs("title")%></td>          
             </tr>
              <tr>
                <td  valign="top"><span class="f12rd"><img src="img/icn_point.gif" width="16" height="16" align="absmiddle"> 悬赏分：<%=rs("shang")%></span> - <span class="f12gy"><%if rs("jie")=0 or rs("jie")=4 then%>离问题结束还有：<span id=time>正在计算...</span><%else%>提问时间：<%=rs("sendtime")%><%end if%><%if rs("jie")=2 then%> <A href="help.asp#问题为何被关闭" target=_blank>问题为何被关闭</A><%end if%></span></td>                                                                                                                                                          
              </tr>
              <tr> 
                <td class="f14"><%=ubb(rs("content"))%><br><span id="suplycontent"><%if rs("bu")<>"" then%><b>问题补充：</b><%=ubb(rs("bu"))%></span><%end if%></td>            
              </tr>
              <tr> 
                <td align="right" class="f12gy">提问者：<%if rs("niming")=1 then%>匿名<%else%><a href=showperson.asp?name=<%=rs("sender")%>  target=_blank><%=rs("sender")%></a> - <a href="help.asp#n5"  target=_blank><%=touxian%></a><%end if%>
                <%if session("person")=rs("sender") and rs("jie")<>2 then%>
                <tr> 
                <td class="f14"><%if rs("jie")=0 then%>&#8226; <a onclick="window.open('buchong.asp?id=<%=id%>','','width=450,height=250')" href="#">问题补充</a>：可以对您的提问补充细节，以得到更准确的答案；<br>&#8226; <a href="tigao.asp?id=<%=id%>">提高悬赏</a>：提高悬赏分，以提高问题的关注度；<br>
                <%rs3.open"select * from reply where replyid="&id&"",conn,1,1
                dashu=rs3.recordcount
                rs3.close
                if dashu>=2 then
                %>&#8226; <a href="fatoupiao.asp?id=<%=id%>">发起投票</a>：不知道哪个回答最好时，可让网友投票来选出最佳答案；<br>
                <%
                end if
                end if%><%if rs("jie")=0 or rs("jie")=3 then%>&#8226; <a href="wudaan.asp?id=<%=id%>">无满意答案</a>：没有满意的回答，还可直接结束提问，关闭问题。<%end if%></td>            
              </tr><%end if%>
                </td></tr>               
<tr><td><%if rs("jie")=0 and session("person")<>rs("sender") then%><input type=button value="我来回答" onClick="location.href='#reply';"> <%end if%></td> </tr></table>
</td>
</tr>
</table>
<br>
<%if rs("jie")=4 then
rs1.open"select * from toupiao where wenid="&id&" order by datime desc",conn,1,1
toumax=rs1.recordcount
%>
<table width="588" border="0" cellpadding="0" cellspacing="0" class=zhtable>
<tr><td height="25" class="bgtle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td  class="f14weB" nowrap>投票备选答案</td><td><div align="right" class="f12we">共 <%=toumax%> 条</div></td> 
</tr></table>
</td></tr>
<tr>
<td class="bgcntLn">
<%while not rs1.eof
rs3.open"select * from person where name='"&rs1("dauser")&"'",conn,1,1
	touxian3=rs3("touxian")
	rs3.close
%>
<div class="f14"><%=ubb(rs1("daco"))%></div> 

<div align="right" class="f12gy">回答者： 
<a href="showperson.asp?name=<%=rs1("dauser")%>" target=_blank><%=rs1("dauser")%></a> - <a href="help.asp#n5" target=_blank><%=touxian3%></a>    <%=rs1("datime")%></div> 
<%if session("person")="" then%><div><input  type=button value=投他一票 class=bnsrh onclick="javascript:window.open('login.asp','');"></div><%elseif rs1("dauser")<>session("person") then%><div><input  type=button value=投他一票 class=bnsrh onClick="window.open('toupiao.asp?id=<%=id%>&daid=<%=rs1("daid")%>','','width=450,height=250')"></div><%end if%>
<div style="padding-top:5px;padding-bottom:5px;"><hr size="1" color="#999999"></div> 
<%rs1.movenext
	  wend%>
&nbsp;<a href="#"  onClick="window.open('toupiao.asp?id=<%=id%>','','width=450,height=250')" class="f14">查看投票结果</a> 
 </td>
 </tr>
</table>
<br>
<%rs1.close
end if%>
<%if rs("jie")=1 then
rs2.open"select * from reply where replyid="&id&" and isdeal=1 order by id desc",conn,1,1
jiaid=rs2("id")

rs3.open"select * from pj where jiaid="&id&"",conn,1,1
	if rs3.eof then
	pjmax=0
	haomax=0
	huaimax=0
	rs3.close
	else
	pjmax=rs3.recordcount
	rs1.open"select * from pj where jiaid="&id&" and hao=1",conn,1,1
	haomax=rs1.recordcount
	rs1.close
	rs1.open"select * from pj where jiaid="&id&" and huai=1",conn,1,1
	huaimax=rs1.recordcount
	rs1.close
	rs3.close
	zongping=haomax+huaimax
haoping=(haomax/zongping)*100
end if
if now>rs2("jiatime")+30 or zongping>200 then
if round(haoping,2)>80 then
rs3.open"select * from person where name='"&rs2("replyer")&"'",conn,1,3
		  rs3("jifen")=rs3("jifen")+hpdadf
		  if rs3("jifen")+hpdadf<fen1 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+hpdadf>=fen1 and rs3("jifen")+hpdadf<fen2 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+hpdadf>=fen2 and rs3("jifen")+hpdadf<fen3 then
		  rs3("touxian")=""&ji2&" 二级"
		  elseif rs3("jifen")+hpdadf>=fen3 and rs3("jifen")+hpdadf<fen4 then
		  rs3("touxian")=""&ji3&" 三级"
		  elseif rs3("jifen")+hpdadf>=fen4 and rs3("jifen")+hpdadf<fen5 then
		  rs3("touxian")=""&ji4&" 四级"
		  elseif rs3("jifen")+hpdadf>=fen5 and rs3("jifen")+hpdadf<fen6 then
		  rs3("touxian")=""&ji5&" 五级"
		  elseif rs3("jifen")+hpdadf>=fen6 and rs3("jifen")+hpdadf<fen7 then
		  rs3("touxian")=""&ji6&" 六级"
		  elseif rs3("jifen")+hpdadf>=fen7 and rs3("jifen")+hpdadf<fen8 then
		  rs3("touxian")=""&ji7&" 七级"
		  elseif rs3("jifen")+hpdadf>=fen8 and rs3("jifen")+hpdadf<fen9 then
		  rs3("touxian")=""&ji8&" 八级"
		  elseif rs3("jifen")+hpdadf>=fen9 and rs3("jifen")+hpdadf<fen10 then
		  rs3("touxian")=""&ji9&" 九级"
		  elseif rs3("jifen")+hpdadf>=fen10 then
		  rs3("touxian")=""&ji10&" 十级"
		  end if
		  rs3.update
		  rs3.close
end if
end if
rs3.open"select * from person where name='"&rs2("replyer")&"'",conn,1,1
	touxian1=rs3("touxian")
	rs3.close
%>
  <table border="0" width="588" cellspacing="0" cellpadding="0">
    <tr>
<td nowrap class="bgtle"><img src="img/icn_best.gif" align="absmiddle">最佳答案</td>
    </tr>
    <tr>
<td class="bgcntLn">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class=zhtable>
	<tr> 
	<td class="f14"><%=ubb(rs2("replycontent"))%><%if rs2("ck")<>"" then%><br><br><SPAN style="COLOR: #666666">参考资料：<%=ubb(rs2("ck"))%></SPAN><%end if%></td>
	</tr>
	<tr> 
	<td>
<div align="right" class="f12gy">回答者：<a href=showperson.asp?name=<%=rs2("replyer")%> target=_blank><%=rs2("replyer")%></a> -<a href="help.asp#n5" target=_blank> <%=touxian1%></a>  <span class="f12gy"><%=rs2("replytime")%></span></div></td>                                                                                                               
	</tr>
	</table>
	<%
	rs3.open"select * from pj where jiaid="&id&"",conn,1,1
	if rs3.eof then
	pjmax=0
	haomax=0
	huaimax=0
	rs3.close
	else
	pjmax=rs3.recordcount
	rs1.open"select * from pj where jiaid="&id&" and hao=1",conn,1,1
	haomax=rs1.recordcount
	rs1.close
	rs1.open"select * from pj where jiaid="&id&" and huai=1",conn,1,1
	huaimax=rs1.recordcount
	rs1.close
	rs3.close
	zongping=haomax+huaimax
	end if
	if request("submitpj")="好" then
	  if session("person")="" then
	  response.redirect "login.asp"
	  end if
	  if session("person")=rs2("replyer") then
		Response.Write ("<script>alert('友情提示!\n\您不能对自己的答案进行评价!');history.back();</script>")
		Response.end
	end if
	  if not IsNumeric(request("id")) or request("id")="" then
		Response.Write ("<script>alert('友情提示!\n\参数错误!');history.back();</script>")
		Response.end
	end if
	if request("id")<>"" then
	id=CLNG(request("id"))
	end if
	  rs1.open"select * from pj where pjuser='"&session("person")&"' and jiaid="&id&"",conn,1,1
	if not rs1.eof then
		  response.write"<script>alert('对不起,您不能重复评价!');history.back();</script>"
		  response.End()
		  end if
	rs1.close
	rs1.open"select * from pj",conn,1,3
	rs1.addnew
	  rs1("jiaid")=id
	  rs1("pjuser")=session("person")
	  rs1("hao")=1
	  rs1("huai")=0
	  rs1.update
	  rs1.close
	  response.write"<script>alert('您的评价成功!');window.navigate('showquestion.asp?id="&id&"');</script>"
	  end if
	  if request("submitpj")="不好" then
	  if session("person")="" then
	  response.redirect "login.asp"
	  end if
	  if session("person")=rs2("replyer") then
		Response.Write ("<script>alert('友情提示!\n\您不能对自己的答案进行评价!');history.back();</script>")
		Response.end
	end if
	  if not IsNumeric(request("id")) or request("id")="" then
		Response.Write ("<script>alert('友情提示!\n\参数错误!');history.back();</script>")
		Response.end
	end if
	if request("id")<>"" then
	id=CLNG(request("id"))
	end if
	  rs1.open"select * from pj where pjuser='"&session("person")&"' and jiaid="&id&"",conn,1,1
	if not rs1.eof then
		  response.write"<script>alert('对不起,您不能重复评价!');history.back();</script>"
		  response.End()
		  end if
	rs1.close
	rs1.open"select * from pj",conn,1,3
	rs1.addnew
	  rs1("jiaid")=id
	  rs1("pjuser")=session("person")
	  rs1("hao")=0
	  rs1("huai")=1
	  rs1.update
	  rs1.close
	  response.write"<script>alert('您的评价成功!');window.navigate('showquestion.asp?id="&id&"');</script>"
	  end if
	%>
	      <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr> 
                <td height="20" colspan=2><hr size="1" color="#999999"></td>
              </tr>
              <tr> 
                <td height="25" nowrap class="f14weB"><%if now>rs2("jiatime")+30 then%><%if zongping<=200 then%>评价已经被关闭<%end if%><%else%>您觉得最佳答案好不好？<%end if%></td>
                <td align="right" class="f12we">目前有 <%=pjmax%> 个人评价</td> 
              </tr>
            </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top">  <form method=post name=fpj action=showquestion.asp?id=<%=id%>>
			  <input type=hidden name=id value=<%=id%>>
                <td width="120" height="25" class="f14">
				<%if now>rs2("jiatime")+30 then
				if zongping<=200 then
				%>好<%else%><input type="submit" name="submitpj" value="好" class="bn100"><%end if%><%else%><%if zongping>=200 then%>好<%else%><input type="submit" name="submitpj" value="好" class="bn100"><%end if%><%end if%>
                  <br>
                  <span class="f12rd"><%if haomax=0 then hao=0 else hao=(haomax/pjmax)*100 end if%><%=round(hao,2)%>%</span> （<%=haomax%>）</td> 
                <td class="f14">
				<%if now>rs2("jiatime")+30 then
				if zongping<=200 then
				%>不好<%else%><input type="submit" name="submitpj" value="不好" class="bn100"><%end if%><%else%><%if zongping>=200 then%>不好<%else%><input type="submit" name="submitpj" value="不好" class="bn100"><%end if%><%end if%>
                  <br>
                  <span class="f12gn"><%if huaimax=0 then huai=0 else huai=(huaimax/pjmax)*100 end if%><%=round(huai,2)%>%</span>（<%=huaimax%>）</td></form>
              </tr>
            </table>
</td></tr></table>
</td>
    </tr>
  </table>
  <br>
  <%
  rs1.open"select top 3 * from ping where replyid="&rs2("id")&" order by pingtime desc",conn,1,1
  if not rs1.eof then
  %>
      <table width="588" border="0" cellpadding="0" cellspacing="0"  class=zhtable>
        <tr> 
          <td nowrap class="bgtle"> 对最佳答案的评论</td>
        </tr>
		<tr><td class="bgcntLn">
		<%while not rs1.eof
		 rs3.open"select * from person where name='"&rs1("pingname")&"'",conn,1,1
	touxianp=rs3("touxian")
	rs3.close
		%>
<div class="f14"><%=ubb(rs1("ping"))%></div>
<div align="right"><span class="f12gy">评论者：</span>	<a href=showperson.asp?name=<%=rs1("pingname")%> target=_blank><%=rs1("pingname")%></a> - <a href="help.asp#n5" target=_blank><%=touxianp%></a> </div> 
<div style="padding-top:5px;padding-bottom:5px;"><hr size="1" color="#999999"></div>
<%rs1.movenext
	  wend
	  if rs1.recordcount>2 then
	  %><table width="588" border="0" cellspacing="0" cellpadding="0" >
 <tr> 
<td ><a href="ping.asp?id=<%=jiaid%>" class="lmore" target="_blank">更多&gt;&gt;</a></td>
 </tr>
</table>
<%end if%>
<table width="588" border="0" cellspacing="0" cellpadding="0" >
</table>
</td></tr>
</table>
<br>
<%
rs1.close
  end if
%>
  <%
  rs2.close
  end if  
rs2.open"select * from reply where replyid="&id&" and isdeal<>1 and tou<>1 order by replytime",conn,1,1
	  if rs2.eof then
if session("person")="" then
if request("reply")="提交回答" then
	  if session("person")="" then
	  response.redirect "login.asp"
	  end if
	  end if
end if
else                                                                                                 
	  maxreply=rs2.recordcount
	  rs2.pagesize=10
	  maxpage=rs2.pagecount
	  if request("p")="" then
	  p=1
	  else
	  p=cint(request("p"))
	  end if
	  if p>maxpage then
	  p=maxpage
	  end if
	  if p=0 then
	  p=1
	  end if
	  if p<>1 then
	  rs2.move (p-1)*rs2.pagesize
	  end if
	  if request("deal")="采纳为答案" then
	          rs3.open"select * from reply where isdeal=1 and replyid="&request("id"),conn,1,1
		  if not rs3.eof then
		  response.write"<script>alert('该问题已经解决!');history.back();</script>"
		  response.End()
		  end if
		  rs3.close
		  rs3.open"select * from reply where id="&request("rid"),conn,1,3
		  replyer=rs3("replyer")
		  rs3("isdeal")=1
		  rs3("jiatime")=now
		  rs3.update
		  rs3.close
		  rs3.open"select * from question where id="&id&"",conn,1,3
		  rs3("jie")=1
		  rs3("jieuser")=replyer
		  rs3.update
		  rs3.close
		  rs3.open"select * from person where name='"&replyer&"'",conn,1,3
		  rs3("helpnum")=rs3("helpnum")+1
		  rs3("jifen")=rs3("jifen")+dajiadf+shang
		  if rs3("jifen")+dajiadf+shang<fen1 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+dajiadf+shang>=fen1 and rs3("jifen")+dajiadf+shang<fen2 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+dajiadf+shang>=fen2 and rs3("jifen")+dajiadf+shang<fen3 then
		  rs3("touxian")=""&ji2&" 二级"
		  elseif rs3("jifen")+dajiadf+shang>=fen3 and rs3("jifen")+dajiadf+shang<fen4 then
		  rs3("touxian")=""&ji3&" 三级"
		  elseif rs3("jifen")+dajiadf+shang>=fen4 and rs3("jifen")+dajiadf+shang<fen5 then
		  rs3("touxian")=""&ji4&" 四级"
		  elseif rs3("jifen")+dajiadf+shang>=fen5 and rs3("jifen")+dajiadf+shang<fen6 then
		  rs3("touxian")=""&ji5&" 五级"
		  elseif rs3("jifen")+dajiadf+shang>=fen6 and rs3("jifen")+dajiadf+shang<fen7 then
		  rs3("touxian")=""&ji6&" 六级"
		  elseif rs3("jifen")+dajiadf+shang>=fen7 and rs3("jifen")+dajiadf+shang<fen8 then
		  rs3("touxian")=""&ji7&" 七级"
		  elseif rs3("jifen")+dajiadf+shang>=fen8 and rs3("jifen")+dajiadf+shang<fen9 then
		  rs3("touxian")=""&ji8&" 八级"
		  elseif rs3("jifen")+dajiadf+shang>=fen9 and rs3("jifen")+dajiadf+shang<fen10 then
		  rs3("touxian")=""&ji9&" 九级"
		  elseif rs3("jifen")+dajiadf+shang>=fen10 then
		  rs3("touxian")=""&ji10&" 十级"
		  end if
		  rs3.update
		  rs3.close
		  rs3.open"select * from question where id="&id&"",conn,1,1
		  leiname=rs3("topic")
		  rs3.close
		  rs3.open"select * from assort where topic='"&leiname&"'",conn,1,1
		  flid=rs3("id")
		  rs3.close
		  rs3.open"select * from zhuanjia where flid="&flid&" and user='"&replyer&"'",conn,1,3
		  rs3("fljifen")=rs3("fljifen")+dajiadf
		  rs3.update
		  rs3.close
		  if rs("jie")=3 then
		  rs3.open"select * from person where name='"&rs("sender")&"'",conn,1,3
		  rs3("fa")=rs3("fa")-clwendf
		  rs3("jifen")=rs3("jifen")+clwendf
		  if rs3("jifen")+clwendf<fen1 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+clwendf>=fen1 and rs3("jifen")+clwendf<fen2 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+clwendf>=fen2 and rs3("jifen")+clwendf<fen3 then
		  rs3("touxian")=""&ji2&" 二级"
		  elseif rs3("jifen")+clwendf>=fen3 and rs3("jifen")+clwendf<fen4 then
		  rs3("touxian")=""&ji3&" 三级"
		  elseif rs3("jifen")+clwendf>=fen4 and rs3("jifen")+clwendf<fen5 then
		  rs3("touxian")=""&ji4&" 四级"
		  elseif rs3("jifen")+clwendf>=fen5 and rs3("jifen")+clwendf<fen6 then
		  rs3("touxian")=""&ji5&" 五级"
		  elseif rs3("jifen")+clwendf>=fen6 and rs3("jifen")+clwendf<fen7 then
		  rs3("touxian")=""&ji6&" 六级"
		  elseif rs3("jifen")+clwendf>=fen7 and rs3("jifen")+clwendf<fen8 then
		  rs3("touxian")=""&ji7&" 七级"
		  elseif rs3("jifen")+clwendf>=fen8 and rs3("jifen")+clwendf<fen9 then
		  rs3("touxian")=""&ji8&" 八级"
		  elseif rs3("jifen")+clwendf>=fen9 and rs3("jifen")+clwendf<fen10 then
		  rs3("touxian")=""&ji9&" 九级"
		  elseif rs3("jifen")+clwendf>=fen10 then
		  rs3("touxian")=""&ji10&" 十级"
		  end if
		  rs3.update
		  rs3.close
		  end if
		  response.redirect "showquestion.asp?id="&id&""
		  end if%>
<table width="588" border="0" cellpadding="0" cellspacing="0" class=zhtable>
        <tr> 
          <td height="25" class="bgtle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="f14weB" nowrap><%if rs("jie")=1 or rs("jie")=4 then%>其他答案<%else%>答复<%end if%></td>
                <td align="right" nowrap class="f12we">共 <%=maxreply%> 条</td>                                    
              </tr>
            </table></td>
        </tr>
		<tr><td class="bgcntLn">
		
	  <%for i=1 to rs2.pagesize
		  if session("person")=rs2("replyer") and rs("jie")=0 then%>
		  <input type="button" value="修改答复" onClick="fixReply('yes');">
		  <%end if
		  	  rs3.open"select * from person where name='"&rs2("replyer")&"'",conn,1,1
	touxian2=rs3("touxian")
	rs3.close 
		  %>
<a name="14624473"><div class="f14"><%=ubb(rs2("replycontent"))%><%if rs2("ck")<>"" then%><br><br><SPAN style="COLOR: #666666">参考资料：<%=ubb(rs2("ck"))%></SPAN><%end if%></div>                           
<div align="right" class="f12gy">回答者：<a href=showperson.asp?name=<%=rs2("replyer")%> target=_blank><%=rs2("replyer")%></a> - <a href="help.asp#n5" target=_blank><%=touxian2%></a>   <%=rs2("replytime")%></div>
<%
if rs("jie")<>1 and rs("jie")<>2 and rs("jie")<>4 then
if session("person")<>rs("sender") then
if rs2("isdeal")=1 then%>
		  <input name="deal" type="submit" id="deal" value="采纳为答案" disabled>
		  <%end if
end if                                                                                                                              
if session("person")=rs("sender") then                                                                                                                              
if rs2("isdeal")=1 then%>                                                                                                    
		  <input name="deal" type="submit" id="deal" value="采纳为答案" disabled>                                                                                                                               
		  <%else%><form method=post action=showquestion.asp?id=<%=id%>&rid=<%=rs2("id")%>>                                                                                                                               
		  <input name="deal" type="submit" id="deal" value="采纳为答案">
		  </form>
		  <%		  
		  end if
		  end if
		  end if
%>
<%if session("person")=rs2("replyer") and rs("jie")=0 then%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="replyTB" style="display:none;">
<form name="myform" method="post" action="showquestion.asp?id=<%=id%>" onSubmit="return checkcoAndsn(this,'回答');">
<tr>
<td class="bgcntBor4"><table width="100%" border="0" cellpadding="0" cellspacing="0"   class=zhtable>
<tr valign="top">
<td width="22%" nowrap class="f14">修改答复：</td>
<td width="78%"><table width=100% border=0 cellspacing=0 cellpadding=0><tr><td nowrap><span class="f14"><%=session("person")%>，您要修改的答复如下:</span> <a href="help.asp#n4" target="_blank">积分规则</a></td><td align=right nowrap><a href=#gohere onClick="fixReply('no');" ><font color=#777777>关闭</font></a></td></tr></table> 
<br><textarea name="co" cols="50" rows="10"><%=rs2("replycontent")%></textarea>
<br>
回答字数10000字以内 </td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0"   class=zhtable>
<tr valign="top">
<td width="22%" nowrap class="f14">参考资料：</td>
<td width="78%"><input name="sn" type="text" size="50" value="<%=rs2("ck")%>">
<br>
<span class="style3">如果您的回答是从其他地方引用，请表明出处。</span> </td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="22%" class="f14">&nbsp;</td>
<td width="78%"><input type="submit" name="xiugai" value="提交修改" ></td>
</tr>
</table></td>
</tr></form>
</table><%end if%>
<div style="padding-top:5px;padding-bottom:5px;"><hr size="1" color="#999999"></div> 
	  <%rs2.movenext 
	  if rs2.eof then exit for
	  next
	  %>
答复:<font color=red><%=maxreply%></font>条 | 页数:<%=maxpage%>页 | 每页10条回复 | 页次:<font color=red><%=p%></font>/<%=maxpage%>                                                                                                                          
	<a href=showquestion.asp?id=<%=id%>&p=1>首页</a>                                                                                                                          
	<a href=showquestion.asp?id=<%=id%>&p=<%=p-1%>>上页</a>                                                                                                                          
	<a href=showquestion.asp?id=<%=id%>&p=<%=p+1%>>下页</a>                                                                                                                          
	<a href=showquestion.asp?id=<%=id%>&p=<%=maxpage%>>尾页</a>                                                                                                                         
</td></tr>
    </table><br>
<%end if
	  rs2.close
if request("xiugai")="提交修改" then
	  if request("co")="" then
	  response.write"<script>alert('回答内容不能为空!');history.back();</script>"
	  else
	  title=request("title")
	  content=request("co")
	  ck=request("sn")
	  rs3.open"select * from reply where replyid="&id&" and replyer='"&session("person")&"'" ,conn,1,3
	  rs3("replycontent")=content
	  rs3("replytime")=now
	  rs3("ck")=ck
	  rs3.update
	  rs3.close
	  response.write"<script>alert('您的回答已经修改成功!');window.navigate('showquestion.asp?id="&id&"');</script>"	  
	  end if
	  end if

	  if request("reply")="提交回答" then
	  if session("person")="" then
	  response.redirect "login.asp"
	  end if
	  if request("content")="" then
	  response.write"<script>alert('回答内容不能为空!');history.back();</script>"
	  else
	  title=request("title")
	  content=request("content")
	  ck=request("ck")
	  rs3.open"select * from reply",conn,1,3
	  rs3.addnew
	  rs3("replyer")=session("person")
	  rs3("replytitle")=title
	  rs3("replycontent")=content
	  rs3("replyid")=id
	  rs3("replytime")=now
	  rs3("ck")=ck
	  rs3.update
	  rs3.close
	  rs3.open"select * from question where id="&id&"",conn,1,3
		  rs3("replys")=rs3("replys")+1
	  rs3.update
	  rs3.close
	  rs3.open"select * from person where name='"&session("person")&"'",conn,1,3
		  rs3("replynum")=rs3("replynum")+1
		  rs3("jifen")=rs3("jifen")+dadf
		  if rs3("jifen")+dadf<fen1 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+dadf>=fen1 and rs3("jifen")+dadf<fen2 then
		  rs3("touxian")=""&ji1&" 一级"
		  elseif rs3("jifen")+dadf>=fen2 and rs3("jifen")+dadf<fen3 then
		  rs3("touxian")=""&ji2&" 二级"
		  elseif rs3("jifen")+dadf>=fen3 and rs3("jifen")+dadf<fen4 then
		  rs3("touxian")=""&ji3&" 三级"
		  elseif rs3("jifen")+dadf>=fen4 and rs3("jifen")+dadf<fen5 then
		  rs3("touxian")=""&ji4&" 四级"
		  elseif rs3("jifen")+dadf>=fen5 and rs3("jifen")+dadf<fen6 then
		  rs3("touxian")=""&ji5&" 五级"
		  elseif rs3("jifen")+dadf>=fen6 and rs3("jifen")+dadf<fen7 then
		  rs3("touxian")=""&ji6&" 六级"
		  elseif rs3("jifen")+dadf>=fen7 and rs3("jifen")+dadf<fen8 then
		  rs3("touxian")=""&ji7&" 七级"
		  elseif rs3("jifen")+dadf>=fen8 and rs3("jifen")+dadf<fen9 then
		  rs3("touxian")=""&ji8&" 八级"
		  elseif rs3("jifen")+dadf>=fen9 and rs3("jifen")+dadf<fen10 then
		  rs3("touxian")=""&ji9&" 九级"
		  elseif rs3("jifen")+dadf>=fen10 then
		  rs3("touxian")=""&ji10&" 十级"
		  end if
		  rs3.update
		  rs3.close
		  rs3.open"select * from question where id="&id&"",conn,1,1
		  leiname=rs3("topic")
		  rs3.close
		  rs3.open"select * from assort where topic='"&leiname&"'",conn,1,1
		  flid=rs3("id")
		  rs3.close
		  rs3.open"select * from zhuanjia where flid="&flid&" and user='"&session("person")&"'",conn,1,3
		  if rs3.eof then
		  rs3.close
		  rs3.open"select * from zhuanjia",conn,1,3
		  rs3.addnew
		  rs3("flid")=flid
		  rs3("user")=session("person")
		  rs3("fljifen")=1
		  rs3.update
		  rs3.close
		  else
		  rs3("fljifen")=rs3("fljifen")+dadf
		  rs3.update
		  rs3.close
		  end if
	  response.write"<script>alert('回答成功!');window.navigate('showquestion.asp?id="&id&"');</script>"	  
	  end if
	  end if
	  rs2.open"select * from reply where replyid="&id&" and replyer='"&session("person")&"' order by id desc",conn,1,1
	  if rs2.eof then
	  if session("person")<>rs("sender") and rs("jie")=0 then
	  %>
<form method=post name=hd action=showquestion.asp?id=<%=id%>>

      <table width="588" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="bgcntBor4"><table width="100%" border="0" cellpadding="0" cellspacing="0"   class=zhtable>
              <tr valign="top"> 
                <td width="22%" nowrap class="f14"><a name="reply"></a>我也来回答：</td>
                <td width="78%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
                    <TR>
                <TD class=INDEX_XMALL width="90%" height="25">
                  <select class=input1 name="FONT" onChange="Font(this.options[this.selectedIndex].value)">
                  <option value="宋体" selected>宋体</option>
                  <option value="楷体_GB2312">楷体_GB2312</option>
                  <option value="新宋体">新宋体</option>
                  <option value="黑体">黑体</option>
                  <option value="隶书">隶书</option>
                  <option value="Andale Mono">Andale Mono</option>
                  <option value=Arial>Arial</option>
                  <option value="Arial Black">Arial Black</option>
                  <option value="Book Antiqua">Book Antiqua</option>
                  <option value="Century Gothic">Century Gothic</option>
                  <option value="Comic Sans MS">Comic Sans MS</option>
                  <option value="Courier New">Courier New</option>
                  <option value=Georgia>Georgia</option>
                  <option value=Impact>Impact</option>
                  <option value=Tahoma>Tahoma</option>
                  <option value="Times New Roman" >Times New Roman</option>
                  <option value="Trebuchet MS">Trebuchet MS</option>
                  <option value="Script MT Bold">Script MT Bold</option>
                  <option value=Stencil>Stencil</option>
                  <option value=Verdana>Verdana</option>
                  <option value="Lucida Console">Lucida Console</option>
                  </select>
                  <select class=input1 name="SIZE" onChange="Size(this.options[this.selectedIndex].value)">               
                  <option value="1">1px</option>
                  <option value="2">2px</option>
                  <option value="3" selected>3px</option>
                  <option value="4">4px</option>
                  <option value="5">5px</option>
                  </select> 
                  <select class=input1 name="COLOR" onChange="Color(this.options[this.selectedIndex].value)">               
                  <option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0F8FF">#F0F8FF</option>
                  <option style="background-color:#FAEBD7;color: #FAEBD7" value="#FAEBD7">#FAEBD7</option>
                  <option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
                  <option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">#7FFFD4</option>
                  <option style="background-color:#F0FFFF;color: #F0FFFF" value="#F0FFFF">#F0FFFF</option>
                  <option style="background-color:#F5F5DC;color: #F5F5DC" value="#F5F5DC">#F5F5DC</option>
                  <option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">#FFE4C4</option>
                  <option style="background-color:#000000;color: #000000" value="#000000">#000000</option>
                  <option style="background-color:#FFEBCD;color: #FFEBCD" value="#FFEBCD">#FFEBCD</option>
                  <option style="background-color:#0000FF;color: #0000FF" value="#0000FF">#0000FF</option>
                  <option style="background-color:#8A2BE2;color: #8A2BE2" value="#8A2BE2">#8A2BE2</option>
                  <option style="background-color:#A52A2A;color: #A52A2A" value="#A52A2A">#A52A2A</option>
                  <option style="background-color:#DEB887;color: #DEB887" value="#DEB887">#DEB887</option>
                  <option style="background-color:#5F9EA0;color: #5F9EA0" value="#5F9EA0">#5F9EA0</option>
                  <option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00">#7FFF00</option>
                  <option style="background-color:#D2691E;color: #D2691E" value="#D2691E">#D2691E</option>
                  <option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">#FF7F50</option>
                  <option style="background-color:#6495ED;color: #6495ED" value="#6495ED" selected>#6495ED</option>
                  <option style="background-color:#FFF8DC;color: #FFF8DC" value="#FFF8DC">#FFF8DC</option>
                  <option style="background-color:#DC143C;color: #DC143C" value="#DC143C">#DC143C</option>
                  <option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">#00FFFF</option>
                  <option style="background-color:#00008B;color: #00008B" value="#00008B">#00008B</option>
                  <option style="background-color:#008B8B;color: #008B8B" value="#008B8B">#008B8B</option>
                  <option style="background-color:#B8860B;color: #B8860B" value="#B8860B">#B8860B</option>
                  <option style="background-color:#A9A9A9;color: #A9A9A9" value="#A9A9A9">#A9A9A9</option>
                  <option style="background-color:#006400;color: #006400" value="#006400">#006400</option>
                  <option style="background-color:#BDB76B;color: #BDB76B" value="#BDB76B">#BDB76B</option>
                  <option style="background-color:#8B008B;color: #8B008B" value="#8B008B">#8B008B</option>
                  <option style="background-color:#556B2F;color: #556B2F" value="#556B2F">#556B2F</option>
                  <option style="background-color:#FF8C00;color: #FF8C00" value="#FF8C00">#FF8C00</option>
                  <option style="background-color:#9932CC;color: #9932CC" value="#9932CC">#9932CC</option>
                  <option style="background-color:#8B0000;color: #8B0000" value="#8B0000">#8B0000</option>
                  <option style="background-color:#E9967A;color: #E9967A" value="#E9967A">#E9967A</option>
                  <option style="background-color:#8FBC8F;color: #8FBC8F" value="#8FBC8F">#8FBC8F</option>
                  <option style="background-color:#483D8B;color: #483D8B" value="#483D8B">#483D8B</option>
                  <option style="background-color:#2F4F4F;color: #2F4F4F" value="#2F4F4F">#2F4F4F</option>
                  <option style="background-color:#00CED1;color: #00CED1" value="#00CED1">#00CED1</option>
                  <option style="background-color:#9400D3;color: #9400D3" value="#9400D3">#9400D3</option>
                  <option style="background-color:#FF1493;color: #FF1493" value="#FF1493">#FF1493</option>
                  <option style="background-color:#00BFFF;color: #00BFFF" value="#00BFFF">#00BFFF</option>
                  <option style="background-color:#696969;color: #696969" value="#696969">#696969</option>
                  <option style="background-color:#1E90FF;color: #1E90FF" value="#1E90FF">#1E90FF</option>
                  <option style="background-color:#B22222;color: #B22222" value="#B22222">#B22222</option>
                  <option style="background-color:#FFFAF0;color: #FFFAF0" value="#FFFAF0">#FFFAF0</option>
                  <option style="background-color:#228B22;color: #228B22" value="#228B22">#228B22</option>
                  <option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
                  <option style="background-color:#DCDCDC;color: #DCDCDC" value="#DCDCDC">#DCDCDC</option>
                  <option style="background-color:#F8F8FF;color: #F8F8FF" value="#F8F8FF">#F8F8FF</option>
                  <option style="background-color:#FFD700;color: #FFD700" value="#FFD700">#FFD700</option>
                  <option style="background-color:#DAA520;color: #DAA520" value="#DAA520">#DAA520</option>
                  <option style="background-color:#808080;color: #808080" value="#808080">#808080</option>
                  <option style="background-color:#008000;color: #008000" value="#008000">#008000</option>
                  <option style="background-color:#ADFF2F;color: #ADFF2F" value="#ADFF2F">#ADFF2F</option>
                  <option style="background-color:#F0FFF0;color: #F0FFF0" value="#F0FFF0">#F0FFF0</option>
                  <option style="background-color:#FF69B4;color: #FF69B4" value="#FF69B4">#FF69B4</option>
                  <option style="background-color:#CD5C5C;color: #CD5C5C" value="#CD5C5C">#CD5C5C</option>
                  <option style="background-color:#4B0082;color: #4B0082" value="#4B0082">#4B0082</option>
                  <option style="background-color:#FFFFF0;color: #FFFFF0" value="#FFFFF0">#FFFFF0</option>
                  <option style="background-color:#F0E68C;color: #F0E68C" value="#F0E68C">#F0E68C</option>
                  <option style="background-color:#E6E6FA;color: #E6E6FA" value="#E6E6FA">#E6E6FA</option>
                  <option style="background-color:#FFF0F5;color: #FFF0F5" value="#FFF0F5">#FFF0F5</option>
                  <option style="background-color:#7CFC00;color: #7CFC00" value="#7CFC00">#7CFC00</option>
                  <option style="background-color:#FFFACD;color: #FFFACD" value="#FFFACD">#FFFACD</option>
                  <option style="background-color:#ADD8E6;color: #ADD8E6" value="#ADD8E6">#ADD8E6</option>
                  <option style="background-color:#F08080;color: #F08080" value="#F08080">#F08080</option>
                  <option style="background-color:#E0FFFF;color: #E0FFFF" value="#E0FFFF">#E0FFFF</option>
                  <option style="background-color:#FAFAD2;color: #FAFAD2" value="#FAFAD2">#FAFAD2</option>
                  <option style="background-color:#90EE90;color: #90EE90" value="#90EE90">#90EE90</option>
                  <option style="background-color:#D3D3D3;color: #D3D3D3" value="#D3D3D3">#D3D3D3</option>
                  <option style="background-color:#FFB6C1;color: #FFB6C1" value="#FFB6C1">#FFB6C1</option>
                  <option style="background-color:#FFA07A;color: #FFA07A" value="#FFA07A">#FFA07A</option>
                  <option style="background-color:#20B2AA;color: #20B2AA" value="#20B2AA">#20B2AA</option>
                  <option style="background-color:#87CEFA;color: #87CEFA" value="#87CEFA">#87CEFA</option>
                  <option style="background-color:#778899;color: #778899" value="#778899">#778899</option>
                  <option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">#B0C4DE</option>
                  <option style="background-color:#FFFFE0;color: #FFFFE0" value="#FFFFE0">#FFFFE0</option>
                  <option style="background-color:#00FF00;color: #00FF00" value="#00FF00">#00FF00</option>
                  <option style="background-color:#32CD32;color: #32CD32" value="#32CD32">#32CD32</option>
                  <option style="background-color:#FAF0E6;color: #FAF0E6" value="#FAF0E6">#FAF0E6</option>
                  <option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">#FF00FF</option>
                  <option style="background-color:#800000;color: #800000" value="#800000">#800000</option>
                  <option style="background-color:#66CDAA;color: #66CDAA" value="#66CDAA">#66CDAA</option>
                  <option style="background-color:#0000CD;color: #0000CD" value="#0000CD">#0000CD</option>
                  <option style="background-color:#BA55D3;color: #BA55D3" value="#BA55D3">#BA55D3</option>
                  <option style="background-color:#9370DB;color: #9370DB" value="#9370DB">#9370DB</option>
                  <option style="background-color:#3CB371;color: #3CB371" value="#3CB371">#3CB371</option>
                  <option style="background-color:#7B68EE;color: #7B68EE" value="#7B68EE">#7B68EE</option>
                  <option style="background-color:#00FA9A;color: #00FA9A" value="#00FA9A">#00FA9A</option>
                  <option style="background-color:#48D1CC;color: #48D1CC" value="#48D1CC">#48D1CC</option>
                  <option style="background-color:#C71585;color: #C71585" value="#C71585">#C71585</option>
                  <option style="background-color:#191970;color: #191970" value="#191970">#191970</option>
                  <option style="background-color:#F5FFFA;color: #F5FFFA" value="#F5FFFA">#F5FFFA</option>
                  <option style="background-color:#FFE4E1;color: #FFE4E1" value="#FFE4E1">#FFE4E1</option>
                  <option style="background-color:#FFE4B5;color: #FFE4B5" value="#FFE4B5">#FFE4B5</option>
                  <option style="background-color:#FFDEAD;color: #FFDEAD" value="#FFDEAD">#FFDEAD</option>
                  <option style="background-color:#000080;color: #000080" value="#000080">#000080</option>
                  <option style="background-color:#FDF5E6;color: #FDF5E6" value="#FDF5E6">#FDF5E6</option>
                  <option style="background-color:#808000;color: #808000" value="#808000">#808000</option>
                  <option style="background-color:#6B8E23;color: #6B8E23" value="#6B8E23">#6B8E23</option>
                  <option style="background-color:#FFA500;color: #FFA500" value="#FFA500">#FFA500</option>
                  <option style="background-color:#FF4500;color: #FF4500" value="#FF4500">#FF4500</option>
                  <option style="background-color:#DA70D6;color: #DA70D6" value="#DA70D6">#DA70D6</option>
                  <option style="background-color:#EEE8AA;color: #EEE8AA" value="#EEE8AA">#EEE8AA</option>
                  <option style="background-color:#98FB98;color: #98FB98" value="#98FB98">#98FB98</option>
                  <option style="background-color:#AFEEEE;color: #AFEEEE" value="#AFEEEE">#AFEEEE</option>
                  <option style="background-color:#DB7093;color: #DB7093" value="#DB7093">#DB7093</option>
                  <option style="background-color:#FFEFD5;color: #FFEFD5" value="#FFEFD5">#FFEFD5</option>
                  <option style="background-color:#FFDAB9;color: #FFDAB9" value="#FFDAB9">#FFDAB9</option>
                  <option style="background-color:#CD853F;color: #CD853F" value="#CD853F">#CD853F</option>
                  <option style="background-color:#FFC0CB;color: #FFC0CB" value="#FFC0CB">#FFC0CB</option>
                  <option style="background-color:#DDA0DD;color: #DDA0DD" value="#DDA0DD">#DDA0DD</option>
                  <option style="background-color:#B0E0E6;color: #B0E0E6" value="#B0E0E6">#B0E0E6</option>
                  <option style="background-color:#800080;color: #800080" value="#800080">#800080</option>
                  <option style="background-color:#FF0000;color: #FF0000" value="#FF0000">#FF0000</option>
                  <option style="background-color:#BC8F8F;color: #BC8F8F" value="#BC8F8F">#BC8F8F</option>
                  <option style="background-color:#4169E1;color: #4169E1" value="#4169E1">#4169E1</option>
                  <option style="background-color:#8B4513;color: #8B4513" value="#8B4513">#8B4513</option>
                  <option style="background-color:#FA8072;color: #FA8072" value="#FA8072">#FA8072</option>
                  <option style="background-color:#F4A460;color: #F4A460" value="#F4A460">#F4A460</option>
                  <option style="background-color:#2E8B57;color: #2E8B57" value="#2E8B57">#2E8B57</option>
                  <option style="background-color:#FFF5EE;color: #FFF5EE" value="#FFF5EE">#FFF5EE</option>
                  <option style="background-color:#A0522D;color: #A0522D" value="#A0522D">#A0522D</option>
                  <option style="background-color:#C0C0C0;color: #C0C0C0" value="#C0C0C0">#C0C0C0</option>
                  <option style="background-color:#87CEEB;color: #87CEEB" value="#87CEEB">#87CEEB</option>
                  <option style="background-color:#6A5ACD;color: #6A5ACD" value="#6A5ACD">#6A5ACD</option>
                  <option style="background-color:#708090;color: #708090" value="#708090">#708090</option>
                  <option style="background-color:#FFFAFA;color: #FFFAFA" value="#FFFAFA">#FFFAFA</option>
                  <option style="background-color:#00FF7F;color: #00FF7F" value="#00FF7F">#00FF7F</option>
                  <option style="background-color:#4682B4;color: #4682B4" value="#4682B4">#4682B4</option>
                  <option style="background-color:#D2B48C;color: #D2B48C" value="#D2B48C">#D2B48C</option>
                  <option style="background-color:#008080;color: #008080" value="#008080">#008080</option>
                  <option style="background-color:#D8BFD8;color: #D8BFD8" value="#D8BFD8">#D8BFD8</option>
                  <option style="background-color:#FF6347;color: #FF6347" value="#FF6347">#FF6347</option>
                  <option style="background-color:#40E0D0;color: #40E0D0" value="#40E0D0">#40E0D0</option>
                  <option style="background-color:#EE82EE;color: #EE82EE" value="#EE82EE">#EE82EE</option>
                  <option style="background-color:#F5DEB3;color: #F5DEB3" value="#F5DEB3">#F5DEB3</option>
                  <option style="background-color:#FFFFFF;color: #FFFFFF" value="#FFFFFF">#FFFFFF</option>
                  <option style="background-color:#F5F5F5;color: #F5F5F5" value="#F5F5F5">#F5F5F5</option>
                  <option style="background-color:#FFFF00;color: #FFFF00" value="#FFFF00">#FFFF00</option>
                  <option style="background-color:#9ACD32;color: #9ACD32" value="#9ACD32">#9ACD32</option>
                  </select></TD>
                <TD width="1%" height="25"></TD></TR>
              <TR>
                <TD class=INDEX_XMALL width="90%" height="25">
                <img onclick=Bold() align=absmiddle src="ubbimg/bold.gif" alt="粗体" border="0"> 
                <img onclick=Italicize() align=absmiddle src="ubbimg/italic.gif" alt="斜体" border="0">
                <img onclick=Underline() align=absmiddle src="ubbimg/underline.gif" alt="下划线" border="0">
                <img onclick=Left() align=absmiddle src="ubbimg/left.gif" alt="左对齐" border="0">
                <img onclick=Center() align=absmiddle src="ubbimg/center.gif" alt="居中" border="0">
                <img onclick=Right() align=absmiddle src="ubbimg/right.gif" alt="右对齐" border="0">
                <img onclick=Link() align=absmiddle src="ubbimg/url.gif" alt="超级连接" border="0">
                <img onclick=Mail() align=absmiddle src="ubbimg/mail.gif" alt="email连接" border="0">
                <img onclick=Image() align=absmiddle src="ubbimg/img.gif" alt="插入图片" border="0">
                <!--<img onclick=Flash() align=absmiddle src="ubbimg/flash.gif" alt="flash动画" border="0">
                <img onclick=Crm() align=absmiddle src="ubbimg/real.gif" alt="Real Player视频文件" border="0">
                <img onclick=Cwmv() align=absmiddle src="ubbimg/Media.gif" alt="Media Player视频文件" border="0">
                <img onclick=Cmov() align=absmiddle src="ubbimg/quicktime.gif" alt="QuickTime视频文件" border="0">-->
                <img onclick=Code() align=absmiddle src="ubbimg/code.gif" alt="插入代码" border="0">
                <img onclick=Quote() align=absmiddle src="ubbimg/quote.gif" alt="引用内容" border="0">
                <img onclick=Sound() align=absmiddle src="ubbimg/music.gif" alt="背景音乐" border="0"></TD>
                <TD width="1%" height="25"></TD></TR>
                  </table>
<textarea name="content" cols="50" rows="10" id=Content></textarea> 
                  <br>
                  回答即可得1分，回答被采纳则获得悬赏分以及奖励10分。                                                                                   
                  <a href="help.asp#n4" target="_blank">积分规则</a>                                                                       
<br>回答字数在10000字以内</td>
              </tr>
            </table>
            <br> <table width="100%" border="0" cellpadding="0" cellspacing="0"   class=zhtable>
              <tr valign="top"> 
                <td width="22%" nowrap class="f14">参考资料：</td>
                <td width="78%"><input name="ck" type="text" size="50" value=""> 
                  <br> <span class="style3">如果您的回答是从其他地方引用，请表明出处网址。</span> </td>
              </tr>
            </table>
            <br> <table width="100%" border="0" cellpadding="0" cellspacing="0" >
              <tr> 
                <td width="22%" class="f14">&nbsp;</td>
                <td width="78%"><input name="reply" type="submit" id="reply" value="提交回答"></td> 
              </tr>
            </table></td>
        </tr>
      </table>
</form>
<%end if
end if
if rs("jie")=1 then
rs3.open"select * from ping where replyid="&jiaid&" and pingname='"&session("person")&"'",conn,1,1
	  if rs3.eof then
	  if rs("jieuser")<> session("person") then
%>
      <table width="588" border="0" cellpadding="0" cellspacing="0">
        <form action="ping.asp" method="post" onSubmit = "return limitpl(this,'评论内容');">
<input type="hidden" name="id" value="<%=jiaid%>">
		<tr> 
          <td class="bgcntBor4"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
              <tr valign="top"> 
                <td width="22%" nowrap class="f14">对最佳答案的评论:</td>
                <td width="78%"><textarea name="co" cols="50" rows="6"></textarea> 
                  <br>
                  评论字数200字以内 </td>
              </tr>
            </table>
            <br> <table width="100%" border="0" cellpadding="0" cellspacing="0" >
              <tr> 
                <td width="22%" class="f14">&nbsp;</td>
                <td width="78%"><input type="submit" name="submitping"  value="提交评论" class="bnsrh">
                </td>
              </tr>
            </table></td>
        </tr></form>
      </table>
<%
end if
end if
rs3.close
end if
rs2.close
end if
rs.close
%>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" style="clear:both;">  <tr>    <td height="30" align=center><!--#include file=end.asp--></td> 
  </tr>
</table>
</center>
</body>
</html>









