<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/data.asp" -->
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_data_STRING
Recordset1_cmd.CommandText = "SELECT * FROM liuyan ORDER BY ID DESC" 
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 10
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName 
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
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
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>无标题文档</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	font-size: 14px;
	font-weight: bold;
	color: #333333;
	font-family: "黑体";
}
.STYLE2 {
	font-family: "黑体";
	color: #FFFFFF;
	font-size: 12px;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.STYLE3 {
	color: #333333;
	font-family: "宋体";
	font-size: 12px;
}
.STYLE4 {
	font-size: 12px;
	font-family: "宋体";
}
-->
</style><!-- InstanceEndEditable -->
</head>

<body>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="200"><img src="images/img_01.jpg" width="980" height="200" /></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="210"><table width="210" border="0" cellspacing="5" cellpadding="0">
      <tr>
        <td height="208" valign="top" background="images/img_02.jpg"><table width="200" height="175" border="0" cellpadding="0" cellspacing="5">
          <tr>
            <td height="45">&nbsp;</td>
          </tr>
          <tr>
            <td height="59" align="left" valign="middle"><img src="images/icon.gif" width="45" height="42" />　　<span class="STYLE1"><a href="gwly.asp" class="STYLE1">给我留言</a></span></td>
          </tr>
          <tr>
            <td align="left" valign="middle"><img src="images/icon.gif" alt="" width="45" height="42" />　　<span class="STYLE1"><a href="ckly.asp" class="STYLE1">查看留言</a></span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="770" valign="top"><!-- InstanceBeginEditable name="zhengwen" -->
    <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
      <table width="770" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td width="19"><img src="images/img_04.gif" width="18" height="18" /></td>
            <td width="472" height="40" class="STYLE4"><a href="ydly.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>"><%=(Recordset1.Fields.Item("标题").Value)%></a></td>
            <td width="288" class="STYLE3"><%=(Recordset1.Fields.Item("日期").Value)%></td>
          </tr>
          </table>
      <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
    <% If Recordset1.EOF And Recordset1.BOF Then %>
      <table width="770" border="0" align="left" cellpadding="0" cellspacing="5">
          <tr>
            <td align="center" valign="middle"><span class="STYLE4">对不起，暂时还没有留言！</span></td>
          </tr>
            </table>
      <% End If ' end Recordset1.EOF And Recordset1.BOF %>
<!-- InstanceEndEditable --></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="50" align="center" valign="middle" background="images/img_03.jpg"><span class="STYLE2">版权所有：风铃网站</span></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
