<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if

	Set rs = Server.CreateObject("ADODB.Recordset")
	sql="select * from person where uname='"&Request.Cookies("admin_person_name")&"'"
	rs.open sql,conn,2,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传照片-个人求职管理中心-<%=homename%></title>
<LINK href="../company/images/css.css" type=text/css rel=stylesheet>
<script language="JavaScript">
<!--
function getFileExtension(filePath) { //v1.0
  fileName = ((filePath.indexOf('/') > -1) ? filePath.substring(filePath.lastIndexOf('/')+1,filePath.length) : filePath.substring(filePath.lastIndexOf('\\')+1,filePath.length));
  return fileName.substring(fileName.lastIndexOf('.')+1,fileName.length);
}
function checkFileUpload(form,extensions) { //v1.0
  document.MM_returnValue = true;
  if (extensions && extensions != '') {
    for (var i = 0; i<form.elements.length; i++) {
      field = form.elements[i];
      if (field.type.toUpperCase() != 'FILE') continue;
      if (field.value == '') {
        alert('文件框中必须保证已经有文件被选中!');
        document.MM_returnValue = false;field.focus();break;
      }
      if (extensions.toUpperCase().indexOf(getFileExtension(field.value).toUpperCase()) == -1) {
        alert('这种文件类型不允许上传!.\n只有以下类型的文件才被允许上传: ' + extensions + '.\n请选择别的文件并重新上传.');
        document.MM_returnValue = false;field.focus();break;
  } } }
}
//-->
</script>
</head>
<body>
<br class="br">
<table width="566" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/wishcn_per_title_upload.gif" width="566" height="17"></td>
  </tr>
  <tr>
    <td background="images/wishcn_per_bg.gif"><div align="center">
      <table width="95%" align="center" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td align="left" valign="top" class="p1"><span style="line-height:140%"><FONT color=#0000ff>如何使您的照片显示达到最佳效果？</FONT><BR>
1、将照片尺寸设置为<STRONG>110(宽)*140(高)</STRONG>像素。（图片标准尺寸）<BR>
2、<FONT color=#333333>图片大小不能超过</FONT><STRONG>50</STRONG><FONT color=#333333>K</FONT>。<BR>
3、图片区域应清晰显示您的头像或半身/全身相。（请勿使用艺术照）<br>4、您可以在上面预览您的照片；如果照片显示超出区域，说明照片太大。<br>5、所传照片一律为JPG、JPEG、或GIF格式。如果您没有扫描仪，可以将照片邮寄给我们，我们免费为您服务。</span></td>
        </tr>
      </table>
      <table width="95%" border="0" align="center" cellpadding="4" cellspacing="0">
		<form name="form1" method="post" action="photosave.asp" enctype="multipart/form-data" onSubmit="checkFileUpload(this,'GIF,JPG,JPEG');return document.MM_returnValue">
          <tr>
            <td height="1"></td>
          </tr>
          <tr>
            <td height="40" align="center">上传个人形象照片：
               <INPUT type="file" class="f11" name="file1" size="23">
              
             <input type=submit name="submit" value="上　传" class=anniu >
            </td>
          </tr>
          <tr>
            <td align="center"><img src="../getphoto.asp?id=<%= Request.Cookies("admin_person_id") %>&folder=person" width="110" height="140" border="1" name="preview" id="preview">
            </td>
          </tr>
        </form>
        <tr>
          <td height="1" background="../images/point_h.gif"></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td><img src="images/wishcn_per_bottom.gif" width="566" height="7"></td>
  </tr>
</table>
<%
	rs.close
	set rs = nothing
	conn.close
	set conn = nothing
%>
</body>
</html>
