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

📄 managebook.asp

📁 体育商城
💻 ASP
📖 第 1 页 / 共 2 页
字号:
If (MM_rsCount <> -1) Then
  If (Recordset1_first > MM_rsCount) Then Recordset1_first = MM_rsCount
  If (Recordset1_last > MM_rsCount) Then Recordset1_last = MM_rsCount
End If

MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%


MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

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

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


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)


Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<%

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

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


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 language="JavaScript">
function jumpage(selObj,restore){
eval("location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;}
</script>
<%
' *** 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="
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
%>
<html>
<head>
<title>访客留言</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="ddd.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="manage.asp" -->
<!--#include file="top.asp" -->
<!--#include file="ubb/ubb.asp" -->
<table width="771" border="0" cellspacing="0" cellpadding="0" align="center" height="76" class="bk1">
  <tr> 
    <td height="83" valign="top"> 
      <p align="center"><font size="3"><b><font color="#000000"><br>
        <img src="images/fkly.gif" width="286" height="37"></font></b></font></p>
      <form name="form1" method="get" action="delly.asp">
        <div align="center"> 
          <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
          <table width="75%" border="1" align="center" cellspacing="2" cellpadding="0" bordercolor="#FFFFFF" height="117">
            <tr bordercolor="#000000"> 
              <td width="22%" height="152" background="images/bgly.gif"> 
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
                  <tr> 
                    <td height="134" valign="bottom"> 
                      <div align="center"><span class="dfont"><%=(Recordset1.Fields.Item("lyname").Value)%></span><br>
                        <img src="<%=(Recordset1.Fields.Item("face").Value)%>"><br>
                        <br>
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td height="9"><a href="mailto:<%=(Recordset1.Fields.Item("lyemail").Value)%>"><img src="images/email.gif" width="16" height="16" border="0"></a>  <a href="<%=(Recordset1.Fields.Item("lyurl").Value)%>"><img src="images/home.gif" width="16" height="16" border="0"></a>  <img src="images/oicq.gif" width="16" height="16" alt="<%=(Recordset1.Fields.Item("lyqq").Value)%>"></td>
                  </tr>
                </table>
              </td>
              <td width="78%" height="152" bgcolor="#FFFFFF"> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0" height="146">
                  <tr> 
                    <td height="89" valign="top"> <span class="dfont"> <img src="images/userlist.gif" width="16" height="16"><%=(Recordset1.Fields.Item("lyip").Value)%>             <img src="images/foot.gif" width="16" height="16"></span> 
                      <span class="dfont"><%=(Recordset1.Fields.Item("lydate").Value)%></span> 
                      <table width="94%" border="0" align="center" background="images/bgly1.gif" class="textk" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td height="62" valign="top"><img src="images/wave.gif" width="16" height="16"><%=ubbcode(Recordset1.Fields.Item("lyneirong").Value)%></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td height="49"> 
                      <div align="right"> 
                        <% If (Recordset1.Fields.Item("hfdate").Value) <> ("") Then 'script %>
                        <table width="94%" border="0" align="center" class="textk" cellspacing="0" cellpadding="0" height="17" background="images/bgly1.gif">
                          <tr> 
                            <td height="29"><font color="#FF0000">站长回复:</font><%=(Recordset1.Fields.Item("huifu").Value)%><img src="images/messages3.gif" width="12" height="11"></td>
                          </tr>
                        </table>
                        <% End If ' end If (Recordset1.Fields.Item("hfdate").Value) <> ("") script %>
                        <A HREF="GLguestbook.ASP?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "id=" & Recordset1.Fields.Item("id").Value %>"><span class="dfont">回复</span></A> 
                        <input type="checkbox" name="guestbookid" value="<%=(Recordset1.Fields.Item("id").Value)%>">
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
          <p> 
            <input type="submit" value="删除">
          </p>
          <p>当前显示第<%=(Recordset1_first)%> 到第<%=(Recordset1_last)%> 条留言,一共<%=(Recordset1_total)%>条留言。
            <select name="pages" size=1 onChange="jumpage(this,0)">
              <%
TM_counter = 0
For i = 1 to Recordset1_total Step MM_size
TM_counter = TM_counter + 1
TM_PageEndCount = i + MM_size - 1
if TM_PageEndCount > Recordset1_total Then TM_PageEndCount = Recordset1_total
if i <> MM_offset + 1 then
%>
              <option value="<%=Request.ServerVariables("URL") & "?" & MM_keepMove & "offset=" & i-1 %>"> 
              第<%= TM_counter %>页</option>
              <% else %>
              <option selected>第<%=TM_counter%>页</option>
              <% End if %>
              <% next %>
            </select>
          </p>
        </div>
      </form>
      <p align="center">&nbsp;</p>
    </td>
  </tr>
</table>
<br>
<!--#include file="bottom.asp" -->
</body>
</html>
<%
Recordset1.Close()
%>
<%set recordset1=nothing
%>

⌨️ 快捷键说明

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