<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%link="person_certificate.asp"
sUploadDir=UpFilesPath("Person")%>
<!--#include file="checkpmember.asp" -->
<!--#include file="../inc/uploadfile_inc.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>保存证书</title>
</head>
<body>
<% nn=""
 formsize = request.totalbytes
 formdata = request.binaryread(formsize)
 bcrlf = chrb(13) & chrb(10)
 divider = leftb(formdata, instrb(formdata, bcrlf) - 1)
 path = Server.MapPath(sUploadDir)
 filename = SaveFile("attachment",path,100)
 if filename = "" then error ="<p align=center><font color=red>图片大小不要超过100K！点击<a href='javascript:history.back()'>这里</a>返回重新输入</font></p>"
 if error <> "" then
  response.write "<br><br>"
  response.write error
  response.end
 end if     
%>
<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from JOB_picture"
rs.open sql,conn,3,3
rs.addnew
rs("picture_type")=21
rs("picture_filename")=nn
rs("picture_status")=0
rs("picture_member")=pmember_login
rs("picture_announcedate")=now()
rs.update
rs.close
set rs=nothing
CloseConn
response.redirect "person_certificate.asp"
%>
</body>
</html>