<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserHeadPhoto.aspx.cs" Inherits="JuSNS.Web.user.Space.UserHeadPhoto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title id="ptitle" runat="server">更新、上传头像</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript">

</script>    
</head>
<body>
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                
                <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/acc.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">上传头像</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                <%if (Request.QueryString["f"] == "1" && string.IsNullOrEmpty(path))
                                  {%>
                                 <li><a href="edit.aspx?f=1">第一步：基本信息</a></li>
                                 <li><a href="edit-link.aspx?f=1">第二步：联系信息</a></li>
                                 <li class="current"><a href="userheadphoto.aspx?f=1">第三步：上传头像</a></li>
                                <%}
                                  else
                                  { %>
                                 <li><a href="edit.aspx">基本信息</a></li>
                                 <li><a href="edit-link.aspx">联系信息</a></li>
                                 <li><a href="edit-like.aspx">个人爱好</a></li>
                                 <li><a href="edit-edu.aspx">教育信息</a></li>
                                 <li><a href="edit-work.aspx">工作信息</a></li>
                                 <li class="current"><a href="userheadphoto.aspx">上传头像</a></li>
                                 <li><a href="template.aspx">装扮空间</a></li>
                                 <li><a href="../privacy">隐私设置</a></li>
                                 <li><a href="../base">帐号管理</a></li>
                                 <%} %>                                 
                                </ul>
                            </div>        
                     </div>
                     <div class="body_sec_all">
                    <% =GetTiShiDivStr%>                
                    <div class="content">
                    <div id="hpic-frame">
	                    <div id="hpic-Current">
		                    <h5>当前头像</h5>
				                    <p>&bull; 你可以从你的<a href="../album/HeadAlbum.aspx?r[0]=<%=this.UserID%>&r[1]=<%=0%>">头像相册</a>里选择照片。</p>
				                    <p style="display:none;">&bull; 你也可以使用 <span class="reshow bold"><a href="UserHead-Camera.aspx?r=<%= this.UserID %>">摄像头拍照</a></span>。</p>
				                    <div style="margin:5px;" class="image">
				                    <b>标准头像：</b><br /><img src="<%=HeadImage %>" alt="标准头像" /><br />
				                    <b>100px尺寸头像：</b><br />
				                    <img src="<%=HeadImage2 %>" alt="当前头像" />
				                    </div>
	                    </div>
	                    <div id="hpic-Upload">
		                    <h5>上传头像</h5>
		                    <form method="post" action="" enctype="multipart/form-data" name="uploadpicture" id="uploadpicture" runat="server" onsubmit="return picvalue();">
			                    <div class="pstr reshow">建议使用大头照，不然缩小后可能看不清楚。</div>
			                    <div class="pstr reshow">图片尺寸建议在宽100px ~ 450px。高100px ~ 450px，否则太大，容易裁剪不完整。</div>
			                    <div class="pstr">
			         
				                    <input type="file" name="picture" class="f-text" id="picture" />
			                    </div>
                                    <div class="pstr">&bull; 上传色情、反动等照片将导致你的账号被删除。</div>
			                        <div class="pstr">
				                    <input type="submit" class="f-button" value="开始上传头像" /> 
			                    </div>
			                    <div class="spline"></div> 
			                    <%if(isHead) {%>
			                    <div class="content">如果您不需要上传头像，只对现在的头像进行裁剪，<a href="userheadphoto1.aspx" class="reshow">请点这里裁剪当前头像</a></div>
			                    <%} %>
		                    </form>
	                    </div>
	                </div>
                </div>
               <div class="spline"></div>   
               </div> 
           </div>  
           <!--底部-->
             <div class="divbottom">
              <%=this.GetHtmlFoot()%>
              </div>
           </div>
   </div>
</div>
</body>
</html>
<script type="text/javascript">
function picvalue()
{
    if(document.getElementById("picture").value=="")
    {
        alert("请选择图片");return false;
    } 
    else
    {
        return true;
    }
} 
</script>