<%@LANGUAGE="VBSCRIPT"%>
<%
if request.QueryString("wish_id") <> "" then
%>
<!--#include file="conn.asp" -->
<!--#include file="function.asp" -->
<%
' *** Edit Operations: declare variables

MM_editAction = CStr(Request("URL"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Insert Record: set variables

If (CStr(Request("MM_insert")) <> "") Then

  MM_editConnection = MM_wish_STRING
  MM_editTable = "Qy_reply"
  MM_editRedirectUrl = "showwish.asp"
  MM_fieldsStr  = "reply_poster|value|reply_posterqq|value|reply_posteremail|value|reply_posterhome|value|reply_content|value|wish_id|value"
  MM_columnsStr = "reply_poster|',none,''|reply_posterqq|',none,''|reply_posteremail|',none,''|reply_posterhome|',none,''|reply_content|',none,''|wish_id|none,none,NULL"

  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(i+1) = ReplaceBadChar(CStr(Request.Form(MM_fields(i))))
	if MM_fields(i+1) <> "" then
	MM_fields(i+1) = left(MM_fields(i+1),300)
	end if	
  Next

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If

End If
%>
<%
' *** Insert Record: construct a sql insert statement and execute it

If (CStr(Request("MM_insert")) <> "") Then

  ' create the sql insert statement
  MM_tableValues = ""
  MM_dbValues = ""
  For i = LBound(MM_fields) To UBound(MM_fields) Step 2
    FormVal = MM_fields(i+1)
    MM_typeArray = Split(MM_columns(i+1),",")
    Delim = MM_typeArray(0)
    If (Delim = "none") Then Delim = ""
    AltVal = MM_typeArray(1)
    If (AltVal = "none") Then AltVal = ""
    EmptyVal = MM_typeArray(2)
    If (EmptyVal = "none") Then EmptyVal = ""
    If (FormVal = "") Then
      FormVal = EmptyVal
    Else
      If (AltVal <> "") Then
        FormVal = AltVal
      ElseIf (Delim = "'") Then  ' escape quotes
        FormVal = "'" & Replace(FormVal,"'","''") & "'"
      Else
        FormVal = Delim + FormVal + Delim
      End If
    End If
    If (i <> LBound(MM_fields)) Then
      MM_tableValues = MM_tableValues & ","
      MM_dbValues = MM_dbValues & ","
    End if
    MM_tableValues = MM_tableValues & MM_columns(i)
    MM_dbValues = MM_dbValues & FormVal
  Next
  MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ") values (" & MM_dbValues & ")"

  If (Not MM_abortEdit) Then
    ' execute the insert
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If

End If
%>
<%
Dim rswish__MMColParam
rswish__MMColParam = "1"
if (Request.QueryString("wish_id") <> "") then rswish__MMColParam = Request.QueryString("wish_id")
%>
<%
set rswish = Server.CreateObject("ADODB.Recordset")
rswish.ActiveConnection = MM_wish_STRING
rswish.Source = "SELECT wish_content, wish_id, wish_poster, wish_type FROM Qy_Wish WHERE wish_id = " + Replace(rswish__MMColParam, "'", "''") + ""
rswish.CursorType = 0
rswish.CursorLocation = 2
rswish.LockType = 3
rswish.Open()
rswish_numRows = 0
%>
<%
Dim rsrep__MMColParam
rsrep__MMColParam = "1"
if (Request.QueryString("wish_id") <> "") then rsrep__MMColParam = Request.QueryString("wish_id")
%>
<%
set rsrep = Server.CreateObject("ADODB.Recordset")
rsrep.ActiveConnection = MM_wish_STRING
rsrep.Source = "SELECT * FROM Qy_reply WHERE wish_id = " + Replace(rsrep__MMColParam, "'", "''") + " ORDER BY reply_date DESC"
rsrep.CursorType = 1
rsrep.CursorLocation = 2
rsrep.LockType = 3

rsrep.Open()
rsrep_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = 4
Dim Repeat1__index
Repeat1__index = 0
rsrep_numRows = rsrep_numRows + Repeat1__numRows
%>
<%
'  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

' set the record count
rsrep_total = rsrep.RecordCount

' set the number of rows displayed on this page
If (rsrep_numRows < 0) Then
  rsrep_numRows = rsrep_total
Elseif (rsrep_numRows = 0) Then
  rsrep_numRows = 1
End If

' set the first and last displayed record
rsrep_first = 1
rsrep_last  = rsrep_first + rsrep_numRows - 1

' if we have the correct record count, check the other stats
If (rsrep_total <> -1) Then
  If (rsrep_first > rsrep_total) Then rsrep_first = rsrep_total
  If (rsrep_last > rsrep_total) Then rsrep_last = rsrep_total
  If (rsrep_numRows > rsrep_total) Then rsrep_numRows = rsrep_total
End If
%>
<%
' *** Move To Record and Go To Record: declare variables

Set MM_rs    = rsrep
MM_rsCount   = rsrep_total
MM_size      = rsrep_numRows
MM_uniqueCol = ""
MM_paramName = ""
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
  MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>
<%
' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

  ' use index parameter if defined, otherwise use offset parameter
  r = Request.QueryString("index")
  If r = "" Then r = Request.QueryString("offset")
  If r <> "" Then MM_offset = Int(r)

  ' if we have a record count, check if we are past the end of the recordset
  If (MM_rsCount <> -1) Then
    If (MM_offset >= MM_rsCount Or MM_offset = -1) Then  ' past end or move last
      If ((MM_rsCount Mod MM_size) > 0) Then         ' last page not a full repeat region
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  ' move the cursor to the selected record
  i = 0
  While ((Not MM_rs.EOF) And (i < MM_offset Or MM_offset = -1))
    MM_rs.MoveNext
    i = i + 1
  Wend
  If (MM_rs.EOF) Then MM_offset = i  ' set MM_offset to the last possible record

End If
%>
<%
' *** Move To Record: if we dont know the record count, check the display range

If (MM_rsCount = -1) Then

  ' walk to the end of the display range for this page
  i = MM_offset
  While (Not MM_rs.EOF And (MM_size < 0 Or i < MM_offset + MM_size))
    MM_rs.MoveNext
    i = i + 1
  Wend

  ' if we walked off the end of the recordset, set MM_rsCount and MM_size
  If (MM_rs.EOF) Then
    MM_rsCount = i
    If (MM_size < 0 Or MM_size > MM_rsCount) Then MM_size = MM_rsCount
  End If

  ' if we walked off the end, set the offset based on page size
  If (MM_rs.EOF And Not MM_paramIsDefined) Then
    If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
      If ((MM_rsCount Mod MM_size) > 0) Then
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  ' reset the cursor to the beginning
  If (MM_rs.CursorType > 0) Then
    MM_rs.MoveFirst
  Else
    MM_rs.Requery
  End If

  ' move the cursor to the selected record
  i = 0
  While (Not MM_rs.EOF And i < MM_offset)
    MM_rs.MoveNext
    i = i + 1
  Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
rsrep_first = MM_offset + 1
rsrep_last  = MM_offset + MM_size
If (MM_rsCount <> -1) Then
  If (rsrep_first > MM_rsCount) Then rsrep_first = MM_rsCount
  If (rsrep_last > MM_rsCount) Then rsrep_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="
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)
%>
<html>
<head>
<title>浏览祈愿</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
BODY{
	scrollbar-face-color: #d4d0c8;
	scrollbar-highlight-color:#D4D0C8;
	scrollbar-shadow-color:#d6d6d6;
	scrollbar-3dlight-color:#e6e6e6;
	scrollbar-arrow-color:#006699;
	scrollbar-track-color:#dfdfdf;
	scrollbar-darkshadow-color: #808080;
	background-color: #EFF8FE;
}
#tipBox {
width: 160;BACKGROUND: #ffffff; BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black 1pt solid; BORDER-RIGHT: black 1pt solid; BORDER-TOP: black 1pt solid; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; POSITION: absolute; VISIBILITY: hidden; padding:2 ;Z-INDEX: 100
}
A:link {font-family:"Verdana",  "宋体"; COLOR: #000000;  font-size: 12px;  TEXT-DECORATION: none }
A:visited {font-family: "Verdana", "宋体";	COLOR: #000000; FONT-SIZE:12px; TEXT-DECORATION: none }
A:active {font-family: "Verdana", "宋体"; COLOR: #000099; FONT-SIZE: 12px; TEXT-DECORATION: none }
A:hover {font-family: "Verdana", "宋体"; COLOR: #dd0000; FONT-SIZE: 12px; TEXT-DECORATION: underline }
.smallTxt{FONT-SIZE: 12px; FONT-FAMILY: "Tahoma","Arial","sans-serif"}
.style3 {FONT-SIZE: 14px; FONT-FAMILY: "Tahoma","Arial","sans-serif"; }
-->
</style>
<SCRIPT language=javascript src="navigation.js" type=text/javascript></SCRIPT>
<script language="JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function YY_checkform() { //v4.66
//copyright (c)1998,2002 Yaromat.com
  var args = YY_checkform.arguments; var myDot=true; var myV=''; var myErr='';var addErr=false;var myReq;
  for (var i=1; i<args.length;i=i+4){
    if (args[i+1].charAt(0)=='#'){myReq=true; args[i+1]=args[i+1].substring(1);}else{myReq=false}
    var myObj = MM_findObj(args[i].replace(/\[\d+\]/ig,""));
    myV=myObj.value;
    if (myObj.type=='text'||myObj.type=='password'||myObj.type=='hidden'){
      if (myReq&&myObj.value.length==0){addErr=true}
      if ((myV.length>0)&&(args[i+2]==1)){ //fromto
        var myMa=args[i+1].split('_');if(isNaN(myV)||myV<myMa[0]/1||myV > myMa[1]/1){addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==2)){
          var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=true;
      } else if ((myV.length>0)&&(args[i+2]==3)){ // date
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);
        if(myAt){
          var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]];
          var myDate=new Date(myY,myM,myD);
          if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=myM){addErr=true};
        }else{addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==4)){ // time
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);if(!myAt){addErr=true}
      } else if (myV.length>0&&args[i+2]==5){ // check this 2
            var myObj1 = MM_findObj(args[i+1].replace(/\[\d+\]/ig,""));
            if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!myObj1.checked){addErr=true}
      } else if (myV.length>0&&args[i+2]==6){ // the same
            var myObj1 = MM_findObj(args[i+1]);
            if(myV!=myObj1.value){addErr=true}
      }
    } else
    if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){
          var myTest = args[i].match(/(.*)\[(\d+)\].*/i);
          var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj;
      if (args[i+2]==1&&myObj1&&myObj1.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
      if (args[i+2]==2){
        var myDot=false;
        for(var j=0;j<myObj.length;j++){myDot=myDot||myObj[j].checked}
        if(!myDot){myErr+='* ' +args[i+3]+'\n'}
      }
    } else if (myObj.type=='checkbox'){
      if(args[i+2]==1&&myObj.checked==false){addErr=true}
      if(args[i+2]==2&&myObj.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
    } else if (myObj.type=='select-one'||myObj.type=='select-multiple'){
      if(args[i+2]==1&&myObj.selectedIndex/1==0){addErr=true}
    }else if (myObj.type=='textarea'){
      if(myV.length<args[i+1]){addErr=true}
    }
    if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
  }
  if (myErr!=''){alert('★算命网★错误小提示:\t\t\t\t\t\n\n'+myErr)}
  document.MM_returnValue = (myErr=='');
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="742" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="742" align="center" valign="top"> 
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"  background="images/bg.gif">
        <tr> 
          <td width="47%" height="50"></td>
          <td width="53%" height="50"><a href="write.asp"><img src="images/wyqy.gif" border="0"></a></td>
        </tr>
		<tr> 
          <td colspan="2" height="60"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF9933">
        <tr> 
          <td bgcolor="#F7F3F7">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="30"><a href="index.asp"><span class="style3"><font color="#ff0000">返回</font></span></a><a href="index.asp"><span class="style3"><font color="#ff0000">祈愿板</font></span></a></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="style3">
              <tr> 
                <td height="30" align="center"><img src="images/picture.gif" width="38" height="22" align="absmiddle"><font color="#FF9933">回复 <%="<font color=#336699>"&(rswish.Fields.Item("wish_poster").Value)&"</font>"%> 的心愿</font></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#dddddd" align="center">
        <tr> 
          <td align="center" valign="middle" bgcolor="#f3f3f3">
		  <table width="225" height="194"  border="0" cellspacing="0" cellpadding="0" background="images/<%=rswish.Fields.Item("wish_type")%>.gif">
  <tr>
    <td width="30"></td>
    <td></td>
    <td width="30"></td>
  </tr>
  <tr>
    <td width="30"></td>
    <td height="30"></td>
    <td width="30"></td>
  </tr>
  <tr>
    <td width="30"></td>
    <td align="center" valign="middle"><span class="smallTxt"><%="<font color=#eeeeee>"&repcontent(rswish.Fields.Item("wish_content"))&"</font>"%></span></td>
    <td width="30"></td>
  </tr>
  <tr>
    <td width="30"></td>
    <td></td>
    <td width="30"></td>
  </tr>
</table>
</td>
</tr>
<%if len(rswish.Fields.Item("wish_content")) > 50 then%>
        <tr>
          <td bgcolor="#f3f3f3" height="30"><span class="style3"><font color="#FF0000">更多内容:</font></span></td>
        </tr>
        <tr>
          <td width="100%" bgcolor="#f3f3f3"><br><span class="style3"><%="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&rep(rswish.Fields.Item("wish_content"))%></span><br><br></td>
        </tr>
<%end if%>
      </table>
<table width="60%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#DFDFDF" class="smallTxt">
        <form name="form1" method="POST" action="<%=MM_editAction%>">
          <tr bgcolor="#FF9933"> 
            <td height="25" colspan="2" align="center"><span class="style3">回复</span></td>
          </tr>
          <tr> 
            <td bgcolor="#F7F3F7" width="24%" height="23">我的名字-</td>
            <td bgcolor="#F7F3F7" width="76%"> 
              <input type="text" name="reply_poster" size="30" maxlength="20">
              <font color="#FF9A31"> * </font></td>
          </tr>
          <tr> 
            <td bgcolor="#F7F3F7" width="24%" height="23">我的<span class="fonten">QQ-</span></td>
            <td bgcolor="#F7F3F7" width="76%"> 
              <input type="text" name="reply_posterqq" size="20" maxlength="15">
            </td>
          </tr>
          <tr> 
            <td bgcolor="#F7F3F7" width="24%" class="fonten" height="23">E-Mail-</td>
            <td bgcolor="#F7F3F7" width="76%"> 
              <input type="text" name="reply_posteremail" size="30" maxlength="20">
            </td>
          </tr>
          <tr> 
            <td bgcolor="#F7F3F7" width="24%" height="23">主页地址-</td>
            <td bgcolor="#F7F3F7" width="76%"> 
              <input type="text" name="reply_posterhome" size="40" maxlength="30">
            </td>
          </tr>
          <tr> 
            <td bgcolor="#F7F3F7" width="24%" height="23" valign="top">要说的话-</td>
            <td bgcolor="#F7F3F7" width="76%"> 
              <textarea class="textfield" name="reply_content" cols="45" rows="6"></textarea>
              <font color="#FF9A31">* </font></td>
          </tr>
          <tr align="center"> 
            <td bgcolor="#F7F3F7" colspan="2" height="25"> 
              <input type="submit" name="Submit" value="送出回复" onClick="YY_checkform('form1','reply_poster','#q','0','佛祖还不知道你的名字呢？','reply_posterqq','1000_999999999999999','1','请输入正确的QQ号码！','reply_posteremail','S','2','E-mail好象有点错误哎！','reply_content','1','1','你许的愿呢？？？');return document.MM_returnValue"  style='cursor:hand;COLOR: #ff0000;'>
              <input type="reset" name="reset" value="重写回复">
              <input type="hidden" name="wish_id" value="<%=request.querystring("wish_id")%>">
            </td>
          </tr>
          <input type="hidden" name="MM_insert" value="true">
        </form>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td colspan="2"><img src="images/arrow.gif" width="15" height="20" align="absmiddle"> 
            <a href="New_rep.asp?wish_id=<%=request.querystring("wish_id")%>"><font color="#FF0000">写回复</font></a></td>
        </tr>
        <% 
While ((Repeat1__numRows <> 0) AND (NOT rsrep.EOF))
%>
        <tr> 
          <td background="images/dotline.gif" height="1" colspan="2"></td>
        </tr>
        <tr> 
          <td width="3%" valign="top"><img src="images/arrow.gif" width="15" height="20" align="absmiddle"></td>
          <td height="30" width="97%" bgcolor="#EFEFEF" class="style3">&nbsp;<%="<font color=#336699>"&(rsrep.Fields.Item("reply_poster").Value)&"</font>"%>&nbsp;写于&nbsp;<span class="fonten"><%=(rsrep.Fields.Item("reply_date").Value)%>&nbsp;&nbsp;&nbsp;</span><font color="#FF9933"><span class="fonten"><a href="http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<%=rsrep.Fields.Item("reply_posterqq")%>" target="_blank" title="<%=rsrep.Fields.Item("reply_poster")%>的QQ：<%=rsrep.Fields.Item("reply_posterqq")%>">QQ</a> 
            &nbsp;<a href="mailto:<%=rsrep.Fields.Item("reply_posteremail")%>" title="<%=rsrep.Fields.Item("reply_poster")%>的E-mail：<%=rsrep.Fields.Item("reply_posteremail")%>">E-mail</a> 
            &nbsp;<a href="<%=rsrep.Fields.Item("reply_posterhome")%>" target="_blank" title="<%=rsrep.Fields.Item("reply_poster")%>的主页：<%=rsrep.Fields.Item("reply_posterhome")%>">Home</a></span></font> 
            <br>
          </td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td class="style3"><br><font color="#336699"><%=rep(rsrep.Fields.Item("reply_content").Value)%></font><br><br>
          </td>
        </tr>
        <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsrep.MoveNext()
Wend
%>
        <% If rsrep.EOF And rsrep.BOF Then %>
        <tr> 
          <td background="images/dotline.gif" height="1" colspan="2"></td>
        </tr>
        <tr> 
          <td colspan="2" align="center" valign="middle"><span class="style3"><font color="#006699">还没有人回复！</font></span></td>
        </tr>
        <% End If ' end rsrep.EOF And rsrep.BOF %>
        <tr align="right"> 
          <td colspan="2">&nbsp; 
            <table border="0" width="40%">
              <tr> 
                <td width="23%" align="center"> 
                  <% If MM_offset <> 0 Then %>
                  <a href="<%=MM_moveFirst%>"><font color="#ff6600">首页</font></a> 
                  <% End If ' end MM_offset <> 0 %>
                </td>
                <td width="31%" align="center"> 
                  <% If MM_offset <> 0 Then %>
                  <a href="<%=MM_movePrev%>"><font color="#ff6600">前一页</font></a> 
                  <% End If ' end MM_offset <> 0 %>
                </td>
                <td width="23%" align="center"> 
                  <% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveNext%>"><font color="#ff6600">后一页</font></a> 
                  <% End If ' end Not MM_atTotal %>
                </td>
                <td width="23%" align="center"> 
                  <% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveLast%>"><font color="#ff6600">末页</font></a> 
                  <% End If ' end Not MM_atTotal %>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td colspan="2" background="images/dotline.gif" height="1"></td>
        </tr>
        <tr> 
          <td colspan="2" align="center" height="50"><span class="smallTxt"><font color="#FF0000">真诚祈愿板</font> v1.0 beta by<font color="#CC6600"> 便民网-www.99fad.cn</font></span></td>
        </tr>		
      </table>
    </td>
  </tr>
  <tr> 
    <td width="100%" bgcolor="#F7F3F7" align="right"> 
      <!--#include file="copyright.asp" -->
    </td>
  </tr>
</table>
</body>
</html>
<%
rswish.Close()
%>
<%
rsrep.Close()
%>
<%
else
 response.redirect "error.asp?errmsg=非法的URL参数!"
end if
%>