<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="inc/function.asp"-->

<html>
<head>
<title>修改注册用户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body style="overflow-y:hidden"> 
<link href="new/css.CSS" rel="stylesheet" type="text/css">

<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
</style>

</head> 
<body bgcolor="ffffff">
<%
if CheckUserLogined()=False then
	response.Redirect "User_Login.asp"
end if

dim Action,FoundErr,ErrMsg
dim rsUser,sqlUser
Action=trim(request("Action"))
if  UserName="" then
	FoundErr=True
	ErrMsg=ErrMsg & "<br><li>参数不足！</li>"
end if
if FoundErr=true then
	call WriteErrMsg()
else
	Set rsUser=Server.CreateObject("Adodb.RecordSet")
	sqlUser="select * from " & db_User_Table & " where " & db_User_Name & "='" & UserName & "'"
	rsUser.Open sqlUser,Conn_User,1,3
	if rsUser.bof and rsUser.eof then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>找不到指定的用户！</li>"
		call writeErrMsg()
	else
		if Action="Modify" then
			dim UserPhoto
			UserPhoto=trim(request("UserPhoto"))
			Userinfo=trim(request("Userinfo"))
			if Sex="" then
				founderr=true

                            	rsUser(db_User_UserPhoto)=UserPhoto
				rsUser(db_User_Userinfo)=Userinfo
				
				rsUser.update
				%>				



				<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"></td>
      <td width="1" height="1"></td>
    </tr>
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="25" align="left" bgcolor="f2f2f2"><div align="center"><strong>---&nbsp;个人信息&nbsp;---</strong></div></td>
      <td bgcolor="#BCBCBC"></td>
    </tr>
  </table>
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="bcbcbc">
    <tr bgcolor="ffffff">
      <td colspan="3" align="center"><p><br>
        信息修改成功<br>
        <br>
      </p>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="25" align="center" bgcolor="fafafa"><a href="User_photoshot.asp" target="_self">返回管理</a></td>
      <td bgcolor="#BCBCBC"></td>
    </tr>
    <tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"></td>
      <td width="1" height="1"></td>
    </tr>
  </table>

<%
			else
				call WriteErrMsg()
			end if
		else

%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>芜湖播客家园，用户头像管理中心</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<script language="javascript" src="img/step_02.js"></script>
	</HEAD>
	<body>
<FORM name="Form1" action="User_photoshot.asp" method="post">
<div style="DISPLAY:none; FONT-WEIGHT:bold; Z-INDEX:100; LEFT:0px; WIDTH:0px; LINE-HEIGHT:0px; POSITION:absolute; TOP:0px; HEIGHT:0px; BACKGROUND-COLOR:#eee; TEXT-ALIGN:center"
				id="shopLoad">加载中..</div>
			<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<tr>
					<td width="30"><img height="31" src="img/tit_step02.gif" width="30"></td>
					<td style="PADDING-TOP: 3px" width="740" class=f_333333_14 bgColor="#efefef">&nbsp;<strong>芜湖播客家园：<span class="f_c10000_12">用户头像管理中心 </strong></td>
					<td width="5"><img height="31" src="imgtit_02.gif" width="5"></td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<tr>
					<td height="5"></td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<tr>
					<td width="180">
						<table cellSpacing="0" cellPadding="0" width="180" border="0">
							<tr>
								<td width="5"><img height="5" src="img/step02_01.gif" width="5"></td>
								<td width="170" background="img/step02_02.gif"></td>
								<td width="5"><img height="5" src="img/step02_03.gif" width="5"></td>
							</tr>
							<tr>
								<td vAlign="top" background="img/step02_04.gif" colSpan="3"
									height="330">
									<table cellSpacing="0" cellPadding="0" width="170" align="center" border="0">
										<tr>
											<td align="center" height="32"><strong>预览区</strong></td>
										</tr>
									</table>
									<table cellSpacing="0" cellPadding="0" width="146" align="center" border="0">
										<tr>
											<td class="sex_border" height="227"><span id="lblImgSex"><img id=imgSex height=225 src="img/sex_02.gif" width=144 onload="ShopLoad()"></span></td>
										</tr>
									</table>
									<table cellSpacing="0" cellPadding="0" width="144" align="center" border="0">
										<tr>
											<td width="109" height="63">请在右边的套装中<br>
												选择一款虚拟头像</td>
											<td width="35"><img height="27" src="img/step02_08.gif" width="27">
 </td>
										</tr>
									</table>

