<!--#include file="headshow.asp"-->
<div align="center"> 
  <%dim name,theitem,sql,rs,thepage,currentpage,pagename,totalpage,n,page
    if request("id")="" then
   response.write "<script>alert('错误参数！');history.back();</script>"
   response.end
   end if
Set rs = Server.CreateObject("ADODB.Recordset")
    sql="select * from news_data where mark='yes' and stop >= date() and adid="&request("id")&""
    rs.open sql,conn,1,3%>
  <span style="font-size: 10.5pt"> 
  <%
if rs.eof then
	response.write "<font color=#ff0000>对不起，没有找到符合条件的广告内容！</font></td></tr></table>"
	rs.close
	set rs=nothing
   	'response.end
else
adid=rs("adid")
hits=rs("hits")+0
rs("hits")=hits
rs.update
%>
  <title><%=rs("title")%>--<%=webtitle%></title>
  </span>
<table border="0" cellpadding="0" cellspacing="0" width="980" id="table2">
		<tr>
			
      <td bgcolor="#EDF0F5" valign="top"> 
        <table width=800 border=0 cellpadding=0 cellspacing=0 align="center" id="table15">
          <tr>
            <td> 
              <table width="800" border="0" cellpadding="0" cellspacing="0" id="table16">
                <tr <%if rs("bgcolor1")<>"" then%>bgcolor="<%=rs("bgcolor1")%>"<%else%>bgcolor="#EFF7FE"<%end if%>> 
                  <td height="24" align="center">  
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table17">
                      <tr> 
                        <td height="35" bgcolor="#EDF0F5">
                          <div align="center"><span style="font-size:16px; line-height:200%">
                            
                            <%if rs("cu")="yes" then%>
                            </span><b><font style="font-size:16px;line-height:200%" <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=rs("title")%></font></b><span style="font-size:16pxt"> 
                            <%else%>
                            </span><font style="font-size:16px;line-height:200%" <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=rs("title")%></font><span style="font-size:16px"> 
                            <%end if%>
                            </span></div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr> 
                  <td valign="top">
                    <hr size="1" color="#FF6600">
                  </td>
                </tr>
                <tr> 
                  <td valign="top" height="32">
                    <div align="center"><span style="font-size: 9pt"><font color="#666666">类别: 
                      <%lei=rs("type")%>
                      <%=lei%>&nbsp; 人气指数:<script src="newsrq.asp?id=<%=rs("adid")%>"></script>&nbsp; 发布作者:<%=rs("username")%>&nbsp;&nbsp;发布时间:<%=rs("date")%> 
                      </font> </span></div>
                  </td>
                </tr>
                <tr> 
                  <td valign="top"> 
                    <table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0" id="table18">
                      <tr> 
                        <td valign="top" style="word-break:break-all; line-height:normal;"> 
                          <%=rs("text")%>
                        </td>
                      </tr>
                      <tr> 
                        <td valign="top" style="word-break:break-all"> 
                          <table width="100%" height="130" border="0" cellpadding="0" cellspacing="0" bgcolor="e8e8e8" style="float:left;" id="table19">
                            <tr> 
                              <td align="center" bgcolor="#EDF0F5">　</td>
                            </tr>
                            
                            <tr> 
                              <td align="left" bgcolor="#EDF0F5"> 
                                <span style="font-size: 10.5pt"> </span> 
                                <hr size="1" color="#FF6600">
                                <span style="font-size: 10.5pt"> </span> </td>
                            </tr>
                            <tr> 
                              <td align="left" bgcolor="#EDF0F5" height="30"> 
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr> 
                                    <td> 
                                      
                                      <script language="JavaScript">
<!--//
function checkmessage()
{   
    if (document.form.messagetext.value.length<1)
	{
        alert("请填写留言内容！");
        document.form.messagetext.focus();
        return false;
    }
	    if (document.form.messagetext.value.length>100)
	{
        alert("请把留言字数控制在100以内！");
        document.form.messagetext.focus();
        return false;
    }
}
//-->
</script>
                                      <form name="form" method="post" action="post_news.asp?id=<%=request("id")%>" onSubmit="return checkmessage()">
                                        <table  border="0" cellpadding="2" cellspacing="1" style="word-break:break-all" width="710">
                                          <tr bgcolor="#FFFFFF"> 
                                            <td valign="top" bgcolor="#EDF0F5"> 
                                              <p style="line-height: 150%"> 
												<span style="font-size: 10.5pt">
												网友昵称: 
                                                <input name="messagename" type="text" id="messagename" size="12" maxlength="20">
                                                联系方式: 
                                                <input name="messagelxfs" type="text" id="messagelxfs" size="25" maxlength="50">
                                                <br>
                                                评论内容:<font color=#fa4600>[请遵纪守法并注意语言文明]</font> 
                                                <br>
                                                <textarea name="messagetext" cols="90" rows="8"></textarea>
                                                </span></p>
                                              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                <tr> 
                                                  <td align="right"> 
                                                    <div align="left"> <span style="font-size: 10.5pt"> 
                                                      <input name="id" type="hidden" value="<%=request("id")%>">
                                                      </span> 
                                                      <p style="line-height: 150%"> 
                                                        <span style="font-size: 10.5pt"> 
                                                        <input type="submit" name="Submit" value="提交评论">
                                                        </span> 
                                                    </div>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>
                                          </tr>
                                          <tr bgcolor="#FFFFFF"> 
                                            <td valign="top" bgcolor="#EDF0F5"> 
                                              <p style="line-height: 150%"> <span style="font-size: 10.5pt"> 
											   <script src="js_message_news.asp?id=<%=adid%>"></script> 
                                                </span> 
                                            </td>
                                          </tr>
                                        </table>
                                      </form>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                            <tr> 
                              <td align="left" bgcolor="#EDF0F5" height="30"></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <%                                                                           
rs.close                                                   
set rs=nothing                                                 
%>            </td>
          </tr>
        </table>
      </td>
			<td bgcolor="#808080" width="1">　</td>
			
      <td width="160" bgcolor="#F0EFEF" valign="top">
        <table width="100%" border="0" cellspacing="4" cellpadding="0">
          <tr>
            <td><span style="font-size: 9pt"> 
              <!-- 热点分类信息 -->
              <%if webhot="1" then%>
              <%end if%>
              <%sql="select top 10 * from news_data where mark='yes' and stop >= date() order by money desc,[top] desc,time desc" 
set rs=server.createobject("adodb.recordset")               
rs.open sql,conn,1,1  
if rs.eof then%>
              <font color='#FF0000'>暂无热点分类信息！</font> 
              <%rs.close
set rs=nothing                            
else 
do while not rs.eof%>
              </span><span style="font-size: 9pt">·</span><a title=<%=rs("title")%> href="<%=rs("adid")%>.htm"><font style="size:9px " <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=rs("title")%></font></a><b><span style="font-size: 9pt"><font color="#008000">&nbsp;</font></span></b><font color="#008080" style="font-size: 9pt"><%=left(rs("username"),5)%></font><br>
              <%
rs.movenext
loop                                                                            
rs.close                                                   
set rs=nothing
end if%>
              <%if webhot="1" then%>
              <%end if%>
              <!-- 热点分类信息 -->
            </td>
          </tr>
        </table>
      </td>
		</tr>
	</table>
  <table  border="0" cellpadding="0" cellspacing="0" align="center" id="table2">
    <tr> 
      <td height="5" width="175" bgcolor="#FFFFFF"></td>
    </tr>
  </table>
</div> 
    <%end if%><!-- 这里是主题结束 --><!--#include file="foot.asp"-->
