<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="inc/Function.asp"-->
<!--#include file="inc/Config.asp"-->
<!--#include file="inc/conn.asp"-->
<%

id=Request("id")
Call ChkIsNumber(id,"请文明访问本站!")
Call ConnectionDataBase	
Sql = "SELECT * FROM T_Ask WHERE ID="&id
SetRs Rs,Sql,conn,1,3
IF Not Rs.eof Then
	Title=Rs("Title")
	Content=Rs("Content")
	AddTime=Rs("AddTime")
	UserID=Rs("UserID")
	IsOver=Rs("IsOver")
	StrSql="select logo,nickname from t_users where id="&UserID
	SetRs Rs1,StrSql,conn,1,1
	IF Not Rs1.Eof Then
		logo="images/untitled.jpg"
		IF Rs1("logo")<>"" Then logo="UpLoadFiles/Users/"&Rs1("logo")
		nickname=Rs1("nickname")
	End IF
	DisRs Rs1
End IF
DisRs Rs
Call CloseDataBase
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= Title %>-会展问答-会展招标-会展之窗</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/site.js"></script>
</head>

<body>
<!--#include file="top.asp"-->

<table width="990" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td><img src="images/wd_03.jpg" width="983" height="60" /></td>
  </tr>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td width="230" valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#e6eae9">
      <tr>
        <td height="30" bgcolor="f0f4f3"><span class="baiketitle">&nbsp;有问有答分类</span>&nbsp;</td>
      </tr>
      <tr>
        <td height="280" valign="top" bgcolor="#FFFFFF"><%Call AskClass(33333)%></td>
      </tr>
    </table></td>
    <td width="8"></td>
    <td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#e6eae9">
      <tr>
        <td height="30" bgcolor="f0f4f3"><span class="baiketitle">&nbsp;有问有答展示</span></td>
      </tr>
      <tr>
        <td height="280" valign="top" bgcolor="#FFFFFF"><br />
        <table width="98%" height="30" border="0" align="center" cellpadding="3" cellspacing="5" bgcolor="#F0F4F3">
          <tr>
            <td width="150" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="100" align="center"><img src="<%=logo%>" width="84" /></td>
                </tr>
              <tr>
                <td height="25" align="center"><%=nickname%></td>
                </tr>
              </table></td>
              <td valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="60" valign="top" style="line-height:25px;"><strong>提问：<%=Title%></strong><br /><%=Content%></td>
                  </tr>
                <tr>
                  <td align="right">提问日期：<%=AddTime%></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          
		  <%
			DIM p
			Call AnswerList(id,UserID,IsOver)
		  %>
          <div style="width:95%; margin:auto; text-align:left;  ">
            <%
			IF Rs.recordcount>0 Then
				Call showpage(p,Rs.recordcount,Rs.pagesize,"?id="&id,"&")
				DisRs Rs
			End IF
			Call CloseDataBase
			%>
            </div>
		  <br /><br />
          <%IF Session("DjbUserID")<>UserID Then%>
          <form action="submit.asp" name="frm" method="post" style="margin:0" onsubmit="return chkask()">
            <input type="hidden" name="action" value="submitask" />
            <input type="hidden" name="id" value="<%=id%>" />
            <textarea name="content" id="content" cols="50" rows="5" style="margin-left:10px"></textarea><br />
            <input type="image" src="images/zbs_26.jpg" style="margin-left:10px; margin-top:5px" /> 请登陆之后再回答
            </form>
		  <%End IF%>
        </td></tr>
    </table></td>
    <td width="8"></td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
