<%@ Page Language="C#" Inherits="UserCenter.Pages.ImageBuilder" enableViewState="false" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=uft-8" />
<link rel="stylesheet" type="text/css" href="../style/comm.css" />
<link rel="stylesheet" type="text/css" href="../themes/<%=UcTheme%>/style.css"/>
<bairong:Code type="Prototype" runat="server" />
<bairong:Code type="Scriptaculous" runat="server" />
<bairong:Code type="GlobalScript" runat="server" /></head>
<body class="tbody">
<div class="txt_title">  </div>
<script type="text/javascript" language="javascript">
	function upload_submit_form()
	{
		document.forms[0].encType="multipart/form-data";
		document.forms[0].submit();
		return true;
	}
	function _showImage(oInput)
	{
		var disp = 0;
		var s = oInput.value;
		var ext;
		if (s.length<5)
			return;
		ext = s.substr(s.length-3,3).toLowerCase();
		if (ext=="jpg" || ext=="jpeg" || ext=="gif" || ext=="bmp" || ext=="png")
		{
			document.getElementById('Preview').src = s;
		}
	}
	</script>
<form runat="server">
<bairong:Message runat="server"></bairong:Message>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabtitle">
    <tr>
      <td width="1" nowrap>&nbsp;      </td>
      <td width="70" align="center" class="selected"><strong>头像图片</strong></td>
      <td width="70" align="center">
        <a href="iconBuilder.aspx" ><b> 头像图标 </b></a>      </td>
      <td nowrap>&nbsp;      </td>
    </tr>
  </table>
  <div class="settingtable">
  <div style="height:12px;overflow:hidden"></div>
    <div class="skinsetting">
    
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<td valign="top" width="200" align="left" style="padding-left:10px; padding-top:20px; padding-left:50px;">
		<p><asp:Image id="Preview" ImageUrl="~/sitefiles/bairong/icons/user/userImage.jpg" alt="???" runat="server"></asp:Image></p>
		<p>头像的尺寸为 
		  <asp:Literal ID="ltlImageSize" runat="server"></asp:Literal></p>
	
			</td>
			<td align="left" style="padding-left:20px;">
<div class="inner">
		<div id="IconNotExists" runat="server">
			您还没有设置头像图片，在这里设置一下吧
		</div>
		<h4>请选择您喜欢的图片作为头像图片(支持jpg,gif,png格式):</h4>
		<dl>
			<dd><INPUT type=file id="MyFile" size=45 runat="server"><p></p></dd>
			<dd class="submit">
                 <button class="grptitle_tab_ bd pointer b_size bold txt_title txt_left" onClick="upload_submit_form();" style="padding:6px 6px 4px 16px;height:32px;width:120px;margin:10px 4px 6px 0;"> <img src="../images/ico_upload.gif" style="margin:0 0 0 4px;" align="top"  /> 上传图片</button>
			</dd>
		</dl>
			</td>
		</tr>
	</table>
    
    </div>
    <div class="clr">&nbsp;</div>
  </div>
  <div class="toolbg toolbgline barspace" style="height:22px;*height:32px;padding-top:10px;border-top:1px solid #fff;"> 在此上传您的头像。</div>
</form>
</body>
</html>