<!--#include file="setup.asp"-->
<!--#include file="hunconn.asp"-->
<%

top
%>
<HTML><HEAD><TITLE>结婚殿堂</TITLE>
<table border=0 width=97% align=center cellspacing=1 cellpadding=4 class=a2>
<tr class=a3><td height=25>&nbsp;<img src=images/Forum_nav.gif>&nbsp;<%ClubTree%> → <a href=hunindex.asp>结婚殿堂</a>
</td></tr></table><br>
<SCRIPT>valigntop()</SCRIPT>
<table cellspacing="1" cellpadding="4" width="730" align="center" border="0" class="a1">
<tr><td align="middle" ><a href=hunqiuhun.asp>求婚中心</a></td><td align="middle" ><a href=hunyuelao.asp>月下老人</a></td><td align="middle" ><a href=hunfa.asp>婚姻法</a></td><td align="middle" ><a href=hundeng.asp>结婚登记</a></td><td align="middle" ><a href=hunjiehun.asp>精彩酒店</a></td></tr></table>

<%

if Request.Cookies("username")=empty then error2("请登录后再进行操作！")
id=request("id")
membername=request.cookies("username")
if id="" then error2("你要参加哪对新人的婚礼啊？")
set rs1=server.createobject("adodb.recordset") 
rs1.open"select * from [jie] where datediff('d',year,now())>=0 and datediff('d',year,now())<=long and id="&id&"",connj,1,1
if rs1.bof then error("<li>暂时没有人在结婚，过会再来看看")
%>
<SCRIPT language=JavaScript>
function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
	if (init==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
		{
			document.MM_pgW=innerWidth; 
			document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage; 
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) 
	location.reload();
}
MM_reloadPage(true);

function fucCheckNUM(NUM)
	{
		var i,j,strTemp;
		strTemp="0123456789";
		if ( NUM.length== 0)
			return 0
		for (i=0;i<NUM.length;i++)
		{
			j=strTemp.indexOf(NUM.charAt(i));	
			if (j==-1)
			{
			//说明有字符不是数字
				return 0;
			}
		}
		//说明是数字
		return 1;
	}
	function check()
	{
		if(document.formMain.txt_iMoney.value=="")
		{
			alert("请填写礼金！");
			document.formMain.txt_iMoney.focus();
			return;
		}
		if(document.formMain.liuyan.value=="")
		{
			alert("请填写祝福！");
			document.formMain.liuyan.focus();
			return;
		}
		if(fucCheckNUM(document.formMain.txt_iMoney.value)==0)
		{
			alert("礼金必须整数！");
			document.formMain.txt_iMoney.focus();
			return;
		}
		if(document.formMain.txt_iMoney.value<99 || document.formMain.txt_iMoney.value>10000)
		{
			alert("礼金必须在99-10000之间！");
			document.formMain.txt_iMoney.focus();
			return;
		}
		var iMoney=document.formMain.txt_iMoney.value;
		var liuyan=document.formMain.liuyan.value;
		var who=document.formMain.who.selectedIndex;
		var iMarriageId=document.formMain.iMarriageId.value;
		var url="hunmoney.asp?iMoney="+iMoney+"&who="+who+"&Id="+iMarriageId+"&liuyan="+liuyan;
		window.open(url, "_self");		
	}
</SCRIPT>
<html>
<head>

