<!--#include file="../Conn.asp" -->
<!--#include file="../Comm/Site_Class.asp" -->
<%
Dim strMenu,PageTitle
strMenu = ""
PagePath = "../"

Set Qsite = New Site_Class

Qsite.SiteConfig()
Qsite.GotoErrPage()

PageTitle = Qsite.SiteName & " - 个人会员管理中心"
Qsite.SiteTopPerson()
%>
<!--#include file="Check_Login.asp" -->
<%
Dim Rs
Dim PerPic
Set Rs = server.CreateObject("ADODB.recordset")

If Request.Form <> "" Then
	
	PerPic = Qsite.chgStr(Trim(Request.Form("PerPic")))
	
	If IsNull(PerPic) Then PerPic = ""
	
	Conn.Execute("update PersonTbl set PerPic = '"& PerPic &"' where PerId = "& Session("PerId") &" and UserName = '"& Session("UserName") &"'")
		
	
	Qsite.ShowMsg "资料修改成功" , "ChgPerInfo_10.asp"
	
End If

Rs.Open "select * from PersonTbl where PerId = "& Session("PerId") &" and UserName = '"& Session("UserName") &"'" , Conn , 1 , 1
If Rs.Eof Then
	Qsite.ShowMsg "请不要提交非法参数" , "../Index.asp"
Else
	PerPic = Rs("PerPic")
End If
Rs.Close
%>
<table width="974" height="413" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="185" valign="top"> 
<!--#include file="Left_Menu.asp" -->
        </td>
        <td width="789" valign="top">
<script language="javascript" src="../Comm/Comm.js"></script>
<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("PerPic" , "PerPic" , 0 , 50))
			return false;
		return true;
	}
	function UploadLogo()
	{
		window.open('Upload_Logo.asp','Upload','width=380px,height=90px,left=300,top=300');
	} 
</script>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="26" background="../images/Member_Center_r7_c8.jpg"><table width="768" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="60">&nbsp;</td>
                    <td width="708"><span style="font-size:14px;color:#FF7706"><b>照片上传</b></span><span style="font-size:14px;color:#333333"> 
                      <strong>Photo</strong></span></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td height="136" align="left" valign="top" background="../images/Member_Center_r10_c8.jpg" style="padding-top:5px;padding-left:10px;padding-right:10px;padding-bottom:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="100%" height="23"><img src="../images/ico_2.gif" width="15" height="12" align="absmiddle" />友情提示：为了您的简历能够完整的显示，请按以下上传要求进行上传！</td>
                  </tr>
                </table>
                <table width="100%" height="7" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">
                    <td background="../images/ico_point.gif"></td>
                  </tr>
				  <tr height="6">
                    <td></td>
    
                </table>


<form id="PerForm" name="PerForm" method="post" action="ChgPerInfo_10.asp" style="margin:0" onsubmit="return CheckForm();">
							<table width="100%" align=center border="0" cellpadding="5" cellspacing="3">
								<tr>
									<td width="17%" height="30" >照片上传：</td>
												<td width="83%" height="30" ><input name="PerPic" type="text"  id="PerPic" size="25" value="<%=PerPic%>" />
													<input type="submit" name="Submit" value=" 修  改 " />
	&nbsp;
	<input type="button" name="Submit" value=" 上传照片 " onClick="UploadLogo();" /></td>
								</tr>
								<tr>
									<td height="30" colspan="2"><span style="line-height:25px;">1、照片将显示在简历页面，让招聘企业更直观得了解您！
									</span></td>
								</tr>
                    <tr><td height="30" colspan="2"><span style="line-height:25px;">
                        2、建议先将企业标识处理成大小比例为：<span style="color: #ff0000">88*110</span> 
                      像素 </td>
                  </tr>
                  <tr> 
                    <td height="30" colspan="2"><span style="line-height:25px;">3、所传图片格式为<font color="#FF0000">JPEG 、GIF</font>格式，图片大小不能超过<font color="#FF0000">100</font>K</td>
                  </tr>
                  <tr> 
                    <td height="30" colspan="2"><span style="line-height:25px;">
                        4、若您已经上传过照片，在次上传，系统将会自动覆盖已上传的标志。</td>
                  </tr>
							</table>
					</form><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">  
                    <td background="../images/ico_point.gif"></td>
                  </tr>
                </table></td>
            </tr>
            <tr height="14">
              <td height="14" background="../images/Member_Center_r18_c8.jpg"></td>
            </tr>
          </table></td>
      </tr>
    </table>
 
<table width="974" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="8">
        <td height="8"></td>
      </tr>
    </table>
<%
Qsite.Bottom()
%>