Response.end end if
if Fields("file").Length>500000 then response.write "<script language='javascript'>alert('只允许不大于500k的图片上传');</script>" response.write "<script language='javascript'>window.location='addemployee.asp';</script>" response.end end if
'/*存至数据库*/ if Fields("file").FileName<>"" then Set rs=Server.CreateObject("ADODB.Recordset") sSql="select * from employee order by id desc" rs.open sSql,conn,2,2 if not rs.eof then iMaxid=Clng(rs("id"))+1 strlen=4-len(cstr(iMaxid)) strMaxid=string(strlen,"0") & cstr(iMaxid) else strMaxid="0001" end if rs.addnew rs("id")=strMaxid rs("title")=strTitle rs("sort")=strSort(0) rs("img").AppendChunk Fields("file").Value rs("content")=quoteChg(strContent) rs("todate")=date() &nb 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页 |