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

📄 list_b.asp

📁 生活者姿态整站程序 生活者姿态整站程序 生活者姿态整站程序
💻 ASP
📖 第 1 页 / 共 2 页
字号:
rsn_last  = MM_offset + MM_size
If (MM_rsCount <> -1) Then
  If (rsn_first > MM_rsCount) Then rsn_first = MM_rsCount
  If (rsn_last > MM_rsCount) Then rsn_last = MM_rsCount
End If

' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index=&god="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

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

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
  NextItem = "&" & Item & "="
  If (InStr(1,MM_removeList,NextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(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)
if (MM_keepURL <> "")  Then MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' 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

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 0) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    params = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For i = 0 To UBound(params)
      nextItem = Left(params(i), InStr(params(i),"=") - 1)
      If (StrComp(nextItem,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & params(i)
      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 & "&"
urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = urlStr & "0"
MM_moveLast  = urlStr & "-1"
MM_moveNext  = urlStr & Cstr(MM_offset + MM_size)
prev = MM_offset - MM_size
If (prev < 0) Then prev = 0
MM_movePrev  = urlStr & Cstr(prev)
%>
<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>




<link rel="stylesheet" href="intohz.css" type="text/css"></head>

<body leftmargin="0" topmargin="0">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" height="1">
  <tr>
    <td bgcolor="#CCCCCC"></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" height="200">
  <tr> 
    <td width="70%" valign="top"> <br>
      <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" height="15">
        <% 
While ((Repeat2__numRows <> 0) AND (NOT rsn.EOF)) 
%>
        <% If Not rsn.EOF Or Not rsn.BOF Then %>
        <tr> 
          <td width="3%" height="20"><img src="images/arrow.gif" width="15" height="11"></td>
          <td width="97%" height="20">[<%= DoDateTime((rsn.Fields.Item("n_data").Value), 2, 1030) %>] <A HREF="detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "n_id=" & rsn.Fields.Item("n_id").Value %>" target="_blank"><% =(DoTrimProperly((rsn.Fields.Item("n_title").Value), 24, 0, 1, "...")) %></A></td>
        </tr>
        <% End If ' end Not rsn.EOF Or NOT rsn.BOF %>
        <% 
  Repeat2__index=Repeat2__index+1
  Repeat2__numRows=Repeat2__numRows-1
  rsn.MoveNext()
Wend
%>
      </table>
      <table width="90%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> 
            <div align="right">
              <% 
Forward = ">>>"
Backward = "<<<"
Delimiter = " | "
Rec_Name = rsn_total
List_Num = 5
Godspeed = 1
if request.querystring("god") <> "" then 
Godspeed = request.querystring("god")
end if
if Godspeed <> 1 then
Response.Write("<a href=" & Request.ServerVariables("URL") & "?" & MM_keepMove & "offset=" & Godspeed - MM_Size - 1 & "&god=" & Godspeed - MM_Size * List_Num & ">") 
Response.Write(Backward & "</a>  ")
end if
if Rec_Name < Godspeed + MM_Size * List_Num then
Matrix = Rec_Name
else
Matrix = Godspeed + MM_Size * (List_Num - 1) 
end if
if MM_size=0 then
   mm_size=1
end if

TM_counter = ( Godspeed - 1 )/MM_Size
For i = Godspeed to Matrix step MM_Size 
TM_counter = TM_counter + 1
if i <> MM_offset + 1 then
Response.Write("<a href=" & Request.ServerVariables("URL") & "?" & MM_keepMove & "offset=" & i-1 & "&god=" & Godspeed & ">")
Response.Write(TM_counter & "</a>")
else
Response.Write("<b>" & TM_counter & "</b>")
End if
if( i <= Matrix - MM_Size ) then Response.Write(Delimiter)
next
if Rec_Name > Godspeed + MM_Size * List_Num - 1 then
Response.Write("  <a href=" & Request.ServerVariables("URL") & "?" & MM_keepMove & "offset=" & Godspeed + MM_Size * List_Num - 1 & "&god=" & Godspeed + MM_Size * List_Num & ">") 
Response.Write(Forward & "</a>")
end if
%>
            </div>
          </td>
        </tr>
      </table>
      <p class="b">&nbsp;</p></td>
    <td width="30%" bgcolor="#F7F7F7" valign="top"> <br>
      <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <form name="form1" method="get" action="search.asp">
            <td> 
              <div align="center"> 
                <select name="xxx" size="1">
                  <option value="n_title" selected>标题</option>
                  <option value="n_author">作者</option>
                  <option value="n_content">内容</option>
                </select>
                <input type="text" name="sss" size="10">
                <input type="submit" name="Submit" value="搜">
              </div>
            </td>
          </form>
        </tr>
      </table>
      <br>
      <table width="180" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#99CC00">
        <tr> 
          <td height="20">  &lt;&lt;&lt; 推荐新闻:</td>
        </tr>
        <tr> 
          <td bgcolor="#F7F7F7" height="150" valign="top"><br>
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" height="16">
              <% 
While ((Repeat3__numRows <> 0) AND (NOT rsc.EOF)) 
%>
              <tr> 
                <td width="13"><img src="images/arrow.gif" width="15" height="11"></td>
                <td width="167"> 
                  <a href="detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "n_id=" & rsc.Fields.Item("n_id").Value %>" target="_blank"> 
                  <% =(DoTrimProperly((rsc.Fields.Item("n_title").Value), 10, 0, 1, "...")) %>
                  </a> </td>
              </tr>
              <% 
  Repeat3__index=Repeat3__index+1
  Repeat3__numRows=Repeat3__numRows-1
  rsc.MoveNext()
Wend
%>
            </table>
            <br>
          </td>
        </tr>
      </table>
      <br>
      <table width="180" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#99CC00">
        <tr> 
          <td height="20">  &lt;&lt;&lt; 阅读排行:</td>
        </tr>
        <tr> 
          <td bgcolor="#F7F7F7" height="150" valign="top"><br>
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" height="15">
              <% 
While ((Repeat4__numRows <> 0) AND (NOT rsh.EOF)) 
%>
              <tr> 
                <td width="13"><img src="images/arrow.gif" width="15" height="11"></td>
                <td width="167"> 
                  <a href="detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "n_id=" & rsh.Fields.Item("n_id").Value %>" target="_blank"> 
                  <% =(DoTrimProperly((rsh.Fields.Item("n_title").Value), 10, 0, 1, "...")) %>
                  </a> </td>
              </tr>
              <% 
  Repeat4__index=Repeat4__index+1
  Repeat4__numRows=Repeat4__numRows-1
  rsh.MoveNext()
Wend
%>
            </table>
            <br>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" height="60">
  <tr> 
    <td width="70%" valign="top">&nbsp;</td>
    <td width="30%" bgcolor="#F7F7F7">&nbsp; </td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" height="30">
  <tr> 
    <td bgcolor="#99CC00" valign="middle"> 
      <div align="center"> <font color="#FFFFFF"><span class="copy"><font color="#000000">&copy;C</font></span></font><font color="#000000"><span class="copy">opyright 
        2002-2003<b> <font color="#990000">Yeyistudio</font>.126.com</b>,all right 
        reserved </span></font></div>
    </td>
  </tr>
</table>
</body>
</html>
<%
rsn.Close()
%>
<%
rsc.Close()
%>
<%
rsb.Close()
%>
<%
rsh.Close()
%>

⌨️ 快捷键说明

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