<!--#include file="top.asp"-->
<!--#include file="usercookies.asp"-->
<head>
<title><%=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 textLimitCheck1(thisArea, maxLength){
    if (thisArea.value.length > maxLength){
      alert(maxLength + ' 个字限制. \r超出的将自动去除.');
      thisArea.value = thisArea.value.substring(0, maxLength);
      thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    messageCount1.innerText = thisArea.value.length;
  }
  </script>
  <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_fox1.company.value.length<5 || form_fox1.company.value.length>16 ){
            alert("问题标题在5-16字之间！");
            form_fox1.company.focus();
            return false;
        }

 }
</script>
<script language="JavaScript">
  function checkinput1(){
        	if(form_fox.class1.value == "0" || form_fox.class1.value == ""){
            alert("请选择大类！");
            form_fox.class1.focus();
            return false;
        } 
			if(form_fox.class2.value == "0" || form_fox.class2.value == ""){
            alert("请选择小类！");
            form_fox.class2.focus();
            return false;
        } 
           if(form_fox.memo.value.length<5 || form_fox.memo.value.length>300 ){
            alert("问题内容在5-300字之间！");
            form_fox.memo.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">
							<img border="0" src="images/wode.gif" width="147" height="44"></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">
<%dim company
company=request("company")%>					
<div align="center">
	<table cellSpacing="0" cellPadding="0" width="96%" border="0" id="table43" height="300">
						<tr>
							<td width="16%" style="font-size: 12px" height="30">
							　</td>
							<td width="84%" style="font-size: 12px" valign="bottom" height="30" colspan="3">
							发布一个问题奖励 <font color="#FF0000"> <%=fbjf%></font> 分</td>
						</tr>
<form name="form_fox" onsubmit="return checkinput1()" method="post" action="addwenchk.asp">
						<tr>
							<td width="16%" style="font-size: 12px" align="right" height="48">
							问题标题：</td>
							<td style="font-size: 12px" height="48" colspan="3">
							　<font color="#FF0000"><%=company%></font>
							<input type="hidden" name="company" maxLength="3" size="3" value="<%=company%>">
							<input type="hidden" name="dengji" maxLength="3" size="3" value="<%=rsuser("dengji")%>">
							<input type="hidden" name="username" maxLength="3" size="3" value="<%=rsuser("username")%>"></td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right" height="46">
							所属分类：</td>
							<td width="84%" style="font-size: 12px" height="46" colspan="3">
<%
dim rsclass
dim sqlclass
dim count
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from FOX_class2 order by paixu desc"
rsclass.open sqlclass,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rsclass.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count = count + 1
        rsclass.movenext
        loop
        rsclass.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.form_fox.class2.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.form_fox.class2.options[document.form_fox.class2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
                      </SCRIPT><%
sqlclass = "select * from FOX_class1 order by paixu desc"
rsclass.open sqlclass,conn,1,1
if rsclass.eof and rsclass.bof then
response.write "请先添加栏目。"
response.end
else
%><SELECT name="class1" onChange="changelocation(document.form_fox.class1.options[document.form_fox.class1.selectedIndex].value)" size="1" class="right_bg01">
<OPTION selected value="0">==分类==</OPTION>
                                <%do while not rsclass.eof
%>
                                <OPTION value="<%=trim(rsclass("id"))%>"><%=trim(rsclass("class1"))%></OPTION>
                                <%
        rsclass.movenext
        loop
	    end if
        rsclass.close
        set rsclass=nothing
%>
                              </SELECT>
                              <SELECT name="class2" size="1" class="right_bg01">
                                <OPTION selected value="0">==二级分类==</OPTION>
                              </SELECT> <font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right" height="50">
							问题内容：</td>
							<td width="84%" style="font-size: 12px" height="50" colspan="3">
							<textarea  class="button02" rows="8" onkeyUp="textLimitCheck(this, 300);" name="memo" cols="48"></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 5-300 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right" height="50">
							悬赏分数：</td>
							<td width="14%" style="font-size: 12px" height="50">
							<img border="0" src="images/icn_point.gif" width="16" height="16">
							<input type="text" name="jf" maxLength="8" size="3" value="0"> 分 </td>
							<td width="27%" style="font-size: 12px" height="50">
							<font color="#FF0000">必须≤</font> <font color="#FF0000"><%=rsuser("zhidaojf")%> 分</font>
							<input type="hidden" name="djf" maxLength="8" size="8" value="<%=rsuser("zhidaojf")%>"></td>
							<td width="43%" style="font-size: 12px" height="50" class="index_bk2">
							<b>请注意：</b>一定的悬赏分有利于您解决问题，但不能大于您目前 <font color="#FF0000"><%=rsuser("zhidaojf")%></font> 
							积分，否则不能提交！<br>
							当您有了答案后请及时结帖，否则将会被系统自动删除！</td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right">
							验证码：</td>
							<td width="84%" style="font-size: 12px" colspan="3">
							<input name="verifycode" type="text" class="button01" size="6">请在附加码框输入 
							<img src="../getcode.asp"></td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right">
							　</td>
							<td width="84%" style="font-size: 12px" colspan="3">
							<input class="inputb" border="0" name="I6" type="submit" value="提交此问题"></td>
						</tr>
						<tr>
							<td width="16%" style="font-size: 12px" align="right">
							　</td>
							<td width="84%" style="font-size: 12px" valign="top" colspan="3">
							　</td>
						</tr></form>
					</table>
					</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 border="0" width="100%" id="table65" cellpadding="0" cellspacing="3">
	<form name="form_fox1" onsubmit="return checkinput()" method="post" action="addwen.asp">
								<tr>
									<td>
									<textarea  class="button02" rows="2" onkeyUp="textLimitCheck1(this, 16);" name="company" cols="20"></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 5-16 个字符  已输入 <font color="#CC0000"><span id="messageCount1">0</span></font> 个</font></td>
								</tr>
								<tr>
									<td>
			<input class="inputb" border="0" name="I5" type="submit" value="提交问题"></td>
								</tr></form>
							</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=newsindex.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=newsindex.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"-->