<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/wenda_reset.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>旅游问答-<%=SiteName%></title>
<link href="../style/global.css" rel="stylesheet" type="text/css" />
<link href="style/zd.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
function check(obj){
	if(obj.Title.value==""){
		alert('标题不能为空');
		obj.Title.focus();
		return false;
	}
	if(obj.Content.value==""){
		alert('内容不能为空');
		obj.Content.focus();
		return false;
	}
	if(obj.vertcode.value==""){
		alert('验证码不能为空');
		obj.vertcode.focus();
		return false;
	}
	
	return true;
}
</script>
</head>

<body>
<!--#include file="../templet/head.htm"-->
<!--#include file="nav.asp"-->
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="9"><img src="images/head_left2.gif" width="9" height="27" alt=" " /></td>
    <td background="images/head_bg2.gif"><div class="nav3"><a href="/"><%=SiteName%></a>-&gt;<a href="/esf">旅游问答</a></div></td>
    <td width="9"><img src="images/head_right2.gif" width="9" height="27" alt=" " /></td>
  </tr>
</table>
<div class="br"></div>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
    	<form action="/wd/search.asp" method="get">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="zd_brd">
      <tr>
        <td align="center" background="images/search_bg.gif"><img src="/wd/images/search_left.gif" width="40" height="37" alt=" " /></td>
        <td height="30" align="center" background="/wd/images/search_bg.gif">关键字：
          <input name="KeyWord" type="text" class="input_text" id="KeyWord" size="60" />
           <input name="button2" type="submit" class="input_search" id="button2" value=" " /></td>
        <td align="center" background="images/search_bg.gif"><a href="/wd/ask.asp" class="wd_btn_pub">我要提问</a></td>
      </tr>
    </table>
    </form>
      <div class="br"></div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="wenda_th"><div class="txt"><img src="images/icon6.gif" width="18" height="18" alt=" " /> 提问</div></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="act">
        <tr>
          <td class="wd_show_desc"> 
          <form id="form3" name="form3" method="post" action="ask_add.asp" onsubmit="return check(this)">
    	      <table width="90%" border="0" align="center" cellpadding="1" cellspacing="0">
    	        <tr>
    	          <td>分类：</td>
    	          <td height="25"><select name="CatalogId" id="CatalogId">
									<%=getSourceOption(0,"t_wenda_catalog")%>
                  </select>
                </td>
  	          </tr>
    	        <tr>
    	          <td>标题：</td>
    	          <td height="25"><input name="Title" type="text" class="f_in" id="Title"  style="width:330px;" /></td>
  	          </tr>
    	        <tr>
    	          <td>内容：</td>
    	          <td><textarea name="Content" class="f_in" id="Content"  style="width:330px; height:100px;"></textarea></td>
  	          </tr>
    	        <tr>
    	          <td>验证码：</td>
    	          <td height="25" align="left"><input name="vertcode" type="text" class="f_in" id="vertcode" size="4" /> <img src="/image.asp" onclick="this.src='/image.asp?time='+Math.random()"></td>
  	          </tr>
    	        <tr>
    	          <td align="center">&nbsp;</td>
    	          <td height="25" align="center"><input type="submit" name="button2" id="button2" value="提交问题" /></td>
  	          </tr>
  	        </table>
  	      </form>
          </td>
        </tr>
      </table>
      <div class="br"></div>
      <div class="br"></div></td>
    <td width="5">&nbsp;</td>
    <td width="220" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="zd_brd">
      <tr>
        <td height="29" class="zd_topic"><img src="images/icon1.gif" alt=" " width="25" height="21" align="absmiddle" /> <span class="zd_topic_txt">知道分类</span></td>
      </tr>
      <tr>
        <td>
        <div class="zd_catalogs">
        	<ul>
          	<%
						set rs=conn.execute("select id,title from t_wenda_catalog order by id asc")
						while not rs.eof
						%>
            <li><a href="/wd/list.asp?id=<%=rs(0)%>"><%=rs(1)%></a></li>
            <%
							rs.movenext
						wend
						rs.close
						set rs=nothing
						%>           
          </ul>
        </div>
        </td>
      </tr>
    </table>
      <div class="br"></div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="zd_brd">
        <tr>
          <td height="29" class="zd_topic"><img src="images/icon2.gif" alt=" " width="18" height="13" /> <span class="zd_topic_txt">关注排行</span></td>
        </tr>
        <tr>
          <td><div class="rank2">
            <ul>
              <%
						set rs=conn.execute("select top 10 id,UserId,Title,[Status],PubDate,Hits from t_wenda where IsCheck=1 order by Hits desc,id desc")
						while not rs.eof
						%>
            <li><a href="ask/show/<%=rs(0)%>.html"><%=rs(2)%></a></li>          
						<%
              rs.movenext
            wend
            rs.close
            set rs=nothing
            %>            
            </ul>
          </div></td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#include file="../templet/root.htm"-->
</body>
</html>
<%
call connclose()
%>
