<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会展招投标会员中心</title>
<link href="user.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/site.js"></script>
<script type="text/javascript" language="javascript" src="js/calendar.js"></script>
</head>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Function.asp"-->
<!--#include file="inc/Config.asp"-->
<%
Call ChkLogin(Session("DjbUserName"))
Call ConnectionDataBase()
Sql="Select Top 1 * From T_Users Where ID=" & Session("DjbUserID")
SetRs Rs,Sql,conn,1,1
IF Not Rs.Eof Then
	RegTime=Rs("AddTime")
	nickname =Rs("nickname")
	logo =Rs("logo")
	banner =Rs("banner")
	question =Rs("question")
	answer =Rs("answer")
	realname =Rs("realname")
	sex =Rs("sex")
	birthday =Rs("birthday")
	areaid =Rs("CityID")
	email =Rs("email")
	address =Rs("address")
	postcode =Rs("postcode")
	tel =Rs("tel")
	mobile =Rs("mobile")
	fax =Rs("fax")
	qq =Rs("qq")
	msn=Rs("msn")
	Sql="Select Top 1 father From T_City Where CityID=(Select Top 1 father From T_Area Where areaid='"& areaid &"')"
	SetRs Rs1,Sql,conn,1,1
	IF Not Rs1.Eof Then	provinceid=Rs1("father")
	DisRs Rs1
	Sql="Select Top 1 father From T_Area Where areaid='"& areaid &"'"
	SetRs Rs1,Sql,conn,1,1
	IF Not Rs1.Eof Then	cityid=Rs1("father")
	DisRs Rs1
End IF
DisRs Rs
%>
<body>
<!--#include file="utop.asp"-->
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td><img src="images/ab_03.jpg" width="150" height="47" alt="" /> <a href="/ucompany.asp?userid=<%= Session("DjbUserID") %>" target="_blank">点击查看空间</a> </td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td><img src="images/ab_06.jpg" width="959" height="78" alt="" /></td>
  </tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
  <tr>
    <td width="180" valign="top"><!--#include file="vipleft.asp"-->
    </td>
    <td valign="top"><table width="98%" height="304" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="226" valign="top" class="borderall"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EDF6E3" class="margintop">
          <tr>
            <td height="30" class="borderall"> &nbsp;&gt;&gt;基本信息</td>
          </tr>
        </table>
		<!--#include file="vip_infor_top.asp"-->
		<form action="submit.asp" name="frm" method="post" />
		<input type="hidden" name="action" value="modiuserinfor" />
		<input type="hidden" name="id" value="<%=Session("DjbUserID")%>" />
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="margintop">
            <tr>
              <td width="15%" align="right" bgcolor="#EDF6E3" class="borderall">用户名:&nbsp;&nbsp;</td>
              <td width="68%" height="30" bgcolor="#EDF6E3" class="borderall">&nbsp;<%=Session("DjbUserName")%></td>
              <td width="17%" rowspan="3" align="center" bgcolor="#EDF6E3" class="borderall">
			  <%
			  userhead="images/untitled.jpg"
			  IF Logo<>"" Then userhead="UpLoadFiles/Users/" & Logo			  
			  %>
			  <img src="<%=userhead%>" width="80" />
			  </td>
            </tr>
            <tr>
              <td align="right" class="borderboth">注册时间:</td>
              <td class="borderboth">&nbsp;<%=RegTime%></td>
              </tr>
            <tr>
              <td align="right" class="borderboth">昵称:</td>
              <td class="borderboth"><input name="nickname" type="text" class="boxb" id="nickname" maxlength="20" value="<%=nickname%>" /></td>
              </tr>
            <tr>
              <td align="right" class="borderboth">头像/Logo:</td>
              <td colspan="2" class="borderboth">
			  <input type="text" name="Logo" id="Logo" class="boxb" value="<%=Logo%>" />
    		  <input type="button" value="添加图片" class="btn2" onClick="window.open('inc/UpLoad.asp?formname=frm&EditName=Logo&filepath=Users&fileType=gif,jpg,png','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"> 建议上传比例:100px * 100px,支持格式:gif,jpg,png			  </td>
            </tr>
            <tr>
              <td align="right" class="borderboth">密码提示问题:</td>
              <td colspan="2" class="borderboth"><input name="question" type="text" class="boxb" id="question" maxlength="50" value="<%=question%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">密码提示答案:</td>
              <td colspan="2" class="borderboth"><input name="answer" type="text" class="boxb" id="answer" maxlength="50" value="<%=answer%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">真实姓名:</td>
              <td colspan="2" class="borderboth"><input name="realname" type="text" class="boxb" id="realname" maxlength="50" value="<%=realname%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">性别:</td>
              <td colspan="2" class="borderboth">
			  <input type="radio" name="sex" value="male" checked="checked" /> 男
			  <input type="radio" name="sex" value="female" <%IF sex="female" Then Response.Write "checked"%> /> 女			  </td>
            </tr>
			<tr>
              <td align="right" class="borderboth">出生日期:</td>
              <td colspan="2" class="borderboth">
			  <input name="birthday" type="text" class="boxb" id="birthday" onFocus="setday(this)" value="<%=birthday%>">			  </td>
            </tr>
			<tr>
              <td align="right" class="borderboth">地区:</td>
              <td colspan="2" class="borderboth">
			  <select name="province" style="width:100px" onchange="GetCity(this.options[this.selectedIndex].value)">
			    <%
				Sql="Select provinceID,province From T_Province"
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("ProvinceID")%>" <%IF Rs("ProvinceID")=provinceid Then Response.Write "Selected"%>><%=Rs("Province")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				%>
              </select>

              <select name="city" id="city" style="width:100px" onchange="GetArea(this.options[this.selectedIndex].value)">
                <%
				Sql="Select cityID,city From T_City Where father='"& provinceid &"'"
				response.write sql
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("cityID")%>" <%IF Rs("cityID")=cityid Then Response.Write "Selected"%>><%=Rs("city")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				%>
              </select>
			  <select name="area" id="area" style="width:100px">
                <%
				Sql="Select areaID,area From T_Area Where father='"& cityid &"'"
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("areaID")%>" <%IF Rs("areaID")=Cstr(areaid) Then Response.Write "Selected"%>><%=Rs("area")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				Call CloseDatabase
				%>
              </select>			  </td>
            </tr>
			<tr>
              <td align="right" class="borderboth">Email:</td>
              <td colspan="2" class="borderboth"><input name="email" type="text" class="boxb" id="email" maxlength="50" value="<%=email%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">地址:</td>
              <td colspan="2" class="borderboth"><input name="address" type="text" class="boxb" id="address" maxlength="100" value="<%=address%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">邮政编码:</td>
              <td colspan="2" class="borderboth"><input name="postcode" type="text" class="boxb" id="postcode" maxlength="50" value="<%=postcode%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">座机:</td>
              <td colspan="2" class="borderboth"><input name="tel" type="text" class="boxb" id="tel" maxlength="50" value="<%=tel%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">手机:</td>
              <td colspan="2" class="borderboth"><input name="mobile" type="text" class="boxb" id="mobile" maxlength="50" value="<%=mobile%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">传真:</td>
              <td colspan="2" class="borderboth"><input name="fax" type="text" class="boxb" id="fax" maxlength="50" value="<%=fax%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">QQ:</td>
              <td colspan="2" class="borderboth"><input name="qq" type="text" class="boxb" id="qq" maxlength="50" value="<%=qq%>" /></td>
            </tr>
			<tr>
              <td align="right" class="borderboth">MSN:</td>
              <td colspan="2" class="borderboth"><input name="msn" type="text" class="boxb" id="msn" maxlength="50" value="<%=msn%>" /></td>
            </tr>
			<%IF Session("DjbVipGroup")<>1 Then%>
			<tr>
              <td align="right" class="borderboth">Banner:</td>
              <td colspan="2" class="borderboth">
			  <input type="text" name="Banner" id="Banner" class="boxb" value="<%=Banner%>" />
    		  <input type="button" value="添加图片" class="btn2" onClick="window.open('inc/UpLoad.asp?formname=frm&EditName=Banner&filepath=Users&fileType=gif,jpg,png','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"> 建议上传比例:970px * 287px,支持格式:gif,jpg,png<br />
			  <%
			  IF Banner<>"" Then Response.Write("<img src='UpLoadFiles/Users/"&Banner&"' width='600' />")
			  %>			  
			  </td>
            </tr>
			<%End IF%>
			<tr>
              <td align="right" class="borderboth">&nbsp;</td>
              <td colspan="2" class="borderboth"><input type="image" src="images/save.jpg" /></td>
            </tr>
          </table>
		  </form>
		  </td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
