<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.SMS_changeinfo" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function selectimg(image){
var url,image
url="image/face/"+image+".gif";
document.reg.faceimg.value=image;
document.headimg.src=url;
MM_showHideLayers('Zhong','','hide');
}
function checkpwd(){
if(document.reg.pwd2.value!=document.reg.pwd1.value){
alert("错误！两次输入的密码不一致");
document.reg.pwd1.focus();
}else{
document.reg.pwd.value=document.reg.pwd2.value;
}
}
//-->
</script>
<script>
var Num=2;  //这里是增加选项卡的数目
var carNum=2+Num
 var imglist=""
 for(var i=1;i<39;i++){
 imglist=imglist+"<img src='image/face/"+i+".gif' onClick=selectimg('"+i+"')><br>";
 }
function document.onselectstart()
{
var obj=event.srcElement 
 if(obj.tagName=="SPAN")
 {
 return false;
 }
}
function document.onmousedown()
{
 var obj=event.srcElement
 var pobj=obj.parentElement.id;
 if(obj.className=="span")
 {
  for(i=1;i<carNum;i++)
  {
   if(pobj==("btn"+i))
   {
    document.all("td"+i).style.backgroundColor="#F5F3F1"
    document.all("btn"+i).style.height=20
    content(i)
   }
   else
   {
    document.all("td"+i).style.backgroundColor="white"
    document.all("btn"+i).style.height=18
   }
  }
 } 
}
function content(i)
{
//这里是菜单名
 mnuItem(1,"基本资料")
 mnuItem(2,"详细资料")
 //mnuItem(3,"兴趣爱好")
 mnuItem(3,"密码修改")
//End
 if(i==1)
 {
span1.innerHTML="<table width='370' height='180' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#F5F3F1'>"
            +"<td width='8%' align='center' valign='bottom'> <input type='submit' name='Submit' value=' 修改 ' class='button1' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='reset' class='button1' value=' 还原 ' >"
             +" <input type='button' class='button1' value=' 关闭 ' onClick='window.close()'></td>"
			 +" <td width='92%' align='center' valign='bottom'>"
			 +"<fieldset style='width:90%;height:100%'><legend>基本资料</legend>"
+"<table width='290' border='0' cellpadding='1' cellspacing='1'><tr>"
+"<td width='60' rowspan='2' align='center' bordercolor='#F5F3F1'> "
+"<table width='35' border='1' cellpadding='1' cellspacing='1' bordercolor='#F5F3F1' class='tddown'>"
 +"<tr><td bgcolor='#F5F3F1'><img src='image/face/1.gif' name='headimg' width='32' height='32' border='0'></td>"
 +"</tr></table><div id='Zhong' style='position:absolute; visibility:hidden; width:55px; height:70px; z-index:1; overflow:auto; left: 81px; background-color: #F5F3F1; border: 1px none #000000;'>"
+imglist+"</div>"
+"</td><td width='164' colspan='2' bordercolor='#F5F3F1'> "
+"用户名称：<input type='text' class='fam' onFocus='this.blur()' size='14' value='<%=rs("m_userid").Value%>' READONLY> "
+"</td></tr><tr><td colspan='2' bordercolor='#F5F3F1'> 个性签名："
+"<textarea name='name1' rows='2' cols='20' wrap='VIRTUAL' onblur='document.reg.M_qm.value=this.value'><%=rs("M_qm").Value%></textarea></td>"
+"</tr></table><table width='274' border='0' cellpadding='1' cellspacing='1'>"
+"<tr><td width='60' height='30'>真实姓名</td>"
+"<td width='85'><input name='turename1' type='text' value='<%=rs("m_name").Value%>' size='12' onblur='document.reg.M_name.value=this.value'></td>"
+"<td width='32'>性别</td><td width='84'><select name='sex1' id='sex1' selected onblur='document.reg.M_sex.value=this.value'>"
+"<option value='<%=rs("M_sex").Value%>'><%=rs("M_sex").Value%></option>"
+"<option value='男士'>男士</option><option value='女士'>女士</option></select></td>"
+"</tr><tr><td width='60'>年　龄</td><td><input name='old1' type='text' value='<%=rs("M_old").Value%>' size='12' onblur='document.reg.M_old.value=this.value'></td>"
+"<td width='32'>星座</td><td>"
+"<select name='star1' onblur='document.reg.M_star.value=this.value'><option valur='<%=rs("M_star").Value%>' selected><%=rs("M_star").Value%></option><option value='白羊座'>白羊座</option>"
+"<option value='金牛座'>金牛座</option><option value='双子座'>双子座</option>"
+"<option value='巨蟹座'>巨蟹座</option><option value='狮子座'>狮子座</option>"
+"<option value='处女座'>处女座</option><option value='天秤座'>天秤座</option>"
+"<option value='天蝎座'>天蝎座</option><option value='射手座'>射手座</option>"
+"<option value='摩羯座'>摩羯座</option><option value='水瓶座'>水瓶座</option>"
+"<option value='双鱼座'>双鱼座</option></select></td>"
+"</tr><tr><td width='60'>所在地区</td><td>省份<input type='text' name='prov1' size='8' onblur='document.reg.M_Province.value=this.value' value='<%=rs("M_Province").Value%>'>"
+"</td><td>城市</td><td><input type='text' name='city1' size='8' onblur='document.reg.M_city.value=this.value' value='<%=rs("m_city").Value%>'></td>"
+"</tr><tr><td width='60'>电子邮件</td><td colspan=3><input name='mail1' type='text' value='<%=rs("M_email").Value%>' size='32' onblur='document.reg.M_email.value=this.value'></td>"
+"</tr></table></fieldset></td></tr></table>"
 }
 if(i==2)
 {
span1.innerHTML="<table width='370' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#F5F3F1'>"
            +"<td width='8%' align='center' valign='bottom'> <input type='submit' name='Submit' class='button1' value=' 修改 ' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='reset' class='button1' value=' 还原 ' >"
             +" <input type='button' class='button1' value=' 关闭 ' onClick='window.close()'></td>"
			 +" <td width='92%' align='center' valign='bottom'><fieldset style='width:90%;height:90%'>"
             +"  <legend>详细资料</legend><table width='290' border='0' cellpadding='1' cellspacing='1'>"
             +" <tr><td align='center'>公司名称</td>"
              +"  <td><input name='school1' type='text' value='<%=rs("C_name").Value%>' size='12' onblur='document.reg.C_name.value=this.value'></td>"
              +"  <td>职位</td><td><input name='job1' type='text' value='<%=rs("C_jobs").Value%>' size='12' onblur='document.reg.C_jobs.value=this.value'></td>"
              +"  </tr><tr><td width='62' align='center'>邮政编码</td>"
               +" <td width='81'><input name='code1' type='text' value='<%=rs("M_zipcode").Value%>' size='12' onblur='document.reg.M_zipcode.value=this.value'></td>"
              +"  <td width='28'>电话</td>"
              +"  <td width='90'><input name='phone1' type='text' value='<%=rs("M_tel").Value%>' size='12' onblur='document.reg.M_tel.value=this.value'></td>"
              +"  </tr><tr><td width='62' align='center'>联系地址</td>"
              +"  <td colspan='3'><input name='addr1' type='text' value='<%=rs("M_adder").Value%>' size='31' onblur='document.reg.M_adder.value=this.value'></td>"
              +"  </tr><tr><td width='62' align='center'>公司主页</td>"
              +"  <td colspan='3'><input name='home1' type='text' value='<%=rs("C_url").Value%>' size='31' onblur='document.reg.C_url.value=this.value'></td>"
              +" </tr><tr><td width='62' align='center'>公司简介</td>"
              +"  <td colspan='3'><textarea name='content1' cols='25' rows='4'  onblur='document.reg.C_info.value=this.value'  disabled='disabled'></textarea></td>"
              +"  </tr></table></fieldset></td></tr></table>"
 }
 /*if(i==3)
 {
span1.innerHTML="<table width='338' height='100%' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#F5F3F1'>"
            +"<td width='19%' align='center' valign='bottom'> <input type='submit' name='Submit' class='button1' value=' 修改 ' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='reset' class='button1' value=' 还原 ' >"
             +" <input type='button' class='button1' value=' 关闭 ' onClick='window.close()'></td>"
			 +" <td width='81%' align='center' valign='middle'><fieldset style='width:100%;height:100%'>保密中......</fieldset></td></tr></table>"
			  }*/
if(i==3)
 {
span1.innerHTML="<table width='370' height='190' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#F5F3F1'>"
            +"<td width='8%' align='center' valign='bottom'> <input type='submit' name='Submit' class='button1' value=' 修改 ' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='reset' class='button1' value=' 还原 ' >"
             +" <input type='button' class='button1' value=' 关闭 ' onClick='window.close()'></td>"
			 +" <td width='92%' align='center' valign='middle'>"
			 +" <fieldset style='width:90%;height:90%;'><legend>密码修改</legend><br><br><br><br>旧密码：<input name='oldpwd1' type='password' size='15' onblur='document.reg.oldpwd.value=this.value'>"
             +" <br>新密码：<input name='pwd1' type='password' size='15'>"
             +" <br>确认密码<input name='pwd2' type='password' size='15' onblur='checkpwd()'></fieldset></td></tr></table>"
			  }
}
function mnuItem(i,con)
{
 document.all("MenuName"+i).innerText=con
}
</script>
<style>
td{font-size:9pt}
.span{
 cursor:default;
 padding-left:5px;
 padding-top:2px;
 padding-right:5px;
 padding-bottom:0px;
 width:100%;
 height:100%;
 }