&nbsp;&nbsp;&nbsp;&nbsp;<input type="image" name="ImageButton1" id="ImageButton1" src="img/btn_02.gif" alt="" border="0" />
<input name="Action" type="hidden" id="Action" value="Modify">
<BR><BR>


								</td>
							</tr>
							<tr>
								<td><img height="5" src="img/step02_05.gif" width="5"></td>
								<td background="img/step02_06.gif"></td>
								<td><img height="5" src="img/step02_07.gif" width="5"></td>
							</tr>
						</table>
					</td>
					<td width="20">&nbsp;</td>
					<td vAlign="top" width="380">
						<table cellSpacing="0" cellPadding="0" width="380" border="0">
							<tr>
								<td height="29">请选择：</td>
							</tr>
							<tr>
								<td background="img/line_jgx.gif" height="1"></td>
							</tr>
						</table>
						<table cellSpacing="0" cellPadding="0" width="380" border="0">
							<tr>
								<td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20070514043454b.gif' border=0 width=65 height=70 /></td>			</tr>				<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20070514043454b.gif' onclick='SetSexImg("Show/suit/20070514043454b.gif");' />				</td>					<td width=66>&nbsp;&nbsp;女</td>	</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20070413051231b.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20070413051231b.gif' onclick='SetSexImg("Show/suit/20070413051231b.gif");'/>				</td>				<td width=66>&nbsp;&nbsp;女</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20061123112451b.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20061123112451b.gif' onclick='SetSexImg("Show/suit/20061123112451b.gif");'/>				</td>				<td width=66>&nbsp;&nbsp;女</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20061123112625b.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20061123112625b.gif' onclick='SetSexImg("Show/suit/20061123112625b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;女</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20061123111503b.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20061123111503b.gif' onclick='SetSexImg("Show/suit/20061123111503b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;女</td>			</tr>		</table>	</td>

								<td background="img/line_jgx.gif" colSpan="5" height="1"></td>
							</tr>
						</table>
						<table cellSpacing="0" cellPadding="0" width="380" border="0">
							<tr>
								<td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/200702280422198b.gif' border=0 width=65 height=70 /></a></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/200702280422198b.gif' onclick='SetSexImg("Show/suit/200702280422198b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;男</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=60 colspan=2 class=sex_border><img src='Show/suit/20070228041609b.gif' border=0 width=65 height=70 /></a></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20070228041609b.gif' onclick='SetSexImg("Show/suit/20070228041609b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;男</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border> <img src='Show/suit/20070206013216b.gif' border=0 width=65 height=70 /></a></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20070206013216b.gif' onclick='SetSexImg("Show/suit/20070206013216b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;男</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=60 colspan=2 class=sex_border><img src='Show/suit/20061129021642b.gif' border=0 width=65 height=70 /></a></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20061129021642b.gif' onclick='SetSexImg("Show/suit/20061129021642b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;男</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/20070225031359b.gif' border=0 width=65 height=70 /></a></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/20070225031359b.gif' onclick='SetSexImg("Show/suit/20070225031359b.gif");' />				</td>				<td width=66>&nbsp;&nbsp;男</td>			</tr>		</table>

	</td>
							
								<td background="img/line_jgx.gif" colSpan="5" height="1"></td>
							</tr>
						</table>
						<table cellSpacing="0" cellPadding="0" width="200" align="center" border="0">





							
						<table cellSpacing="0" cellPadding="0" width="380" border="0">
							<tr>
								<td height=1 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/image32.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/image32.gif' onclick='SetSexImg("Show/suit/image32.gif");' />				</td>				<td width=66>&nbsp;&nbsp;情侣</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/image54.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/image54.gif' onclick='SetSexImg("Show/suit/image54.gif");'/>				</td>				<td width=66>&nbsp;&nbsp;情侣</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=60 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/image40.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/image40.gif' onclick='SetSexImg("Show/suit/image40.gif");'/>				</td>				<td width=66>&nbsp;&nbsp;情侣</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/image39.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/image39.gif.gif' onclick='SetSexImg("Show/suit/image39.gif");' />				</td>				<td width=66>&nbsp;&nbsp;情侣</td>			</tr>		</table>	</td><td height=129 align=center valign=bottom><table width=62 border=0 cellspacing=0 cellpadding=0>			<tr>				<td height=62 colspan=2 class=sex_border><img src='Show/suit/image38.gif' border=0 width=65 height=70 /></td>			</tr>			<tr>				<td width=22 height=30><input type=radio name=UserPhoto id=UserPhoto value='Show/suit/image38.gif' onclick='SetSexImg("Show/suit/image38.gif");' />				</td>				<td width=66>&nbsp;&nbsp;情侣</td>			</tr>		</table>	</td></td>
<td background="img/line_jgx.gif" colSpan="5" height="1"></td></tr></table>	
</form>
</div>
</div>
</body>
</HTML>
<%
		end if
	end if
	rsUser.close
	set rsUser=nothing
end if
call CloseConn_User()
%>
