<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/const.asp"-->
<%
if MemberName="" then
  response.Redirect("userlogin.asp")
  response.end
end if


if request("ed")="zh" then

sql="select top 1 * from zh where uid="&int(userid)
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3

rs("xm")=trim(request("xm"))
rs("xb")=trim(request("xb"))
rs("csny")=trim(request("csny"))
rs("mz")=trim(request("mz"))
rs("sfz")=trim(request("sfz"))
rs("xl")=trim(request("xl"))
rs("sg")=trim(request("sg"))
rs("tz")=trim(request("tz"))
rs("dw")=trim(request("dw"))
rs("sr")=trim(request("sr"))
rs("zf")=trim(request("zf"))
rs("jg")=trim(request("jg"))
rs("hy")=trim(request("hy"))
rs("cy")=trim(request("cy"))
rs("lx")=trim(request("lx"))
rs("xg")=trim(request("xg"))
rs("dnl")=trim(request("dnl"))
rs("dhy")=trim(request("dhy"))
rs("dmz")=trim(request("dmz"))
rs("dsg")=trim(request("dsg"))
rs("dxl")=trim(request("dxl"))
rs("ddw")=trim(request("ddw"))
rs("dsr")=trim(request("dsr"))
rs("dzf")=trim(request("dzf"))
rs("dzz")=trim(request("dzz"))
rs("dxg")=trim(request("dxg"))

rs.update

rs.close
set rs=nothing
response.Write("<script language='javascript'>alert('修改成功，现在返回');window.location.reload('zh.asp')</script>")
response.End()
end if



if request("ad")="zh" then

sql="select top 1 * from zh"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs.addnew
rs("uid")=UserID
rs("xm")=trim(request("xm"))
rs("xb")=trim(request("xb"))
rs("csny")=trim(request("csny"))
rs("mz")=trim(request("mz"))
rs("sfz")=trim(request("sfz"))
rs("xl")=trim(request("xl"))
rs("sg")=trim(request("sg"))
rs("tz")=trim(request("tz"))
rs("dw")=trim(request("dw"))
rs("sr")=trim(request("sr"))
rs("zf")=trim(request("zf"))
rs("jg")=trim(request("jg"))
rs("hy")=trim(request("hy"))
rs("cy")=trim(request("cy"))
rs("lx")=trim(request("lx"))
rs("xg")=trim(request("xg"))
rs("dnl")=trim(request("dnl"))
rs("dhy")=trim(request("dhy"))
rs("dmz")=trim(request("dmz"))
rs("dsg")=trim(request("dsg"))
rs("dxl")=trim(request("dxl"))
rs("ddw")=trim(request("ddw"))
rs("dsr")=trim(request("dsr"))
rs("dzf")=trim(request("dzf"))
rs("dzz")=trim(request("dzz"))
rs("dxg")=trim(request("dxg"))



rs.update

