<!-- #include file="conn.asp"-->

<%
 if request.cookies("memberid")="" or request.cookies("myter")="" then
   response.write"尚未登陆无法修改!"
   response.end
 end if
%>
<script language=Javascript>
<!--
function onChange(i){
childSort=document.all("child" + i);
//theTd=document.all("td" + i);
	if(childSort.style.display=="none"){
//		theTd.bgcolor="#ffffff";
		childSort.style.display="";}
	else{
//		theTd.bgcolor="#000000";
		childSort.style.display="none";}
}

//-->
</script>
<HTML><HEAD>
<TITLE><%=PopGoShopName%>-会员资料修改</TITLE>
<LINK 
href="images/FONT.CSS" type=text/css rel=stylesheet>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</HEAD>
<BODY text=#000000 bottomMargin=0 vLink=#000000 aLink=#000000 link=#000000 leftMargin=0 topMargin=0 
rightMargin=0 marginheight="0" marginwidth="0">
  <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
    <TBODY>
      <TR> 
        <TD height="18" vAlign=top> 
          <TABLE cellSpacing=0 borderColorDark=#eeeeee 
                        cellPadding=0 width="100%" 
                        borderColorLight=#aaaaaa border=0>
            <TBODY>
              <TR> 
                <TD> <div align="center"> 
                    <center>
                      <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff border="0" style="border-collapse: collapse" bordercolor="#111111">
                        <TBODY>
                          <TR> 
                            <TD height="18" bgColor=#FFFFFF> 
                              <%  
set rs=server.createobject("adodb.recordset")  
sql="select * from member where memberid='"&request.cookies("memberid")&"' and password='"&request.cookies("password")&"'"  
rs.open sql,conn,1,1
%>
                      </table></table>
  </table>
  <%if not (rs.eof or err) then %>
<form method="post" action="saveMemberMod.asp" name="memberMod">
  <TABLE 
                  width="100%" border=1 cellPadding=0 cellSpacing=0 bordercolor="#626D78" borderColorLight=#626D78 borderColorDark=#ffffff>
      <tbody>
        <tr bgcolor="#FFDBBD"> 
          <td colspan=2 height="18" bgcolor="#EEEEEE"> <p align="center">会员资料修改</p></td>
        </tr>
        <tr> 
          <td width=70 align="right" height="25" nowrap> <div align="right">会员帐号：</div></td>
          <td width="445" height="25"> <%=rs("memberID")%> </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="25" nowrap> <div align="right">会员姓名：</div></td>
          <td width="445" height="25"> <input type="text" name="name" size="20" value="<%=rs("name")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="25" nowrap> <div align="right"><font color="#000000">会员性别：</font></div></td>
          <td width="445" height="25"> <select name="sex" style="background-color: #f7f7f7">
              <%if rs("sex")="男" then %>
              <option selected>男</option>
              <option>女</option>
              <%else %>
              <option>男</option>
              <option selected>女</option>
              <%end if %>
            </select> </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">会员密码：</div></td>
          <td width="445" height="26"> <input type="checkbox" name="modifyPassword" value="1"> 
            <font color="#FF0000">修改密码</font> <input type="password" name="password1" size="12" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
            <input type="password" name="password2" size="12" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">密码提问：</div></td>
          <td width="445" height="26"> <input type="text" name="question" size="40" value="<%=rs("question")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">密码答案：</div></td>
          <td width="445" height="26"> <input type="text" name="answer" size="40" value="<%=rs("answer")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">电子邮件：</div></td>
          <td width="445" height="26"> <input type="text" name="email" size="30" value="<%=rs("email")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">常用电话：</div></td>
          <td width="445" height="26"> <input type="text" name="phone" size="30" value="<%=rs("phone")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="25" nowrap> <div align="right">家庭地址：</div></td>
          <td width="445" height="25"> <input type="text" name="address" size="60" value="<%=rs("address")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr> 
          <td width=70 align="right" height="26" nowrap> <div align="right">邮政编码：</div></td>
          <td width="445" height="26"> <input type="text" name="code" size="10" value="<%=rs("code")%>" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7"> 
          </td>
        </tr>
        <tr bgcolor="#FFDBBD"> 
          <td colspan="2" align="right" height="26" nowrap bgcolor="#EEEEEE"> 
            <div align="center"> 
              <input type="submit" name="Submit2" value="修改" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7">
              <input type="button" name="Submit3" value="关闭" onClick="window.close()" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #f7f7f7">
            </div></td>
        </tr>
      </tbody>
    </table>
  </form>
  <%else %>
  <br>
  <div align="center">您没有登陆，或该会员已被删除，请重新登陆一次。　<a href="Javascript:window.history.go(-1)">返回</a> 
  </div>
  <%end if %>
</BODY></HTML>