<html>
<head>
<!--#include file="const.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><% 
   if request("submit")<>"下一步" then
   Response.Redirect ("../default.asp")
    end if
  %>
  <object runat=server id=conn1 progid="adodb.connection"></object>
<%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%>
<SCRIPT language=JavaScript>
function is_number(str)
{
	exp=/[^0-9()-]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
}
function is_email(str)
{ if((str.indexOf("@")==-1)||(str.indexOf(".")==-1)){
	
	return false;
	}
	return true;
}
function checkform(){
	if(!is_number(document.inputform.postcode.value)){
		alert("邮编必须用数字！");
		inputform.postcode.focus();
		return false;
	}
	if(!is_number(document.inputform.telephone.value)){
		alert("电话或手机必须用数字或(-)！");
		inputform.telephone.focus();
		return false;
	}
	if(inputform.name.value==''){
		alert("您没有填写姓名！");
		inputform.name.focus();
		return false;
	}
	if(inputform.email.value==''){
		alert("您没有填写E-mail！");
		inputform.email.focus();
		return false;
	}
	if(!is_email(inputform.email.value))
	{ alert("非法的EMail地址！");
		inputform.email.focus();
	return false;
	}
	if(inputform.address.value==''){
		alert("您没有填写地址！");
		inputform.address.focus();
		return false;
	}
	if(inputform.postcode.value==''){
		alert("您没有填写邮编！");
		inputform.postcode.focus();
		return false;
	}
	
	
	return true;
}
</SCRIPT>
<table align="center" cellpadding="0" cellspacing="0" width="770">
    <tr>
        <td width="769"><!--#include file="top.asp" --></td>
    </tr>
    <tr>
        <td width="769"><TABLE cellSpacing=0 cellPadding=0 width="770" border=0>
        <TBODY>
        <TR>
          <TD align=middle width="301" bgColor=#FFFFFF>
                                    <p align="left">&nbsp;&nbsp;<img src="images/jiantou_shuang.gif" width="11" height="8" border="0"> 
            <%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")
   
   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")
  
  %>您好，<%=nickname%>！　您是：<%=user_type%></p>
</TD>
          <TD bgColor=#FFFFFF width="459">
            
            <a href="web_icq.asp"><IMG height=19 
            src="images/tools_1.gif" width=63 align=absMiddle border=0></a> 
            <A href="my_notebook.asp"><IMG 
            id=Toolbox1_mesg height=19 src="images/tools_2.gif" width=63 
            align=absMiddle border=0></A> <a href="friend_list.asp" target="_top"><IMG 
            height=19 src="images/tools_3.gif" width=63 align=absMiddle 
            border=0></a> <a href="join_vip.asp"><IMG 
            height=19 src="images/tools_4.gif" width=63 align=absMiddle 
            border=0></a></TD></TR></TBODY></TABLE></td>
    </tr>
    <tr>
        <td width="769"><TABLE cellSpacing=0 cellPadding=0 width="770" align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width="189">
      <TABLE class=border_black cellSpacing=0 cellPadding=0 width="100%" 
      bgColor=#fff7ea border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom align=middle height="0">	 <%
 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
 %>   
<table border="0" height="2" cellspacing="0" cellpadding="0" width="100%">
 
  <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>
        <TR>
          <TD align=middle height=10></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=185 border=0>
        <TBODY>
        <TR>
          <TD height=5></TD></TR></TBODY></TABLE>
<!--#include file="left.asp"--></TD>
    <TD width="1">&nbsp;</TD>
    <TD vAlign=top width="777">
                                    <div align="right">
                                    <table class="border_yellow1" cellpadding="0" cellspacing="0" width="568">
                                        <tr>
                                            <td width="568" height="21" bgcolor="#FFB252">&nbsp;<font size="4" color="#FF9933"><b><img border="0" src="images/a0.gif" WIDTH="13" HEIGHT="13" align="absmiddle"> 
                                                    </b></font><font color="white"><b>我的详细资料</b></font></td>
                                        </tr>
                                        <tr valign="top">
                                            <td width="568" height="150">		
<FORM action="affiliate2.asp" method=post name=inputform onsubmit=return(checkform())>
<TABLE  border=0 cellPadding=0 cellSpacing=1 width="100%">
                          <TBODY>
                          <TR ><td  align=center>

 <TABLE class=color_1 border=0 cellPadding=2 cellSpacing=1 width="568">
                          <TBODY>
                           <TR bgcolor="#FFF8E1">
                            <TD width="20%">*您的真实性名： </TD>
                            <TD><input type=text name=name size=25 maxlength=50>
                            </TD><TD >*请输入您的真实性名 </TD></TR>
                           <TR bgcolor="#FFF8E1">
                            <TD width="20%">您的主页： </TD>
                            <TD><input type=text name=homepage size=25 maxlength=50>
                            </TD><TD >*据此我们可以产生相应的代码 </TD></TR>
                            <TR bgcolor="#FFF8E1">
                            <TD width="20%">主页简介： </TD>
                            <TD><input type=text name=homepage_info size=25 maxlength=200>
                            </TD><TD >*据此我们可以产生相应的代码 </TD>
                            </TR>
                            <TR bgcolor="#FFF8E1">
                            <TD width="20%">*电子邮件： </TD>
                            <TD><input type=text name=email size=25 maxlength=50>
                            </TD><TD >*方便联系： </TD>
                            </TR>
                            <TR bgcolor="#FFF8E1">
                            <TD width="20%">*您的详细地址： </TD>
                            <TD><input type=text name=address size=25 maxlength=50>
                            </TD><TD >*请输入详实有效的地址 </TD>
                            </TR>
                            <TR bgcolor="#FFF8E1">
                            <TD width="20%">*您的邮编： </TD>
                            <TD><input type=text name=postcode size=25 maxlength=20>
                            </TD><TD >*请输入有效的邮编 </TD>
                            </TR>
                            <TR bgcolor="#FFF8E1">
                            <TD width="20%">*您的电话或手机： </TD>
                            <TD><input type=text name=telephone size=25 maxlength=20>
                            </TD><TD >*方便联系： </TD>
                            </TR>
                           <TR bgcolor="#FFF8E1">
                            <TD width="20%">备注： </TD>
                            <TD><TEXTAREA name=remark rows=3 wrap=PHYSICAL cols=40></TEXTAREA> 
                            </TD><TD >*可以填写其他的收款方式： </TD>
                            </TR>
  <tr bgcolor="#FFF8E1"> 
<td height=30 colspan=3 align=center> 
<input type=submit class=p1  name=Submit value="　确认　">　　
<input type="reset" class=p1  name="Submit2" value="　重填　">
</td>
</tr>                                                    


</form>
</table>
</td></tr></tbody></table>

                        </form>
</td>
                                        </tr>
                                        <tr>
                                            <td width="568" height="2" bgcolor="#FF9E8C">
                                                <p></p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="568" height="14" bgcolor="#FF9E8C"><IMG height=42 src="images/pic_shop.gif" 
          width=568></td>
                                        </tr>
                                    </table>
                                    <table class="border_yellow1" cellpadding="0" cellspacing="0" width="568">
                                        <tr>
                                            <td width="568" height="10" bgcolor="#FF9E8C">&nbsp;</td>
                                        </tr>
                                    </table>
                                    </div>
</TD></TR>
</TBODY></TABLE></td>
    </tr>
    <tr>
        <td width="769">                        <p align="center"><!--#include file="../copyright.asp" --></td>
    </tr>
</table>
<p>&nbsp;</p>
</BODY>
</HTML>