rs.close
set rs=nothing
response.Write("<script language='javascript'>alert('提交成功，现在返回');window.location.reload('zh.asp')</script>")
response.End()
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
-->
</style>
 <script language="JavaScript">
 function check()
  {
  
if(document.addform.xm.value=="" )
    {
	 alert("请输入姓名！");
	 document.addform.xm.focus();
	 return false;
	}
	
	   if(document.addform.xb.value=="" )
    {
	 alert("请输入性别！");
	 document.addform.xb.focus();
	 return false;
	}
	
 if(document.addform.csny.value=="")
    {
	 alert("请输入出生年月！");
	 document.addform.csny.focus();
	 return false;
	}

 if(document.addform.mz.value=="")
    {
	 alert("请填写民族！");
	 document.addform.mz.focus();
	 return false;
	}

  
 if(document.addform.sfz.value=="")
    {
	 alert("请填写身份证号！");
	 document.addform.sfz.focus();
	 return false;
	}

 if(document.addform.xl.value=="")
    {
	 alert("请填写学历！");
	 document.addform.xl.focus();
	 return false;
	}


 if(document.addform.sg.value=="")
    {
	 alert("请填写身高！");
	 document.addform.sg.focus();
	 return false;
	}


 if(document.addform.tz.value=="")
    {
	 alert("请填写体重！");
	 document.addform.tz.focus();
	 return false;
	}


 if(document.addform.dw.value=="")
    {
	 alert("请填写工作单位！");
	 document.addform.dw.focus();
	 return false;
	}


 if(document.addform.sr.value=="")
    {
	 alert("请填写月收入！");
	 document.addform.sr.focus();
	 return false;
	}


 if(document.addform.zf.value=="")
    {
	 alert("请填写住房情况！");
	 document.addform.zf.focus();
	 return false;
	}



 if(document.addform.jg.value=="")
    {
	 alert("请填写籍贯！");
	 document.addform.jg.focus();
	 return false;
	}


 if(document.addform.hy.value=="")
    {
	 alert("请填写婚姻状况！");
	 document.addform.hy.focus();
	 return false;
	}


 if(document.addform.cy.value=="")
    {
	 alert("请填写家庭成员情况！");
	 document.addform.cy.focus();
	 return false;
	}

 if(document.addform.lx.value=="")
    {
	 alert("请填写联系方式！");
	 document.addform.lx.focus();
	 return false;
	}

 if(document.addform.xg.value=="")
    {
	 alert("请填写性格情况！");
	 document.addform.xg.focus();
	 return false;
	}

 if(document.addform.dnl.value=="")
    {
	 alert("请填写对方年龄要求！");
	 document.addform.dnl.focus();
	 return false;
	}

 if(document.addform.dmz.value=="")
    {
	 alert("请填写对方民族要求！");
	 document.addform.dmz.focus();
	 return false;
	}

 if(document.addform.dsg.value=="")
    {
	 alert("请填写对方身高要求！");
	 document.addform.dsg.focus();
	 return false;
	}
	 if(document.addform.dhy.value=="")
    {
	 alert("请填写对方婚姻要求！");
	 document.addform.dhy.focus();
	 return false;
	}
	
	 if(document.addform.dxl.value=="")
    {
	 alert("请填写对方学历要求！");
	 document.addform.dxl.focus();
	 return false;
	}
 if(document.addform.ddw.value=="")
    {
	 alert("请填写对方工作单位要求！");
	 document.addform.ddw.focus();
	 return false;
	}
 if(document.addform.dsr.value=="")
    {
	 alert("请填写对方收入要求要求！");
	 document.addform.dsr.focus();
	 return false;
	}
 if(document.addform.dzf.value=="")
    {
	 alert("请填写对方住房要求！");
	 document.addform.dzf.focus();
	 return false;
	}

 if(document.addform.dzz.value=="")
    {
	 alert("请填写对方住址要求！");
	 document.addform.dzz.focus();
	 return false;
	}
 if(document.addform.dxg.value=="")
    {
	 alert("请填写对方性格要求！");
	 document.addform.dxg.focus();
	 return false;
	}


	return true;
  }	
  
  
</script>

