<link href="<%=CurrentSkinPath%>style.css" rel="stylesheet" type="text/css" />
<div >
	<form id="upface" enctype="multipart/form-data" method="post">
		<table class="tablebox border" align="center" cellpadding="0" cellspacing="0"  ID="Table1">
			<tr>
			 <th colspan="2">上传个人头像</th>
			</tr>
			<tr id="user_nav">
				<td width="250">上传说明</td>
				<td class="row_no">头像图片只能是<span class="t2">.GIF</span>或<span class="t2">.JPG</span>格式，大小在<span class="t2">25KB</span>以内，上传后的图片将取代原来的头像</td>
			</tr>
			<tr id="user_nav">
				<td>选择本地图片</td>
				<td class="row_no"><input id="file" name="file" type="file" style="WIDTH:250px" onpropertychange="javascript:document.getElementById('preview').src=this.value;window.opener.document.getElementById('face').value='<%=user.UserID%>'+'.jpg'"></td>
			</tr>
			<tr id="user_nav">
				<td valign="top">预览头像(仅IE有效,预览大小与前台一致)</td>
				<td class="row_no"><img id="preview" src="templates/<%=Dvbbs.Utils.TemplateInfo.CurrentTemplateName%>/images/none.gif" onload="if(this.width>120)this.width=120; if(this.height>160)this.height=160" alt="preview" ></td>
			<tr>
				<td colspan="2"><input type="submit" value="上 传" class="button_off"  ID="Submit1" NAME="Submit1"></td>
			</tr>
		</table>
	</form>
</div>

