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

📄 showtext02.asp

📁 一个ASP做的政府网站的全站程序
💻 ASP
字号:
<%@ Language=VBScript %>
<!--#include file="connect.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>玉环人大</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="yhrd.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 13px; text-decoration: none; line-height: 18px; font-family: "宋体", "新宋体";}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function send() {
			var form = window.document.form1;			
				
			form.onSubmit = "return true";
		   form.submit();
        }
//-->
</script>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="168" height="18" bgcolor="#E80000" class="white9v">&nbsp;2004年2月17日&nbsp;&nbsp;星期二</td>
    <td width="365" bgcolor="#E80000" class="white9v">&nbsp;</td>
    <td width="70" bgcolor="#E80000" class="white9v"><img src="images/whiteArrow.gif" width="8" height="8">关于我们</td>
    <td width="70" bgcolor="#E80000" class="white9v"><img src="images/whiteArrow.gif" width="8" height="8">合作伙伴</td>
    <td width="75" bgcolor="#E80000" class="white9v"><img src="images/whiteArrow.gif" width="8" height="8">网站导航</td>
  </tr>
  <tr>
    <td colspan="5"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="227"><img src="images/yhrd_title0.jpg" width="227" height="85"></td>
        <td width="361"><img src="images/yhrd_title1.jpg" width="361" height="85"></td>
        <td valign="middle" background="images/yhrd_title2.jpg"><table width="184" height="85"  border="0" cellpadding="0" cellspacing="0">
          <form name="form1" method="post" action="searchSite.asp">
            <tr>
              <td height="32" valign="bottom">
                <input name="keyword" type="text" class="9v" id="keyword" size="22"></td>
              <td valign="bottom" ><a href="javascript:send();"><img src="images/go.gif" width="24" height="24" border="0"></a></td>
            </tr>
            <tr align="center" valign="top">
              <td colspan="2" class="white9v"><br>
                  <br>
              </td>
            </tr>
          </form>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr align="center" bgcolor="#C71008">
    <td height="30" colspan="5" class="white11v"><a href="default.asp"><img src="images/menu0.gif" width="31" height="20" border="0"></a><% 
	sqlStr="select fldpriviledge,fldcolumn,fldtemplate,fldurl,fldimage from tblcolumn where fldsubcolumn='—' order by fldpriviledge"
	Set rs_column = Server.CreateObject("ADODB.Recordset")
	rs_column.open sqlStr,dataConn,1,1
	for i=1 to 9			
	if rs_column("fldimage")<>"" then
		response.write "<img src='images\menuDot.gif'>"
		if rs_column("fldurl")<>"" then
			response.write "<a href='" & rs_column("fldurl") & "'>"
		else
			response.write "<a href=" & rs_column("fldtemplate") & "?column=" & rs_column("fldcolumn") & ">"
		end if
		response.write "<img src='images/" & rs_column("fldimage") & "' border=0></a>" 
	else
		response.write " · "
		response.write rs_column("fldcolumn")
	end if
	rs_column.movenext
	next
  %></td>
  </tr>
  <tr>
    <td colspan="5"><img src="images/title_back.gif" width="780" height="12"></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="163" bgcolor="#E7E7E7"></td>
    <td valign="top"><img src="images/doom.gif" width="455" height="9"></td>
    <td width="162" bgcolor="#E7E7E7"></td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="780" height="48" colspan="3" align="center" class="11v style3"><strong>
	  <%
	dim sqlStr
	sqlStr="select fldtopic,fldphoto,fldtext from tblessay where id=" & request("id")
	Set rs = Server.CreateObject("ADODB.Recordset")
	rs.open sqlStr,dataConn,1,1
	
	if not rs.eof and rs("fldtopic")<>"" then	
		response.write rs("fldtopic")
	end if
	%>	
    </strong></td>
  </tr>
  <tr bgcolor="#F0F0F0">
    <td colspan="3" class="11vGreen">&nbsp;&nbsp;</td>
  </tr>
  <tr>
    <td width="36" class="11vGrey"></td>
    <td valign="top" class="11vGrey"><br>
    <%
	  if not rs.eof and rs("fldtext")<>"" then
	  'content=replace(rs("fldtext"),"&nbsp;","")
	  
	  content=replace(rs("fldtext"),"<br>","<br><br>  ")
	  
	  content = "  " & content
	  
	   photolist = trim(rs("fldPhoto"))
			 Dim photo()
			 start = InStr(1,photolist," ")
			 if start = 0 then
			 	photo_num = 1
			 else
			 	photo_num = 0
			 end if
			 
			 do while start>1
			 	photo_num = photo_num+1							
			 	start = InStr(start,photolist,"  ") + 1																	
			 loop
			 			 
			 Redim photo(photo_num)			
				
			 for i = 0 to photo_num-1
			    start = InStr(1,photolist," ") + 1
				if start <> 1 then
			 		photo(i) = left(photolist,start)
					photolist = right(photolist,len(photolist)-start)
				else
					photo(i) = photolist
				end if		
			 next
			 
			 span = len(content) \ photo_num

			 for i = 0 to photo_num-1
			 	if i mod 2 = 0  and photo(i)<>"" then			 
			 		response.write "<img src='photoes/" & photo(i) & "' align='left' border=1>"
				elseif photo(i)<>"" then
					response.write "<img src='photoes/" & photo(i) & "' align='right' border=1>"
				end if
			 	response.write left(content,span)
				length = len(content)-span
				if length>0 then				
					content = right(content,length)
				end if
			 next	  	  	  	  	
	  end if
	  %></td>
    <td width="36" class="11vGrey"><img src="images/space.gif" width="3" height="330"></td>
  </tr>
  <tr bgcolor="#F0F0F0">
    <td colspan="3" class="11vGreen"></td>
  </tr>
  <tr>
    <td colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="789" height="18" align="center" bgcolor="#C41208" class="white9v">Copyright 2004, Yuhuan Municipal People's Congress. All Right Reserved </td>
  </tr>
  <tr>
    <td height="18" align="center" bgcolor="#E7E7E7" class="9vGrey">玉环县人大版权所有&nbsp;&nbsp;未经许可严禁复制或镜像</td>
  </tr>
</table>
<%
rs.close
set rs=nothing
set dataConn=nothing
%>
</body>
</html>

⌨️ 快捷键说明

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