<!-- #include file="Setup.asp" -->
<!--#include FILE="inc/UpFile_Class.asp"-->
<%
top
if CookieUserName=empty then error("<li>您还未<a href=Login.asp>登录</a>论坛")

if Request("menu")="up" then
id=Conn.Execute("Select id From [BBSXP_Users] where ID="&CookieUserID&"")(0)

UpFolder="UpFile/UpFace/"&CookieUserID&""
UpMaxFileSize=SiteSettings("MaxFaceSize")		'最大上传文件大小
UpClass="Face"
%><!--#include FILE="inc/UpFile.asp"--><%
Conn.execute("update [BBSXP_Users] set Userface='"&SaveFile&"' where ID="&CookieUserID&"")
Message=Message&"<li>头像上传成功<li><a href=UpFace.asp>返回上传头像</a><li><a href=Default.asp>返回论坛首页</a>"
succeed(""&Message&"<meta http-equiv=refresh content=3;url=UpFace.asp>")

End If

%>
<div class="mainnav">
<table cellspacing=1 cellpadding=5 border=0 width=100% class=a2>
<tr class=a3>
<td>&nbsp;<img src=images/Forum_nav.gif>&nbsp; <%ClubTree%> → <a href="UpFace.asp">上传头像</a></td>
</tr>
</table><br>

<form enctype=multipart/form-data method=Post action=UpFace.asp?menu=up>

<table cellspacing=1 cellpadding=5 border=0 width=100% class=a2>
<tr>
	<td class=a1 width="70%" align=center>请点取下面的“浏览”按键选择您要上传的图片</td>
	<td class=a1 align=center>您目前的头像</td>
</tr><tr><td class=a3 width="70%" align="center"><br>
<input type=file name="file" size=40><br><br><input type=submit value=" 确 认 "><br><br></td>
		<td class=a3 align="center"><img src="<%=Conn.Execute("Select Userface From [BBSXP_Users] where ID="&CookieUserID&"")(0)%>"></td>
</tr></table></div>
</form>
<%
htmlend
%>