⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show.asp

📁 功能最强大的ASP网站
💻 ASP
字号:
<!--#include file="conn.asp" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<%
dim bhx
bhx="1"
 if (request("bh")<>"")then
bhx=request("bh")
end if
%>
<%
exec="select * from news where bh="+ bhx
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%
sql="select * from gbook where bh="+ bhx
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
%>
<title><%=rs("title")%></title>
<style type="text/css">
<!--
body {
	background-image: url(images/bg.png);
}
#Layer1 {
	position:absolute;
	width:355px;
	height:119px;
	z-index:1;
	left: 183px;
	top: 14px;
	background-color: #FFFFFF;
}
.STYLE1 {
	color: #0099CC;
	font-size: 10px;
	font-family: Arial, Helvetica, sans-serif;
}
.STYLE2 {color: #000000; font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE12 {
	font-family: "幼圆";
	font-size: 12;
}
-->
</style>
</head>

<body>
<div class="tb1" id="Layer1">
  <table width="354" border="0" class="tb1">
    <tr>
      <td><!--#include file="head.asp"-->&nbsp;</td>
    </tr>
    <tr>
      <td><div align="center" class="STYLE2">
          <%while not rs.eof%>
	      <%response.Write(""&rs("title"))%>
	  &nbsp;</div></td>
    </tr>
    <tr>
      <td><div align="center">
	  <script type="text/javascript"><!--
google_ad_client = "pub-5540323533903229";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQjZKgnAIaCBwqmEMx7tceKJnA93M";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	  </div></td>
    </tr>
    <tr>
      <td><p><span class="STYLE3">发布时间:
        <%response.Write(""&rs("time"))%> 
        所属分类:</span>
          <span class="STYLE3">
          <%
		   classname=rs("bigclassname")
		  response.Write(classname)%>
      &nbsp;</span></p>
      <p>&nbsp;</p></td>
    </tr>
    <tr>
      <td class="STYLE3 STYLE12"><p>
          <%response.Write("")&rs("content")
	         rs.movenext
			 wend
			 %>
      &nbsp;</p>
      <p><hr class="tb1">&nbsp;</p></td>
    </tr>
    <tr>
      <td><table width="100%" border="0">
	  <%
	  Set rsn = Server.CreateObject ("ADODB.Recordset")
                 sqln = "Select * from bigclass where bigclassname='"&classname&"'"
                 rsn.Open sqln,conn,3,2
				 if rsn.eof and rsn.bof then
				 response.Write("shangdu copyright 2007")
				 else
	  %>
        <tr>
          <td background="images/bg.png" class="STYLE1"><table width="100%" border="0" class="tb1">
            <tr>
              <td width="10%" rowspan="4"><div align="center">
                <%
				if rsn("admin_pic")="<img src=http://>" then 
				 response.Write("no pics")
				 else
				 response.Write(rsn("admin_pic"))
				 end if
				 %>
              </div></td>
              <td width="90%"><div align="left" class="STYLE8">分类管理员:</div></td>
            </tr>
            <tr>
              <td><%
				 response.Write(rsn("admin_name"))
				 %></td>
            </tr>
            <tr>
              <td class="STYLE8">管理员信息:</td>
            </tr>
            <tr>
              <td><div align="left">
                <%response.Write(rsn("admin_infor"))
				end if
				
				%>
              </div></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td class="STYLE1">&nbsp;		  </td>
        </tr>
        <tr>
          <td class="STYLE1">&nbsp;</td>
        </tr>
        <tr>
          <td background="images/bg.png" class="STYLE1">评论:<br>
            <span class="STYLE3">
            <%
		  set rs1=server.CreateObject("adodb.recordset") 
		  rs1.open "select * from gbook where id="&bhx,conn,1,1
		  if rs1.eof and rs1.bof then 
		  response.write("暂时还没有评论!") 
		  else		do while not rs1.eof
		    response.Write("["&rs1("name")&"] 评论说:"&rs1("title")&"<br>")%>
            <%response.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&rs1("content")&"<br><br>")
			rs1.movenext
			loop
			end if
			rs1.close
			set rs1=nothing
		%>
            </span></td>
        </tr>
      </table>	  </td>
    </tr>
    <tr>
      <td><form name="form1" method="post" action="admin/gbook.asp">
        <table width="100%" border="0" class="tb1">
          <tr>
            <td class="STYLE3">
              <%
			if session("name")="" then
			 %>
              name:
              <input name="name" type="text" class="STYLE3" id="name" value="shangdu">
			  <%
			   else
			   %>
			  name:
			   <input name="name" type="text" class="STYLE3" id="name" readonly value="<%=session("name")%>">
			   <%end if%>
			   <label>
              <input name="newsid" type="text" class="STYLE1" id="newsid" readonly value="<%response.write(""&bhx)%>" size="2">
              </label></td>
          </tr>
          <tr>
            <td class="STYLE3">title: 
              <label>
              <input name="title" type="text" class="STYLE3" id="title">
              e-mail:
              <input name="e-mail" type="text" class="STYLE3" id="e-mail">
              </label></td>
          </tr>
          <tr>
            <td class="STYLE3"><p>content:</p>
              <p>
                <textarea name="content" cols="80" rows="5" class="STYLE3" id="content"></textarea>
              </p>
              <p align="center">
                <input name="Submit" type="submit" class="tb1" value="ok!">
                <input name="Submit2" type="reset" class="tb1" value="rewrite!">
              </p>
              <p align="center">&nbsp;</p></td>
          </tr>
        </table>
        <table width="100%" border="0">
          <tr>
            <td>
			  
			    <div align="center">
			      <script type="text/javascript"><!--
google_ad_client = "pub-5540323533903229";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQnaWdzgEaCINObkyS6oFDKIvN93M";
google_ad_channel = "";
//-->
                </script>
			      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
			      <script type="text/javascript"><!--
google_ad_client = "pub-5540323533903229";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQzJbL9gEaCMvUzey7fSoIKMDx6n4";
google_ad_channel = "";
//-->
                      </script>
			            <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                      </script>	
	          </div></td>
          </tr>
          <tr>
            <td background="images/main_bg.gif"><div align="center"><span class="STYLE3"><img src="images/001.jpg" width="100" height="40"> &nbsp; <img src="images/005.jpg" width="100" height="40"><br>
              copyright shangdu website.SYSTEM 2007</span></div></td>
          </tr>
          <tr>
            <td><div align="center" class="STYLE3">copyright shangdu 2007 website.SYSTE </div></td>
          </tr>
        </table>
      </form>      </td>
    </tr>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -