<!--#include file="conn1.asp"-->
<!--#include file="session2.asp"-->
<%dim action
action=request.QueryString("action")
select case action
case "save"%>
<%

 if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from member where id="&request.QueryString("id"),conn,1,3

rs("truename")=trim(request.form("truename"))


if trim(request.form("a"))="" then
rs("touxiang")=trim(request.form("tupian1"))
else
rs("touxiang")=trim(request.form("a"))
end if


rs("leixing")=1
rs("UserEmail")=trim(request.form("UserEmail"))
rs("sex")=trim(request.form("sex"))
rs("contact")=trim(request.form("contact"))
rs("shouji")=trim(request.form("shouji"))
rs("qicq")=trim(request.form("qicq"))
rs("zhengxiang")=int(request.form("zhengxiang"))
rs("yanfeng")=int(request.form("yanfeng"))
rs("zhuhui")=int(request.form("zhuhui"))
rs("shigu")=int(request.form("shigu"))
rs("baisha")=int(request.form("baisha"))
rs("huaxin")=int(request.form("huaxin"))
rs("lixin")=int(request.form("lixin"))
rs.update
rs.close
set rs=nothing
session("content")=""
response.write "<script language=javascript>alert('修改成功！');window.location.href='jjren.asp';</script>"
response.End
end if
%>
<%case ""%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="skins/css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
		  <%set rs2=server.CreateObject("adodb.recordset")
rs2.Open "select * from member where id="&request.QueryString("id")&"" ,conn,1,3%>

<form id="pic" name="pic"   method="post" action="editjjren.asp?action=save&id=<%=request.QueryString("id")%>"  >
  <table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
    <tr> 
      <th class="td_title"  colspan=6 height=25>买房者/租房者/业主</th>
    </tr>
	    <tr> 
      <td width="15%" class="td_content" align=right>用户名：</td>
      <td width="91%" class="td_content"><%=rs2("username")%></td>
    </tr>
		    <tr> 
      <td width="15%" class="td_content" align=right>密码：</td>
      <td width="91%" class="td_content">
	  <input name="truename" type="text" id="truename" value="<%=rs2("Password")%>" size="20">	</td>
    </tr>

	
	
	
	  
	    <tr>
          <td width="15%"  align="right" valign="middle" height="30" class="td_content" >照&nbsp;&nbsp;片：</td>
          <td width="91%" align="left" valign="middle" class="td_content"><table width="628" border="0" cellspacing="0" cellpadding="0">
<tr>
      <td width="69%" align="left"><IFRAME name=ad src="/up4.htm" frameBorder=0 width="100%" scrolling=no height=30></IFRAME></td>
      <td width="3%" align="left" ><INPUT type="hidden" id=a title=可直接输入网上图片的地址，或由上传程序自动产生图片地址 style="WIDTH: 200px" value="" name=a  size="20"><INPUT id=f type="hidden" title=可直接输入网上图片的地址，或由上传程序自动产生图片地址 style="WIDTH: 200px" value="" name=f size="20"><span id="tupian" class="BlackS12"></span>
        <input name="tupian1" type="hidden" id="tupian1" value="<%=rs2("touxiang")%>" /></td>
      <td width="28%" align="left" >	  <%if rs2("touxiang")<>"" then%>
				  
			   <%tupian=rs2("touxiang")%>
			
				  <%else%>
				  	  <%tupian="images/touxiang.jpg"%>
				 
				  <%end if%>
				  
		    <img src="/<%=tupian%>" width="70" height="70" /></td>
</tr>
   </table></td>
        </tr>
	
	
	

	
	
  <tr> 
      <td  class="td_content" align=right>电子邮箱：</td>
      <td class="td_content"><input name="UserEmail" type="text" id="UserEmail" value="<%=rs2("UserEmail")%>" size="30">      </td>
    </tr>
		
	
	
    <tr> 
      <td  class="td_content"align=right>性别：</td>
      <td class="td_content"><input name="sex" type="radio" value="男" <%if rs2("sex")="男" then%> checked="checked"  <%end if%>/>
    男
    <input name="sex" type="radio" value="女"   <%if rs2("sex")="女" then%> checked="checked"  <%end if%>/>
  女   <input name="sex" type="radio" value="未选择"   <%if rs2("sex")="未选择" then%> checked="checked"  <%end if%> />
  未选择 </td>
    </tr>
	
	   <tr>
          <td width="15%"  align="right" valign="middle" height="40"  class="td_content">联系人：</td>
          <td width="85%" align="left" valign="middle"  class="td_content"><input name="contact" type="text"    id="contact"  style="width:200px; height:24px; line-height:24px; " value="<%=rs2("contact")%>"  size="40"/></td>
        </tr>
		
	
	
	    <tr> 
      <td  class="td_content"align=right>手机：</td>
      <td class="td_content"><input name="shouji" type="text" id="shouji" value="<%=rs2("shouji")%>" size="30">      </td>
    </tr>
	
	    <tr> 
      <td  class="td_content"align=right>Q&nbsp;&nbsp;Q：</td>
      <td class="td_content"><input name="qicq" type="text" id="qicq" value="<%=rs2("qicq")%>" size="30">      </td>
    </tr>
	

	
	
	
    <tr> 
      <td colspan="2" bgcolor="#EEF7FD"  align="center">
          <input class="button" type="submit" name="Submit" value="修改"  style="width:80px; height:25px;">      </td>
    </tr>
  </table>
</form>
<br>
<%end select%>
</body>
</html>