</style>
<title>我的资料</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<link href="main.css" rel="stylesheet" type="text/css" />
</head>
<body onload="content(1)" onkeydown='if(event.ctrlKey)return false;'>

<script type="Text/JavaScript" language="JavaScript" src="js/type.js"></script>
<form action="chgsave.aspx" method="post" name="reg">
<input type="hidden" name="M_name" value="<%=rs("M_name").Value%>" />
<input type="hidden" name="M_old" value="<%=rs("M_old").Value%>" />
<input type="hidden" name="M_sex" value="<%=rs("M_sex").Value%>" />
<input type="hidden" name="M_star" value="<%=rs("M_star").Value%>" />
<input type="hidden" name="M_Province" value="<%=rs("M_Province").Value%>" />
<input type="hidden" name="M_city" value="<%=rs("M_city").Value%>" />
<input type="hidden" name="M_email" value="<%=rs("M_email").Value%>" />
<input type="hidden" name="C_name" value="<%=rs("C_name").Value%>" />
<input type="hidden" name="C_jobs" value="<%=rs("C_jobs").Value%>" />
<input type="hidden" name="M_zipcode" value="<%=rs("M_zipcode").Value%>" />
<input type="hidden" name="M_adder" value="<%=rs("M_adder").Value%>" />
<input type="hidden" name="M_tel" value="<%=rs("M_tel").Value%>" />
<input type="hidden" name="C_url" value="<%=rs("C_url").Value%>" />
<input type="hidden" name="M_qm" value="<%=rs("m_qm").Value%>" />

