<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.SMS_userinfo" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
var Num=1;  //这里是增加选项卡的数目
var carNum=2+Num
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="#D4D0C8"
    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,"兴趣爱好")
//End
 if(i==1)
 {
span1.innerHTML="<table width='370' height='180' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#D4D0C8'>"
            +"<td width='8%' valign='bottom'> <input type='submit' class='button1' name='Submit' value=' 加我 ' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='button' class='button1' value=' 更新 ' onClick='document.location.reload()'>"
             +" <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='#D4D0C8'> "
+"<table width='40' border='1' cellpadding='3' cellspacing='1' bordercolor='#D4D0C8' class='tddown'>"
+"<tr><td width='41'><img src='image/face/1.gif' width='32' border='0'></td>"
+"</tr></table></td><td colspan='2' bordercolor='#D4D0C8'> "
+"用户名称：<input type='text' onFocus='this.blur()' class='fam' size='15' value='<%=rs("M_userid").Value%>'> "
+"</td></tr><tr><td colspan='2' bordercolor='#D4D0C8' valign='top'> 个性签名："
+"<textarea class='fam' rows='2' cols='20' wrap='VIRTUAL' readonly><%=rs("M_qm").Value%></textarea></td>"
+"</tr></table><br><table width='274' border='0' cellpadding='1' cellspacing='1'>"
+"<tr><td width='60'>真实姓名</td>"
+"<td width='85'><input name=text type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_name").Value%>' size='12'></td>"
+"<td width='32'>年龄</td><td width='84'><input name='text' type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_old").Value%>' size='12'></td>"
+"</tr><tr><td width='60'>性　　别</td><td><input name=text3 type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_sex").Value%>' size='12'></td>"
+"<td width='32'>星座</td><td><input name='text' type='text' class='fam' onFocus='this.blur()' value='<%=rs("m_star").Value%>' size='12'></td>"
+"</tr><tr><td width='60'>所在地区</td><td colspan='3'><input name='text' type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_Province").Value & rs("M_City").Value%>' size='32'></td>"
+"</tr><tr><td width='60'>电子邮件</td><td colspan=3><input name=text6 type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_email").Value%>' size='32'></td>"
+"</tr></table></fieldset></td></tr></table>"
 }
 if(i==2)
 {
span1.innerHTML="<table width='370' border='0' cellpadding='0' cellspacing='0'>"
          +"<tr bgcolor='#D4D0C8'>"
            +"<td width='8%' valign='bottom'> <input type='submit' name='Submit' class='button1' value=' 加我 ' onClick=document.location.href='addfriend.aspx?id=<%=rs("M_userid").Value%>'>"
             +" <input type='button' class='button1' value=' 更新 ' onClick='document.location.reload()'>"
             +" <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='text5' type='text' class='fam' onFocus='this.blur()' value='<%=rs("C_name").Value%>' size='12'></td>"
              +"  <td>职位</td><td><input name='text6' type='text' class='fam' onFocus='this.blur()' value='<%=rs("C_jobs").Value%>' size='12'></td>"
              +"  </tr><tr><td width='62' align='center'>邮政编码</td>"
               +" <td width='81'><input name='text' type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_Zipcode").Value%>' size='12'></td>"
              +"  <td width='28'>电话</td>"
              +"  <td width='90'><input name='text2' type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_tel").Value%>' size='12'></td>"
              +"  </tr><tr><td width='62' align='center'>联系地址</td>"
              +"  <td colspan='3'><input name='text4' type='text' class='fam' onFocus='this.blur()' value='<%=rs("M_Adder").Value%>' size='31'></td>"
              +"  </tr><tr><td width='62' align='center'>公司主页</td>"
              +"  <td colspan='3'><input name='text3' type='text' class='fam' onFocus='this.blur()' value='<%=rs("C_Url").Value%>' size='31'></td>"
              +" </tr><tr><td width='62' align='center'>公司简介</td>"
              +"  <td colspan='3'><textarea name='textarea' cols='28' rows='4' class='fam'></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='#D4D0C8'>"
         //   +"<td width='19%' valign='bottom'> <input type='submit' class='button1' name='Submit' 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='bottom'>正在制作中.....</td></tr></table>"
			  }*/
}
function mnuItem(i,con)
{
 document.all("MenuName"+i).innerText=con
}
</script>
<style>td{font-size:9pt}
.span{
 cursor:default;
 padding-left:5;
 padding-top:2;
 padding-right:5;
 padding-bottom:0;
 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>
<table style="background-color:#D4D0C8; 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:#D4D0C8" 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:#D4D0C8; height:1" colspan="4" id="td1"></td>
   </tr>
  </table>
 </td>
 <script>
for(i=2;i<carNum;i++)
{
 tdBody="<td valign=bottom>"
 tdBody+="<table cellspacing=0 cellpadding=0 bgcolor='#D4D0C8'>"
 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:172; border-bottom:1 white solid">　</td></tr>
</table>
<div style="padding:10;width:100%;height:200;border-left:1 white solid;border-right:2 outset;border-bottom:2 outset">
<span id="span1"></span><!--这里是内容-->
</div>
</td></tr></table>
</body>
</html>