</head>
<body>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="204" height="328" valign="top"><!--#include file="memberleft.asp"--></td>
    <td width="583" valign="top">
	<table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
              <TBODY>
                <TR>
                  <TD width="2%" align=left background="image/tiao_4.gif"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                  <TD height="20" align=center background="image/tiao_4.gif"><table width="97%" border="0" cellpadding="0" cellspacing="3" class="STYLE4">
                    <tr>
                      <td width="77%"><span class="pgd">我要征婚</span></td>
                      <td width="23%" align="right"><div align="center"><a href="addtbjy.asp" class="style895"></a> </div></td>
                      </tr>
                  </table></TD>
                  <TD width="2%" align="center" background="image/tiao_4.gif"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                </TR>
              </TBODY>
          </TABLE></td>
        </tr>
        <tr>
          <td height="439" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><br>
              
			  
			  
			  <%set rs=conn.execute("select top 1 * from zh where uid="&userid&" ")
			  if  rs.eof then%>
			  
			  <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="184" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="3">
                    <tr>
                      <td colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;本版为了严肃征婚版，请认真填写个人资料，提交之后于一周内带上相关证件（身份证、单身证明、学历证及各种资格证等）到济源人民广播电台（爱情对对碰）节目进行审核，方可在网站征婚中心显示，如有应征者，我们将及时与你联系。</td>
                    </tr>
                  <form name="addform" method="post" action="">  <tr>
                      <td colspan="4" bgcolor="#f0f0f0"><div align="center" class="STYLE1"><strong>基本资料</strong></div></td>
                    </tr>
                    <tr>
                      <td><div align="center">姓&nbsp;&nbsp;&nbsp;&nbsp;名：</div></td>
                      <td>
                        <label>
                          <input name="xm" type="text" class="st" id="xm" size="20">
                          </label>                      </td>
                      <td><div align="center">性&nbsp;&nbsp;&nbsp;&nbsp;别：</div></td>
                      <td>
                     
                        <select name="xb">
                          <option value="男">男</option>
                          <option value="女">女</option>
                        </select>
                      </td>
                    </tr>
                    <tr>
                      <td><div align="center">出生日期：</div></td>
                      <td><input name="csny" type="text" class="st" id="csny" size="10">
                        如：2008-6-6</td>
                      <td><div align="center">民&nbsp;&nbsp;&nbsp;&nbsp;族：</div></td>
                      <td><input name="mz" type="text" class="st" id="mz" size="20"></td>
                    </tr>
                    
                    <tr>
                      <td><div align="center">身份证号： </div></td>
                      <td><input name="sfz" type="text" class="st" id="sfz" size="20"></td>
                      <td><div align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历：</div></td>
                      <td><input name="xl" type="text" class="st" id="xl" size="20"></td>
                    </tr>
                    <tr>
                      <td><div align="center">身&nbsp;&nbsp;&nbsp;&nbsp;高：</div></td>
                      <td><input name="sg" type="text" class="st" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)"  id="sg" size="10">
                        CM</td>
                      <td><div align="center">体&nbsp;&nbsp;&nbsp;&nbsp;重：</div></td>
                      <td><input name="tz" type="text" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)"  class="st" id="tz" size="10">
                        KG</td>
                    </tr>
                    <tr>
                      <td><div align="center">工作单位：</div></td>
                      <td><input name="dw" type="text" class="st" id="dw" size="20"></td>
                      <td><div align="center">月&nbsp;收&nbsp;入：</div></td>
                      <td><input name="sr" type="text" class="st" id="sr" size="20"></td>
                    </tr>
                    <tr>
                      <td><div align="center">住房情况：</div></td>
                      <td><input name="zf" type="text" class="st" id="zf" size="20"></td>
                      <td><div align="center">籍&nbsp;&nbsp;&nbsp;&nbsp;贯：</div></td>
                      <td><input name="jg" type="text" class="st" id="jg" size="20"></td>
                    </tr>
             
                    <tr>
                      <td><div align="center">婚姻状况：</div></td>
                      <td><input name="hy" type="text" class="st" id="hy" size="20"></td>
                      <td><div align="center">家庭成员：</div></td>
                      <td><input name="cy" type="text" class="st" id="cy" size="20"></td>
                    </tr>
					
					  
					       <tr>
                      <td><div align="center">联系方式：</div></td>
                      <td><input name="lx" type="text" class="st" id="lx" value="手机：" size="20"></td>
                      <td><div align="center">性格爱好：</div></td>
                      <td><input name="xg" type="text" class="st" id="xg" size="20"></td>
                    </tr>
					
					       <tr>
					         <td colspan="4" bgcolor="#f0f0f0"><div align="center" class="STYLE1"><strong>征婚要求：</strong></div></td>
		            </tr>
					       <tr>
					         <td><div align="center">年&nbsp;&nbsp;&nbsp;&nbsp;龄：</div></td>
					         <td><input name="dnl" type="text"  class="st" id="dnl" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="20~30" size="10">
				             周岁</td>
					         <td><div align="center">民&nbsp;&nbsp;&nbsp;&nbsp;族：</div></td>
					         <td><input name="dmz" type="text" class="st" id="dmz" value="无" size="20"></td>
		            </tr>
				           <tr>
				             <td><div align="center">身&nbsp;&nbsp;&nbsp;&nbsp;高：</div></td>
				             <td><input name="dsg" type="text"  class="st" id="dsg" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="155~170" size="10">
			                 CM</td>
				             <td><div align="center">婚姻状况：</div></td>
				             <td><input name="dhy" type="text" class="st" id="dhy" value="无" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历：</div></td>
				             <td><input name="dxl" type="text" class="st" id="dxl" value="无" size="20"></td>
				             <td><div align="center">工作单位：</div></td>
				             <td><input name="ddw" type="text" class="st" id="ddw" value="无" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">月&nbsp;收&nbsp;入：</div></td>
				             <td><input name="dsr" type="text" class="st" id="dsr" value="无" size="20"></td>
				             <td><div align="center">住房要求：</div></td>
				             <td><input name="dzf" type="text" class="st" id="dzf" value="无" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">住&nbsp;&nbsp;&nbsp;&nbsp;址：</div></td>
				             <td><input name="dzz" type="text" class="st" id="dzz" value="无" size="20"></td>
				             <td><div align="center">性格类型：</div></td>
				             <td><input name="dxg" type="text" class="st" id="dxg" value="无" size="20"></td>
	                </tr>
			             <tr>
					         <td colspan="4"><label>
					           <div align="center">
					             <input name="ad" type="hidden" id="ad" value="zh">
					             <input name="Submit"  onClick="return check();"  type="submit" class="st" value="提交征婚信息">
				               </div>
					         </label></td>
			          </tr>
					     </form>
                  </table></td>
                </tr>
            </table>
			
			<%else%>
			
              <table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="184" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="3">
                    <tr>
                      <td height="35" colspan="4"><div align="center"><strong>如果你的资料通过审核后，将被管理员锁定，你不能修改资料</strong></div></td>
                    </tr>
                  <form name="addform" method="post" action="">  <tr>
                      <td colspan="4" bgcolor="#f0f0f0"><div align="center" class="STYLE1"><strong>基本资料</strong></div></td>
                    </tr>
                    <tr>
                      <td><div align="center">姓&nbsp;&nbsp;&nbsp;&nbsp;名：</div></td>
                      <td>
                        <label>
                          <input name="xm" type="text" class="st" id="xm" value="<%=rs("xm")%>" size="20">
                          </label>                      </td>
                      <td><div align="center">性&nbsp;&nbsp;&nbsp;&nbsp;别：</div></td>
                      <td><select name="select">
                        <option value="男" <%if rs("xb")="男" then%> selected="selected"<%end if%>>男</option>
                        <option value="女" <%if rs("xb")="女" then%> selected="selected"<%end if%>>女</option>
                      </select></td>
                    </tr>
                    <tr>
                      <td><div align="center">出生日期：</div></td>
                      <td><input name="csny" type="text" class="st" id="csny" value="<%=rs("csny")%>" size="10"></td>
                      <td><div align="center">民&nbsp;&nbsp;&nbsp;&nbsp;族：</div></td>
                      <td><input name="mz" type="text" class="st" id="mz" value="<%=rs("mz")%>" size="20"></td>
                    </tr>
                    
                    <tr>
                      <td><div align="center">身份证号： </div></td>
                      <td><input name="sfz" type="text" class="st" id="sfz" value="<%=rs("sfz")%>" size="20"></td>
                      <td><div align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历：</div></td>
                      <td><input name="xl" type="text" class="st" id="xl" value="<%=rs("xl")%>" size="20"></td>
                    </tr>
                    <tr>
                      <td><div align="center">身&nbsp;&nbsp;&nbsp;&nbsp;高：</div></td>
                      <td><input name="sg" type="text" class="st"  id="sg" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="<%=rs("sg")%>" size="10">
                        CM</td>
                      <td><div align="center">体&nbsp;&nbsp;&nbsp;&nbsp;重：</div></td>
                      <td><input name="tz" type="text"  class="st" id="tz" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="<%=rs("tz")%>" size="10">
                        KG</td>
                    </tr>
                    <tr>
                      <td><div align="center">工作单位：</div></td>
                      <td><input name="dw" type="text" class="st" id="dw" value="<%=rs("dw")%>" size="20"></td>
                      <td><div align="center">月&nbsp;收&nbsp;入：</div></td>
                      <td><input name="sr" type="text" class="st" id="sr" value="<%=rs("sr")%>" size="20"></td>
                    </tr>
                    <tr>
                      <td><div align="center">住房情况：</div></td>
                      <td><input name="zf" type="text" class="st" id="zf" value="<%=rs("zf")%>" size="20"></td>
                      <td><div align="center">籍&nbsp;&nbsp;&nbsp;&nbsp;贯：</div></td>
                      <td><input name="jg" type="text" class="st" id="jg" value="<%=rs("jg")%>" size="20"></td>
                    </tr>
             
                    <tr>
                      <td><div align="center">婚姻状况：</div></td>
                      <td><input name="hy" type="text" class="st" id="hy" value="<%=rs("hy")%>" size="20"></td>
                      <td><div align="center">家庭成员：</div></td>
                      <td><input name="cy" type="text" class="st" id="cy" value="<%=rs("cy")%>" size="20"></td>
                    </tr>
					
					  
					       <tr>
                      <td><div align="center">联系方式：</div></td>
                      <td><input name="lx" type="text" class="st" id="lx" value="<%=rs("lx")%>" size="20"></td>
                      <td><div align="center">性格爱好：</div></td>

                      <td><input name="xg" type="text" class="st" id="xg" value="<%=rs("xg")%>" size="20"></td>
                    </tr>
					
					       <tr>
					         <td colspan="4" bgcolor="#f0f0f0"><div align="center" class="STYLE1"><strong>征婚要求：</strong></div></td>
		            </tr>
					       <tr>
					         <td><div align="center">年&nbsp;&nbsp;&nbsp;&nbsp;龄：</div></td>
					         <td><input name="dnl" type="text"  class="st" id="dnl" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="<%=rs("dnl")%>" size="10">
				             周岁</td>
					         <td><div align="center">民&nbsp;&nbsp;&nbsp;&nbsp;族：</div></td>
					         <td><input name="dmz" type="text" class="st" id="dmz" value="<%=rs("dmz")%>" size="20"></td>
		            </tr>
				           <tr>
				             <td><div align="center">身&nbsp;&nbsp;&nbsp;&nbsp;高：</div></td>
				             <td><input name="dsg" type="text"  class="st" id="dsg" onKeyPress="return(event.keyCode>=48&&event.keyCode<=57)" value="<%=rs("dsg")%>" size="10">
			                 CM</td>
				             <td><div align="center">婚姻状况：</div></td>
				             <td><input name="dhy" type="text" class="st" id="dhy" value="<%=rs("dhy")%>" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历：</div></td>
				             <td><input name="dxl" type="text" class="st" id="dxl" value="<%=rs("dxl")%>" size="20"></td>
				             <td><div align="center">工作单位：</div></td>
				             <td><input name="ddw" type="text" class="st" id="ddw" value="<%=rs("ddw")%>" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">月&nbsp;收&nbsp;入：</div></td>
				             <td><input name="dsr" type="text" class="st" id="dsr" value="<%=rs("dsr")%>" size="20"></td>
				             <td><div align="center">住房要求：</div></td>
				             <td><input name="dzf" type="text" class="st" id="dzf" value="<%=rs("dzf")%>" size="20"></td>
	                </tr>
				           <tr>
				             <td><div align="center">住&nbsp;&nbsp;&nbsp;&nbsp;址：</div></td>
				             <td><input name="dzz" type="text" class="st" id="dzz" value="<%=rs("dzz")%>" size="20"></td>
				             <td><div align="center">性格类型：</div></td>
				             <td><input name="dxg" type="text" class="st" id="dxg" value="<%=rs("dxg")%>" size="20"></td>
	                </tr>
			            <%if rs("sd")=0 then%>
						 <tr>
					         <td colspan="4"><label>
					           <div align="center">
					             <input name="ed" type="hidden" id="ad" value="zh">
					             <input name="Submit"  onClick="return check();"  type="submit" class="st" value="修改征婚信息">
				               </div>
					         </label></td>
			          </tr>
					  <%end if%>
					     </form>
                  </table>
				  
			
				  
				  
				  
				  
				  </td>
                </tr>
              </table>	  <%end if%></td>
    <td width="163" valign="top"><!--#include file="fenlei.asp"--></td>
  </tr>
</table>

  </td>
                </tr>
            </table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
<%
 conn.close
 set conn=nothing
%>
