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

📄 news.asp

📁 一个朋友购买的商业版房产网源程序
💻 ASP
字号:
<!--#include file="top.asp"-->
<!--#include file="UBB.asp"-->

        <% 
          dim xiangxi:xiangxi=trim(request.querystring("xiangxi"))
          if not(isnumeric(xiangxi)) then
          response.Redirect"index.asp"
           end if
		  set rs=server.createobject("adodb.recordset") 
		  sql="select * from news where id="&xiangxi
		  'sql="select * from wenxue where sh='1' and id="&xiangxi  防止未通过审核而输入文章ID的值进行浏览
		  rs.open sql,conn,1
          %>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" background="images/topb.gif">
  <tr> 
    <td>
      <table cellspacing=0 cellpadding=0 width="100%" border=0>
        <tbody> 
        <tr> 
          <td align=middle height=40> 
            <div align="center"><font class=red_3 
                  size=3><b> 
              <% =rs("bt") %>
              </b></font></div>
          </td>
        </tr>
        <tr> 
          <td class=gray 
                  align=middle> 
            <div align="center"> 
              <select 
                  onChange="if(this.options[this.selectedIndex].value!=''){do_color('font_word',this.options[this.selectedIndex].value);}" 
                  size=1 name=do_color_frm>
                <option value="" 
                    selected>颜色</option>
                <option style="COLOR: #000000" 
                    value=#000000>默认</option>
                <option style="COLOR: #808080" 
                    value=#808080>灰度</option>
                <option style="COLOR: #808000" 
                    value=#808000>橄榄色</option>
                <option style="COLOR: #008000" 
                    value=#008000>绿色</option>
                <option style="COLOR: #0000ff" 
                    value=#0000FF>蓝色</option>
                <option style="COLOR: #800000" 
                    value=#800000>褐色</option>
                <option style="COLOR: #ff0000" 
                    value=#FF0000>红色</option>
              </select>
              <script language=JavaScript>
<!--
  function do_color(vobject,vvar)
  { document.getElementById(vobject).style.color=vvar; }
  function do_zooms(vobject,vvar)
  { document.getElementById(vobject).style.fontsize=vvar+'px'; }
-->
</script>
              &nbsp;&nbsp;&nbsp;本文已被浏览&nbsp; 
              <% =rs("lls") %>
              &nbsp;次</div>
          </td>
        </tr>
        <tr> 
          <td height=10></td>
        </tr>
        <tr> 
          <td valign=top> 
            <table width="98%" border=0 align="center" cellpadding=0 cellspacing=0>
              <tbody> 
              <tr> 
                <td width=22 
                      background="images/news_line.gif" 
                      height=1></td>
                <td bgcolor=#666666></td>
                <td width=1 bgcolor=#666666 rowspan=5></td>
              </tr>
              <tr> 
                <td width=22 
                      background="images/news_b.gif" 
                      height=5></td>
                <td></td>
              </tr>
              <tr> 
                <td 
                      background="images/news_bg.gif"></td>
                <td align=middle> 
                  <table class=tf width="98%" align=center border=0>
                    <tbody> 
                    <tr> 
                      <td class=bw width="100%"> <font class=htd 
                              id=font_word 
                              style="FONT-SIZE: 14px; FONT-FAMILY: 宋体, Verdana, Arial, Helvetica, sans-serif"> 
                        <% Response.Write(ubbcode(rs("nr"))) %>
                        </font></td>
                    </tr>
                    </tbody> 
                  </table>
                </td>
              </tr>
              <tr> 
                <td width=22 
                      background="images/news_b.gif" 
                      height=5></td>
                <td></td>
              </tr>
              <tr> 
                <td background="images/news_line.gif" 
                      height=1></td>
                <td bgcolor=#666666 height=1></td>
              </tr>
              </tbody> 
            </table>
          </td>
        </tr>
        <tr> 
          <td height=10></td>
        </tr>
        <tr> 
          <td> 
            <table width="100%" border=0>
              <tbody> 
              <tr> 
                <td class=htd> 发布于: 
                  <% =rs("riqi") %>
                  <div align="right"></div>
                </td>
              </tr>
              </tbody> 
            </table>
          </td>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
</table>
<!-- #include file="let.asp" -->

⌨️ 快捷键说明

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