<!--#include file="../inc/conn.asp"-->
<!-- #include file="../inc/htmlencode2.asp"-->
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
<%
bbsuser=request.cookies("name")
postuser=Request.QueryString("postuser")
if postuser="" then
postuser=request.cookies("name")
end if
if request.cookies("bbsuser")="" then
   response.write "<script language='javascript'>"
   response.write "alert('登录超时或你还没有登录！');"
   response.write "history.go(-1);"
   response.write "</script>"
   response.end
end if
if postuser<>request.cookies("name") then
   response.write "<script language='javascript'>"
   response.write "alert('对不起，你不能设置别人的签名档！');"
   response.write "history.go(-1);"
   response.write "</script>"
   response.end
end if
sql="select * from clubuser where clubuser_name='"&bbsuser&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,1
%>
<script language="javascript">
<!--
	function check(form)
	{
    if (form.name.value=="")
    	{
    		alert("请填写昵称！");
    		form.name.focus();
    		return false;
  	}
    if (form.password.value=="")
    	{
    		alert("请填写密码！");
    		form.password.focus();
    		return false;
  	}
    if (form.pwdsub.value=="")
    	{
    		alert("请填写确认密码！");
    		form.pwdsub.focus();
    		return false;
  	}
    if (form.pwdsub.value!=form.password.value)
    	{
    		alert("密码和密码确认不一致！");
    		form.pwdsub.focus();
    		return false;
  	}
    if (form.question.value=="")
    	{
    		alert("请填写忘记密码时的问题！");
    		form.question.focus();
    		return false;
  	}
    if (form.answer.value=="")
    	{
    		alert("请填写问题的答案！");
    		form.answer.focus();
    		return false;
  	}
	if (form.email.value!="")
	{
    if ((form.email.value.indexOf("@")==-1)||(form.email.value.indexOf(".")==-1))
    	{
    		alert("email格式有错！(例如：master@xmwuye.com)");
    		form.email.focus();
    		return false;
  	    }
	}



return true;
	}