<TABLE cellSpacing=0 align=center cellPadding=0 width=730 bgColor=#f66235 border=0>
  <TBODY>
  <TR>
    <TD align=middle width=388 bgColor=#d70000 height=50><IMG height=50 
      src="dajiudian/fireworks.gif" width=381 border=0> </TD>
    <TD width=8 bgColor=#d70000>　</TD>
    <TD class=ct-def3 align=right width=364 bgColor=#d70000><BR>
    </TD>
  </TR>
  <TR>
    <TD background=dajiudian/index_02.gif><IMG height=9 
      src="dajiudian/empty.gif" width=1></TD>
    <TD background=dajiudian/index_02.gif><IMG height=9 
      src="dajiudian/empty.gif" width=1></TD>
    <TD background=dajiudian/index_02.gif><IMG height=9 
      src="dajiudian/empty.gif" width=1></TD>
  </TR>
  <TR>
    <TD>
      <TABLE height=0 align=center cellSpacing=0 cellPadding=0 width=388>
        <TBODY>
        <TR>
          <TD><IMG height=282 src="dajiudian/table9.gif" width=300></TD>
          <TD vAlign=top bgColor=#f6edd3><IMG 
            src="dajiudian/windowborder.gif" 
      width=88></TD>
        </TR></TBODY></TABLE></TD>
    <TD width=8 background=dajiudian/index_03.gif><IMG height=1 
      src="dajiudian/empty.gif" width=8></TD>
    <TD vAlign=bottom bgColor=#f6edd3>
      <TABLE class=ct-def2 align=center cellSpacing=0 cellPadding=0 width=364 border=0>
        <TBODY>
        <TR>
          <TD vAlign=center align=middle width=205>爱的宣言<BR>
            <TABLE class=ct-def2 width=120 valign="middle">
              <TBODY>
              <TR align=middle>
                <TD align=middle>
                  <MARQUEE class=e2 onmouseover=this.stop() 
                  onmouseout=this.start() scrollAmount=1 scrollDelay=60 
                  direction=up width=120 height=90></marquee>
                  <BR>
                  <CENTER><B><%=rs1("content")%></B></CENTER><BR></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=bottom><IMG height=112 src="dajiudian/empty.gif" 
            width=122 border=0> <BR>
            <BR><SPAN 
            class=ct-def3>新人：<a href=profile.asp?username=<%=rs1("username")%> target="_blank" title="查看<%=rs1("username")%>的资料"><font color=#ff0000><%=rs1("username")%></font></a><BR><BR>新人：<a href=profile.asp?username=<%=rs1("thename")%> target="_blank" title="查看<%=rs1("thename")%>的资料"><font color=#ff0000><%=rs1("thename")%></font></a></SPAN> <BR></TD></TR>
        <TR vAlign=bottom>
          <TD colSpan=2>&nbsp;&nbsp;<IMG height=55 
            src="dajiudian/ring8.gif" width=55 border=0> <FONT  
            color=#996633>白金钻戒</FONT>&nbsp;&nbsp;&nbsp;<IMG height=55  
            src="dajiudian/flower.gif" width=55 border=0> <FONT  
            color=#996633>手捧花束</FONT></TD> 
        </TR></TBODY></TABLE></TD></TR> 
  <TR> 
    <TD background=dajiudian/index_04.gif><IMG height=7  
      src="dajiudian/empty.gif" width=1></TD> 
    <TD background=dajiudian/index_04.gif><IMG height=7  
      src="dajiudian/empty.gif" width=1></TD> 
    <TD background=dajiudian/index_04.gif><IMG height=7  
      src="dajiudian/empty.gif" width=1></TD> 
  </TR> 
  <TR> 
    <TD  bgColor=#d70000 height=64 align=left colspan=3> 
      <TABLE cellSpacing=0 align=center cellPadding=0  bgColor=#f66235 border=0> 
        <TBODY> 
        <TR> 
          <TD width=26 bgColor=#d70000><IMG height=64  
            src="dajiudian/wedding.gif" width=28></TD> 
          <TD bgColor=#d70000 align=left> <FORM name=formMain  
            method=post><BR><font color="#FFFFFF">参加婚礼怎可空手而来，快快送上你对新人的一份祝福吧！&nbsp;&nbsp;<BR>送礼金：</font>  
                        <INPUT size=4 name=txt_iMoney>    &nbsp;<font color="#FFFFFF">社区币（99-10000）</font>&nbsp;送给<select name="who" size="1" id="who">
                  <option selected>双方</option>
                  <option><%=rs1("username")%> </option>
                  <option><%=rs1("thename")%> </option>
                  </select>
&nbsp;祝福：<INPUT size=35 name=liuyan><INPUT type=hidden value=<%=id%>
            name=iMarriageId>
              <font color="#FFFF00"> 
              
              <A href="javascript:check();"><IMG  
            src="dajiudian/guest_submit.gif" border=0></A>&nbsp;&nbsp;  
            </FORM></font></TD></TR></TBODY></TABLE> 
     
      
          </TR> 
   
  <TR> 
   <td colspan=3>参加婚礼的人员:<font color="#FFFF00"><%=rs1("renyuan")%><font></td> 
   </TR> 
  </TBODY></TABLE>

 
<DIV id=photo5  
style="Z-INDEX: 1; LEFT: 578px; WIDTH: 122px; POSITION: absolute; TOP: 222px; HEIGHT: 112px"><img  
height=113 src="dajiudian/bridehead4.gif" width=119 border=0></DIV> 
　<DIV id=decorate  
style="Z-INDEX: 1; LEFT: 406px; WIDTH: 52px; POSITION: absolute; TOP: 251px; HEIGHT: 83px"  
0><IMG height=83 src="dajiudian/boon.gif" width=52 boder="0"> </DIV> 
<DIV id=decorate  
style="Z-INDEX: 1; LEFT: 400px; WIDTH: 353px; POSITION: absolute; TOP: 250px; HEIGHT: 88px"  
1><IMG height=294 src="dajiudian/dot.gif" width=353 boder="0"> </DIV> 
 
 
</BODY></HTML> 
<SCRIPT>valignbottom()</SCRIPT>
<%
htmlend
%>
