<%@ Language=VBScript %>
<%'if Session("weight")=0 then 
'Response.Redirect "error.asp?cause=4"
' end if
%>
<html>
<head>
<!--#include file="const.asp" -->
<link rel="stylesheet" href="../css/default.css" type="text/css">
<!--#include file="top.asp" -->
<title><%=rs("title")%>---<%=rs("lovetitle")%></title>
<link rel="stylesheet" href="../images/css.css" type="text/css">
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><SCRIPT LANGUAGE=javascript>
//<!--
	function sss(URL)
	{
		newwin=window.open('','_blank','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		if(document.all){
		newwin.moveTo(200,40 )
		newwin.resizeTo(400,400 );
		}
		newwin.location=URL
		newwin.focus();
	}

	
//-->
</SCRIPT>
<object runat="server" id="conn1" progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<script language="JavaScript"> 
	var forbid_str=new String('@,email,e-mail,qq,icq,oicq,QQ,ICQ,OICQ,.com,.net,.COM,.NET')
	
	var forbid_array=new Array()
	forbid_array=forbid_str.split(',')
	
	function is_forbid(temp_str)
	{
	//var temp_str = new String(something);
	
	for(i=0;i<forbid_array.length;i++){
		if(temp_str.search(forbid_array[i])!=-1)
			return false;
		}
	return true;
	}
	//window.document.write()
	function isnumber(something){
		var temp_str = new String(something.value);
		if(isNaN(temp_str))
		{
			return false;
		}
		if(something.value < 0)       // 当输入值为负数时
		{
			return false;
		}
		return true;
	}
	function FrontPage_Form1_Validator(theForm) 
	{
	  var string;
	  string=new String(theForm.firstdate.value);
		 if(!is_forbid(string))
		  { alert("初恋的年龄中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.firstdate.focus();
		   return (false);
		  }
		string=new String(theForm.life.value);
		  if(string.length > 240)
		  {
		   alert("向往的生活长度超长了");
		   theForm.life.focus();
		   return (false);
		  }
		  if(!is_forbid(string))
		  { alert("向往的生活中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.life.focus();
		   return (false);
		  }
		  	string=new String(theForm.meet.value);
		  if(string.length > 240)
		  {
		   alert("最喜欢的邂逅场景长度超长了");
		   theForm.meet.focus();
		   return (false);
		  }
		   if(!is_forbid(string))
		  { alert("最喜欢的邂逅场景中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.meet.focus();
		   return (false);
		  }
		  	string=new String(theForm.discomfiture.value);
		  if(string.length > 240)
		  {
		   alert("你最尴尬的事长度超长了");
		   theForm.discomfiture.focus();
		   return (false);
		  }
		   if(!is_forbid(string))
		  { alert("你最尴尬的事中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.discomfiture.focus();
		   return (false);
		  }
		  	string=new String(theForm.memory.value);
		  if(string.length > 240)
		  {
		   alert("你最难忘的事长度超长了");
		   theForm.memory.focus();
		   return (false);
		  }
		   if(!is_forbid(string))
		  { alert("你最难忘的事中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.memory.focus();
		   return (false);
		  }
		  	string=new String(theForm.parentapp.value);
		  if(string.length > 240)
		  {
		   alert("父母对我的评价长度超长了");
		   theForm.parentapp.focus();
		   return (false);
		  }
		   if(!is_forbid(string))
		  { alert("父母对我的评价包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.parentapp.focus();
		   return (false);
		  }
			 	string=new String(theForm.friendapp.value);
		  if(string.length > 250)
		  {
		   alert("朋友们对我的评价长度超长了");
		   theForm.friendapp.focus();
		   return (false);
		  }
	   if(!is_forbid(string))
		  { alert("朋友们对我的评价中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串");
		   theForm.friendapp.focus();
		   return (false);
		  }
	  if (theForm.selfintro.value.length < 1)
		{ alert("请填写你的自我介绍");
		  theForm.selfintro.focus();
		  return (false);
		}
	  else
		{
		  string=new String(theForm.selfintro.value);
		  if(string.length > 250)
		  {
		   alert("自我介绍长度超长了");
		   theForm.selfintro.focus();
		   return (false);
		  }
		 if(!is_forbid(string))
		  { alert("自我介绍中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串!");
		   theForm.selfintro.focus();
		   return (false);
		  }
		}
	  
	  if (theForm.objectdes.value.length < 1)
		{ 
		  alert("请填写你的觅友倾向");
		  theForm.objectdes.focus();
		  return (false);
		}
	  else
		{
		  string=new String(theForm.objectdes.value);
		  if(string.length > 250)
		  {
		   alert("觅友倾向长度超过限定长度");
		   theForm.objectdes.focus();
		   return (false);
		  }
		   if(!is_forbid(string))
		  { alert("觅友倾向中包含@,email,e-mail,QQ,ICQ,OICQ,.com,.net等非法字符串!");
		   theForm.objectdes.focus();
		   return (false);
		  }
		} 

	}
	</script>

<% 
 set rs=server.CreateObject ("ADODB.recordset")
  sql="select * from user_info where user_name='"&session("Current_user")&"'"
  'sql="select * from user_info where user_name='jjd'"
   rs.Open sql,conn1,3,2
   if rs.RecordCount<>0 then
	firstdate=rs("firstdate")
	life=rs("life")
	meet=rs("meet")
	discomfiture=rs("discomfiture")
	memory=rs("memory")
	parentapp=rs("parentapp")
	friendapp=rs("friendapp")
	selfintro=rs("selfintro")
	objectdes=rs("objectdes")
   end if  
  
%>
<table align="center" cellpadding="0" cellspacing="0" width="770">
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="92" valign="top"> 
      <table id="Table_01" width="150" height="192" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td rowspan="3"> <img src="../image/love_image/images/left_top_01.gif" width="6" height="192" alt=""></td>
          <td> <img src="../image/love_image/images/left_top_02.gif" width="164" height="7" alt=""></td>
          <td rowspan="3"> <img src="../image/love_image/images/left_top_03.gif" width="7" height="192" alt=""></td>
        </tr>
        <tr> 
          <td background="../image/love_image/images/left_top_04.gif" width="164" height="23"> 
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="16%" align="center"> 
                  <div align="center"><b> 
                    <%set rs_t=server.CreateObject ("ADODB.recordset")
  
   sql="select * from user where user_name='"&session("Current_user")&"'"
   rs_t.Open sql,conn1,3,2
  if rs_t.RecordCount<>0 then
   nickname=rs_t("nickname")
   sex=rs_t("sex")
   
   if rs_t("weight")=1 then
	 user_type="普通会员"
	else
		 user_type="VIP会员"
	end if 
end if	
	set rs_online=server.CreateObject ("ADODB.recordset")
  
   sql="select count(*) as online_num from online"
   rs_online.Open sql,conn1,3,2
   
   online_num=rs_online("online_num")
  
  %>
                    <b></b><b><font color="#666666"> 
                    <%if rs_t("sex")="男" then 
response.write "<img src=../image/boy.gif width=14 height=10 border=0></a></div>"
else%>
                    <img src=../image/girl.gif width=14 height=10 border=0> 
                    <%end if%>
                    </font></b> </b></div>
                </td>
                <td width="84%"> 您好，<%=nickname%>！ 
                  <%
 set rs2=server.CreateObject ("ADODB.recordset")
 sql="select * from user where user_name='"&session("Current_user")&"'"
 rs2.Open sql,conn1,3
 charisma=rs2("charisma")
 if charisma<101 then
	rank="自由天使"
 elseif charisma>100 and charisma<301 then
	rank="梦幻天使"
 elseif charisma>300 and charisma<1001 then
	rank="星梦天使"
 elseif charisma>1000 and charisma<10001 then
	rank="寻梦天使"
 elseif charisma>100 and charisma<50001 then
	rank="追梦天使"
 elseif charisma>100 and charisma<150001 then
	rank="缘梦天使"
 elseif charisma>100 and charisma<500001 then
	rank="浪漫天使"
 elseif charisma>500000  then
	rank="守护天使"
end if
 %>
                  　 </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td background="../image/love_image/images/left_top_05.gif" width="164" height="162"> 
            <table border="0" height="2" cellspacing="0" cellpadding="2" width="98%" style="border-collapse: collapse" bordercolor="#111111" align="center">
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;会员类别：<font  color=red><%=user_type%></font></td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;天使级别：<font  color=red><%=rank%></font></td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;魅力积分：<font  color=red><%=charisma%></font>分</td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;上站次数：<font  color=red><%=rs2("counter")%></font>次</td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;档案浏览：<font  color=red><%=rs2("visited_counter")%></font>次</td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;入会日期：<font  color=red><%=formatdatetime(rs2("reg_date"),vblongdate)%></font></td>
              </tr>
              <tr> 
                <td height="16" >&nbsp;&nbsp;&nbsp;最新访问：<font  color=red><%=formatdatetime(rs2("last_time"),vblongdate)%></font></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <!--#include file="left.asp"-->
    </td>
    <td width="686"> 
      <table id="Table_01" width="602" height="401" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td colspan="11"> <img src="../image/love_image/images/aboutus_01.gif" width="601" height="5" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="5" alt=""></td>
        </tr>
        <tr> 
          <td> <img src="../image/love_image/images/aboutus_02.gif" width="18" height="27" alt=""></td>
          <td colspan="3"> <img src="../image/love_image/images/aboutus_03.gif" width="24" height="27" alt=""></td>
          <td> <img src="../image/love_image/images/aboutus_04.gif" width="58" height="27" alt=""></td>
          <td colspan="5" background="../image/love_image/images/aboutus_05.gif" height="27"> 
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
              <tr> 
                <td height=23 width="508"> <marquee direction=center onMouseOver="this.stop()" onMouseOut="this.start()" scrollamount="3"><%=Application("quick_note")%></marquee></td>
              </tr>
            </table>
          </td>
          <td> <img src="../image/love_image/images/aboutus_06.gif" width="12" height="27" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="27" alt=""></td>
        </tr>
        <tr> 
          <td colspan="11"> <img src="../image/love_image/images/aboutus_07.gif" width="601" height="11" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="11" alt=""></td>
        </tr>
        <tr> 
          <td colspan="6" rowspan="5"> <img src="../image/love_image/images/neixindubai_08.gif" width="186" height="148" alt=""></td>
          <td> <img src="../image/love_image/images/neixindubai_09.gif" width="36" height="46" alt=""></td>
          <td rowspan="2"> <img src="../image/love_image/images/neixindubai_10.gif" width="67" height="79" alt=""></td>
          <td rowspan="2"> <img src="../image/love_image/images/neixindubai_11.gif" width="159" height="79" alt=""></td>
          <td colspan="2"> <a href="my_notebook.asp"><img src="../image/love_image/images/aboutus_12.gif" width="153" height="46" alt="" border="0"></a></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="46" alt=""></td>
        </tr>
        <tr> 
          <td rowspan="4"> <img src="../image/love_image/images/neixindubai_13.gif" width="36" height="102" alt=""></td>
          <td colspan="2" rowspan="2"> <a href="friend_list.asp"><img src="../image/love_image/images/aboutus_14.gif" width="153" height="52" alt="" border="0"></a></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="33" alt=""></td>
        </tr>
        <tr> 
          <td colspan="2" rowspan="2"> <img src="../image/love_image/images/neixindubai_15.gif" width="226" height="55" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="19" alt=""></td>
        </tr>
        <tr> 
          <td colspan="2" rowspan="2"> <a href="join_vip.asp"><img src="../image/love_image/images/aboutus_16.gif" width="153" height="50" alt="" border="0"></a></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="36" alt=""></td>
        </tr>
        <tr> 
          <td colspan="2"> <img src="../image/love_image/images/neixindubai_17.gif" width="226" height="14" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="14" alt=""></td>
        </tr>
        <tr> 
          <td colspan="2"> <img src="../image/love_image/images/neixindubai_18.gif" width="32" height="32" alt=""></td>
          <td> <img src="../image/love_image/images/aboutus_19.gif" width="6" height="32" alt=""></td>
          <td colspan="8" background="../image/love_image/images/aboutus_20.gif" height="32"><font color="#009999">我的内心独白</font></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="32" alt=""></td>
        </tr>
        <tr> 
          <td colspan="11"> <img src="../image/love_image/images/aboutus_21.gif" width="601" height="14" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="14" alt=""></td>
        </tr>
        <tr> 
          <td colspan="11" background="../image/love_image/images/aboutus_22.gif" height="183" valign="top"> 
            <table class="border_yellow1" cellpadding="0" cellspacing="0" width="568" bordercolor="#FFFFFF" style="border-collapse: collapse" align="center">
              <tr> 
                <td width="568" height="2"> </td>
              </tr>
              <tr> 
                <td width="568" height="2"> 
                  <form name="theForm" action="update_my_heart.asp" method="post">
                    <table style="border-style:solid; border-color:#FFFFFF; border-collapse:collapse" border="0" cellpadding="3" cellspacing="0" width="568" bordercolor="#111111">
                      <tbody> 
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">初恋年龄</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <input name="firstdate" value="<%=firstdate%>" maxlength="20" size="20" class="input2">
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">向往的生活</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <input maxlength="200" size="60" name="life" value="<%=life%>" class="input2">
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">最喜欢的邂逅场景</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="meet" wrap="physical" cols="55" rows="3" class="input2"><%=meet%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">你最尴尬的事</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="discomfiture" cols="55" wrap="physical" rows="3" class="input2"><%=discomfiture%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">你最难忘的事</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="memory" cols="55" wrap="physical" rows="3" class="input2"><%=memory%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">父母对我的评价<br>
                          （限100字）</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="parentapp" wrap="physical" cols="55" rows="3" class="input2"><%=parentapp%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">朋友们对我的评价<br>
                          （限100字）</font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="friendapp" wrap="physical" cols="55" rows="3" class="input2"><%=friendapp%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">*自我介绍<br>
                          (限120字) </font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="selfintro" rows="3" wrap="physical" cols="55" class="input2"><%=selfintro%></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF"><font color="#009999"></font> 
                        </td>
                      </tr>
                      <tr> 
                        <td bgcolor="#FFFFFF"><font color="#009999">*觅友倾向<br>
                          (限120字) </font></td>
                        <td bgcolor="#FFFFFF"> 
                          <textarea name="objectdes" rows="3" wrap="physical" cols="55" class="input2"><%=objectdes%></textarea>
                        </td>
                      </tr>
                      </tbody> 
                    </table>
                    <table border="0" cellpadding="0" cellspacing="0" height="30" width="92%">
                      <tbody> 
                      <tr> 
                        <td align="center"> 
                          <input type="submit" value=" 更  新 " id="submit1" name="submit1" class="myinput1">
                        </td>
                      </tr>
                      </tbody> 
                    </table>
                  </form>
                </td>
              </tr>
            </table>
          </td>
          <td height="183"> <img src="../image/love_image/images/spacer.gif" width="1" height="147" alt=""></td>
        </tr>
        <tr> 
          <td colspan="11"> <img src="../image/love_image/images/aboutus_23.gif" width="601" height="16" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="1" height="16" alt=""></td>
        </tr>
        <tr> 
          <td> <img src="../image/love_image/images/spacer.gif" width="18" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="14" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="6" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="4" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="58" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="86" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="36" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="67" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="159" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="141" height="1" alt=""></td>
          <td> <img src="../image/love_image/images/spacer.gif" width="12" height="1" alt=""></td>
        </tr>
      </table>
    </td>
  </tr>
</table>



    
             <!--#include file="../copyright.asp" -->
  
</table>

</body>
</html>