//-->
</script>
<body topmargin="0">
<form name="form1" method="post" action="moduseract.asp" onsubmit="return check(this)">
  <table width="99%" border="0" align="center" bgcolor="#A4B6D7" cellspacing="1" cellpadding="2">
    <tr background="../images/bbs_bg1.gif"> 
      <td height="25" colspan="2"> 
        <div align="center">修改用户信息</div>
      </td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">昵　称：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="text" name="name" size="15" value="<%=rs("clubuser_nickname")%>" maxlength="10">
        　<font color="#CC0000">*<font color="#000000">论坛中显示的网名</font></font></td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">密　码：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="password" name="password" size="15" maxlength="8" value="">
        　<font color="#CC0000">*（最多8位）</font></td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">密码确认：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="password" name="pwdsub" size="25" maxlength="8" value="">
        　<font color="#CC0000">*</font></td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">忘记密码时的问题：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="text" name="question" size="25" value="<%=rs("clubuser_question")%>">
        　<font color="#CC0000">*</font></td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">问题的答案：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="text" name="answer" size="25" value="<%=rs("clubuser_answer")%>">
        　<font color="#CC0000">*</font></td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">您的性别：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="radio" name="sex" value="男" <%if trim(rs("clubuser_sex"))="男" then%>checked<%end if%>>
        男 　 
        <input type="radio" name="sex" value="女" <%if trim(rs("clubuser_sex"))="女" then%>checked<%end if%>>
        女</td>
    </tr>
    <tr> 
      <td width="23%" height="23" bgcolor="#F8F8F8"> 
        <div align="right">你的E-mail信箱：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <input type="text" name="email" size="25" value="<%=rs("clubuser_email")%>">
        　</td>
    </tr>
    <tr> 
      <td width="23%" height="11" bgcolor="#F8F8F8"> 
        <div align="right">签名档：(150字以内)</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8"> &nbsp; 
        <textarea name="signname" cols="65" rows="6"><%=unhtmlencode2(rs("signname"))%></textarea>
        　</td>
    </tr>
    <tr> 
      <td width="23%" height="11" bgcolor="#F8F8F8" valign="top"> 
        <div align="right">头　像：</div>
      </td>
      <td width="77%" bgcolor="#F8F8F8">
        <input type="radio" name="img" value="cache1.gif" <%if trim(rs("userimg"))="cache1.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache1.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache2.gif" <%if trim(rs("userimg"))="cache2.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache2.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache3.gif" <%if trim(rs("userimg"))="cache3.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache3.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache4.gif" <%if trim(rs("userimg"))="cache4.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache4.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache5.gif" <%if trim(rs("userimg"))="cache5.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache5.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache6.gif" <%if trim(rs("userimg"))="cache6.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache6.gif" width="42" height="42"> <br>
        <input type="radio" name="img" value="cache7.gif" <%if trim(rs("userimg"))="cache7.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache7.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache8.gif" <%if trim(rs("userimg"))="cache8.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache8.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache9.gif" <%if trim(rs("userimg"))="cache9.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache9.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache10.gif" <%if trim(rs("userimg"))="cache10.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache10.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache11.gif" <%if trim(rs("userimg"))="cache11.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache11.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache12.gif" <%if trim(rs("userimg"))="cache12.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache12.gif" width="42" height="42"><br>
        <input type="radio" name="img" value="cache13.gif" <%if trim(rs("userimg"))="cache13.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache13.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache14.gif" <%if trim(rs("userimg"))="cache14.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache14.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache15.gif" <%if trim(rs("userimg"))="cache15.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache15.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache16.gif" <%if trim(rs("userimg"))="cache16.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache16.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache17.gif" <%if trim(rs("userimg"))="cache17.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache17.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache18.gif" <%if trim(rs("userimg"))="cache18.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache18.gif" width="42" height="42"> <br>
        <input type="radio" name="img" value="cache19.gif" <%if trim(rs("userimg"))="cache19.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache19.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache20.gif" <%if trim(rs("userimg"))="cache20.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache20.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache21.gif" <%if trim(rs("userimg"))="cache21.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache21.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache22.gif" <%if trim(rs("userimg"))="cache22.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache22.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache23.gif" <%if trim(rs("userimg"))="cache23.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache23.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache24.gif" <%if trim(rs("userimg"))="cache24.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache24.gif" width="42" height="42"> <br>
        <input type="radio" name="img" value="cache25.gif" <%if trim(rs("userimg"))="cache25.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache25.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache26.gif" <%if trim(rs("userimg"))="cache26.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache26.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache27.gif" <%if trim(rs("userimg"))="cache27.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache27.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache28.gif" <%if trim(rs("userimg"))="cache28.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache28.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache29.gif" <%if trim(rs("userimg"))="cache29.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache29.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache30.gif" <%if trim(rs("userimg"))="cache30.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache30.gif" width="42" height="42"><br>
        <input type="radio" name="img" value="cache31.gif" <%if trim(rs("userimg"))="cache31.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache31.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache32.gif" <%if trim(rs("userimg"))="cache32.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache32.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache33.gif" <%if trim(rs("userimg"))="cache33.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache33.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache34.gif" <%if trim(rs("userimg"))="cache34.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache34.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache35.gif" <%if trim(rs("userimg"))="cache35.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache35.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache36.gif" <%if trim(rs("userimg"))="cache36.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache36.gif" width="42" height="42"> <br>
        <input type="radio" name="img" value="cache37.gif" <%if trim(rs("userimg"))="cache37.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache37.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache38.gif" <%if trim(rs("userimg"))="cache38.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache38.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache39.gif" <%if trim(rs("userimg"))="cache39.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache39.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache40.gif" <%if trim(rs("userimg"))="cache40.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache40.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache41.gif" <%if trim(rs("userimg"))="cache41.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache41.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache42.gif" <%if trim(rs("userimg"))="cache42.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache42.gif" width="42" height="42"><br>
        <input type="radio" name="img" value="cache43.gif" <%if trim(rs("userimg"))="cache43.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache43.gif" width="42" height="42"> 
        <input type="radio" name="img" value="cache44.gif" <%if trim(rs("userimg"))="cache44.gif" then%>checked<%end if%>>
        <img src="userheadimg/cache44.gif" width="42" height="42">
		<a href="userimg.asp">自定义头像</a></td>
    </tr>
    <tr> 
      <td height="35" colspan="2" bgcolor="#F8F8F8"> 
        <div align="center"> 
          <%
		url=request.servervariables("http_referer")
		%>
          <INPUT TYPE="hidden" name="url" value="<%=url%>">
          <input type="submit" name="Submit" value="修改">
        </div>
      </td>
    </tr>
  </table>
</form>
