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

📄 result.asp

📁 该软件是用asp编写的
💻 ASP
📖 第 1 页 / 共 2 页
字号:
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links

Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev

Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    MM_paramList = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For MM_paramIndex = 0 To UBound(MM_paramList)
      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
      End If
    Next
    If (MM_keepMove <> "") Then
      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
    End If
  End If
End If

' set the strings for the move to links
If (MM_keepMove <> "") Then 
  MM_keepMove = MM_keepMove & "&"
End If

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

MM_moveFirst = MM_urlStr & "0"
MM_moveLast  = MM_urlStr & "-1"
MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
  MM_movePrev = MM_urlStr & "0"
Else
  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>	
function DoTrimProperly(str, nNamedFormat, properly, pointed, points)
  dim strRet
  strRet = Server.HTMLEncode(str)
  strRet = replace(strRet, vbcrlf,"")
  strRet = replace(strRet, vbtab,"")
  If (LEN(strRet) > nNamedFormat) Then
    strRet = LEFT(strRet, nNamedFormat)			
    If (properly = 1) Then					
      Dim TempArray								
      TempArray = split(strRet, " ")	
      Dim n
      strRet = ""
      for n = 0 to Ubound(TempArray) - 1
        strRet = strRet & " " & TempArray(n)
      next
    End If
    If (pointed = 1) Then
      strRet = strRet & points
    End If
  End If
  DoTrimProperly = strRet
End Function
</SCRIPT>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>					
function DoDateTime(str, nNamedFormat, nLCID)				
	dim strRet								
	dim nOldLCID								
										
	strRet = str								
	If (nLCID > -1) Then							
		oldLCID = Session.LCID						
	End If									
										
	On Error Resume Next							
										
	If (nLCID > -1) Then							
		Session.LCID = nLCID						
	End If									
										
	If ((nLCID < 0) Or (Session.LCID = nLCID)) Then				
		strRet = FormatDateTime(str, nNamedFormat)			
	End If									
										
	If (nLCID > -1) Then							
		Session.LCID = oldLCID						
	End If									
										
	DoDateTime = strRet							
End Function									
</SCRIPT>									
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=(rssetup.Fields.Item("st_title").Value)%></title>
<link href="config/beauty.css" rel="stylesheet" type="text/css">
</head>

<body background="pic_site/bgw.gif" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="pic_site/banner.gif" width="750" height="62"></td>
  </tr>
</table>
<div align="center">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="750" height="86">
    <param name="movie" value="../../zs/ccimages/top1.swf">
    <param name="quality" value="high">
    <embed src="../../zs/ccimages/top1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="86"></embed></object>
</div>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="1"><img src="pic_site/line_horz.gif" width="750" height="1"></td>
  </tr>
</table>
<table width="750" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="201" align="center">&nbsp;</td>
    <td width="29" align="right"><img src="pic_site/jiao.gif" width="29" height="25"></td>
    <td width="530" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F5F5F5">
  <tr> 
    <td width="25%" height="25">&nbsp;</td>
    <td height="25">&nbsp; </td>
  </tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td>通过对<font color="#FF0000"> 
      <% name=(request("fangshi"))
		  select case name
		  case "n_title"
		  response.write"标题"
		  case "n_author"
		  response.write"作者"
		  case else
		  response.write"内容"
		  end select
		  %>
      </font>的检索公找到关键字是 <font color="#FF0000"><%=request("shuru")%> </font>的新闻 <font color="#FF0000"><%=(rss_total)%>&nbsp;</font>则,分<font color="#FF0000"> 
      <%
     Dim page1
     Dim page2
     page1=(rss_total)/20
     if page1 > int(page1) then
       page2 = int(page1)+1
       response.write(page2)
     else
       response.write(page1)
    end if
    %>
      </font>页显示,该页显示<font color="#FF0000"> <%=(rss_first)%>-<%=(rss_last)%>/<%=(rss_total)%> </font>。</td>
  </tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><br> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
        <% 
While ((Repeat2__numRows <> 0) AND (NOT rss.EOF)) 
%>
        <tr> 
          <td width="5%" height="20" align="center"><img src="pic_site/arrow.gif" width="15" height="11"></td>
          <td height="20"><strong><span class="title"><a href="<%=(rss.Fields.Item("n_tid").Value)%>/<%=(rss.Fields.Item("n_fname").Value)%>" target="_blank"><%=ShowBold(rss.Fields.Item("n_title").Value)%></a></span></strong>&nbsp; 
            作者:<%=(rss.Fields.Item("n_author").Value)%>&nbsp;日期<font color="#666666">:<%= DoDateTime((rss.Fields.Item("n_date").Value), 2, -1) %></font></td>
        </tr>
        <tr> 
          <td height="20" colspan="2"><%=ShowBold(DoTrimProperly((rss.Fields.Item("n_content").Value), 120, 0, 1, "..."))%></td>
        </tr>
        <% 
  Repeat2__index=Repeat2__index+1
  Repeat2__numRows=Repeat2__numRows-1
  rss.MoveNext()
Wend
%>
      </table>
      <table border="0" width="50%" align="center">
        <tr> 
          <td width="23%" align="center"> 
            <% If MM_offset <> 0 Then %>
            <a href="<%=MM_moveFirst%>">第一页</a> 
            <% End If ' end MM_offset <> 0 %>
          </td>
          <td width="31%" align="center"> 
            <% If MM_offset <> 0 Then %>
            <a href="<%=MM_movePrev%>">前一页</a> 
            <% End If ' end MM_offset <> 0 %>
          </td>
          <td width="23%" align="center"> 
            <% If Not MM_atTotal Then %>
            <a href="<%=MM_moveNext%>">下一页</a> 
            <% End If ' end Not MM_atTotal %>
          </td>
          <td width="23%" align="center"> 
            <% If Not MM_atTotal Then %>
            <a href="<%=MM_moveLast%>">最后一页</a> 
            <% End If ' end Not MM_atTotal %>
          </td>
        </tr>
      </table></td>
  </tr>
</table>
<div align="center">
  <TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=750>
    <TBODY>
      <TR> 
        <TD><IMG alt="" height=13 src="pic_site/index_07.jpg" 
    width=750></TD>
      </TR>
      <TR> 
        <TD align=middle background=pic_site/index_08.jpg height=25><div align="center"><FONT 
      color=#ffffff>版权所有:吉林程技术师范学院就业指导处 未经同意请勿转载 </FONT></div></TD>
      </TR>
      <TR> 
        <TD align=middle background=pic_site/index_09.jpg 
      height=53><div align="center">地 址: 吉林省长春市凯旋路52号 邮 编: 130052<br>
            电 话: 0431-2939022 邮 箱: ZHM_BRD2000@SINA.COM </div></TD>
      </TR>
    </TBODY>
  </TABLE>
</div>
</body>
</html>
<%
rst.Close()
Set rst = Nothing
%>
<%
rss.Close()
%>
<%
rssetup.Close()
Set rssetup = Nothing
%>


⌨️ 快捷键说明

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