<input type="hidden" name="oldpwd" value="" />
<input type="hidden" name="pwd" value="" />
<table style="background-color:#F5F3F1; width:0" onselectstart="return false" align="center"><tr><td>
<table cellpadding="0" cellspacing="0" onselectstart="return false">
  <tr style="height:20">
 <td valign="bottom">
  <table style="background-color:#F5F3F1" cellspacing="0" cellpadding="0">
   <tr>
   <td style="height:1; width:1"></td><td style="height:1; width:1"></td>
   <td style="background-color:white"></td><td></td><td></td>
   </tr>
   <tr><td style="height:1; width:1"></td><td style="background-color:white; height:1; width:1"></td>
   <td></td><td style="background-color:black"></td><td></td>
   </tr>
   <tr><td style="background-color:white; width:1"></td><td style="height:1; width:1"></td>
   <td style="height:20" id="btn1"><span class="span" id="MenuName1">  </span></td><td style="background-color:gray; width:1"></td><td style="background-color:black; width:1"></td>
   </tr>
   <tr><td style="background-color:white"></td><td style="background-color:#F5F3F1; height:1" colspan="4" id="td1"></td>
   </tr>
  </table>
 </td>
 <script>
for(var i=2;i<carNum;i++)
{
 tdBody="<td valign=bottom>"
 tdBody+="<table cellspacing=0 cellpadding=0 bgcolor='#F5F3F1'>"
 tdBody+="<tr>"
 tdBody+="<td width=1 height=1><\/td><td width=1 height=1><\/td>"
 tdBody+="<td bgcolor=white><\/td><td></td><td></td>"
 tdBody+="<\/tr>"
 tdBody+="<tr><td width=1 height=1><\/td><td width=1 height=1 bgcolor=white><\/td>"
 tdBody+="<td></td><td bgcolor=black><\/td><td></td>"
 tdBody+="<\/tr>"
 tdBody+="<tr><td width=1 bgcolor=white><\/td><td width=1 height=1><\/td>"
 tdBody+="<td id=btn"+i+" height=18><span class=span id=MenuName"+i+">  <\/span></td><td width=1 bgcolor=gray><\/td><td bgcolor=black width=1><\/td>"
 tdBody+="<\/tr>"
 tdBody+="<tr><td bgcolor=white><\/td><td colspan=4 height=1 bgcolor=white id=td"+i+"><\/td>"
 tdBody+="<\/tr>"
 tdBody+="<\/table>"
 tdBody+="<\/td>";
document.write(tdBody)
}
</script>

<td style="width:113; border-bottom:1px white solid">  </td></tr>
</table>
<div style="padding:10px;width:100%;height:200px;border-left:1px white solid;border-right:2px outset;border-bottom:2px outset">
<span id="span1"></span><!--这里是内容-->
</div>
</td></tr></table>

</form>
</body>
</html>
