<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->

<%
if request.QueryString("id")="" then
     response.redirect "error.asp?msg=没有此祈愿!"
else

Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from wish where id="&request.QueryString("id")
rs.open sql,conn,3,3
rs("counter")=rs("counter")+1
rs.update
%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<head>
<style type="text/css">
<!--
a {  text-decoration: none}  
a:hover {  text-decoration: underline} 
table {  font-size: 9pt}
body,table,p,td,input {  font-size: 9pt} 
-->
</style>
<title><%=rs("name")%> 的祈愿牌</title>
</head>
<body text="<%=textcolor%>" link="<%=linkcolor%>">
<br>
<br>
<form method="post" action="wish.asp">
  <div align="center">
  <center>    
  <div align="center">
  <center>
      <table border="1" cellspacing="1" width="400" bordercolor="<%=titlelightcolor%>" bgcolor="#FFFFFF">
        <tr>
            
          <td align="center" bgcolor="<%=titledarkcolor%>"><font color="<%=titlelightcolor%>"><%=title%></font></td>
        </tr>
        <tr>
            <td align="center" style=padding:20>
			<div align="center">
			<center>
			<table border="0" cellpadding="0" cellspacing="0" width="310">
                <tr>
                    <td align="right" valign="bottom"><img src="img/<%=rs("wishtype")%>/top.gif" width="300" height="50"></td>
                    <td>　</td>
                </tr>
                <tr>
                    <td align="center" bgcolor="#FFE8BC" style="padding:5" height="100"><blockquote><p align="left"><font color="#800040"><%=rs("info")%></font></p></blockquote>
                    <p align="right"><font color="#800040"><%=rs("name")%>&nbsp;<%=rs("sex")%>&nbsp;<%=rs("address")%></font> 
			<a href="mailto:<%=rs("email")%>"><img src="img/mail.gif" align="absmiddle" border="0" width="15" height="15"></a>
			
					</p>
                    </td>
                    <td valign="bottom" rowspan="2" width="10"><img src="img/edge.gif" width="10" height="100%"></td>
                </tr>
                <tr>
                    <td align="right" valign="top"><img src="img/base.gif" width="300" height="25"></td>
                </tr>
            </table>
            </center></div></td>
        </tr>
        <tr>
            <td align="center" bgcolor="<%=titledarkcolor%>"><font color=<%=titlelightcolor%>>但愿阁下祝福这位祈愿者...</font></td>
        </tr>
        <tr>
            <td align="center" height="25"><input
            type="submit" style="border:1 solid <%=titlelightcolor%>;color:<%=titlelightcolor%>;background-color:white" value="返回祈愿板"></td>
        </tr>
    </table>
    </center></div>
</form>
</body>
</html>
<%end if%>