<!--#include file="conn.asp"-->
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrB(13) & chrB(10)
divider=leftB(formdata,clng(instrb(formdata,bncrlf))-1)
datastart=instrb(formdata,bncrlf & bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
conn.execute("update list set photo ='' where name='"&session("Username")&"'")
set rec=server.createobject("ADODB.recordset")
rec.Open "SELECT * FROM list where name='"&session("Username")&"' ",conn,1,3
rec("photo")=""
rec("photo").appendchunk mydata

rec.update

set rec=nothing
%>
<HTML><HEAD><TITLE><%=session("myName")%>_照片上载</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
<!--td {  font-family: 宋体; font-size: 9pt}
body {  font-family: 宋体; font-size: 9pt}
select {  font-family: 宋体; font-size: 9pt}
A {text-decoration: none; font-family: "宋体"; font-size: 9pt; color: #ff6666}
A:hover {text-decoration: underline; color: #666666; font-family: "宋体"; font-size: 9pt} .txt {  font-family: "宋体"; font-size: 10.5pt}
--></style>

</HEAD>
<body bgcolor="#8d8051" text="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" leftmargin="0" topmargin="0">
<div align="center"><a href=upload.asp>不满意，要重新上传</a> | <a href=javascript:location.reload();>请刷新显示</a> |<a href="main.asp?action=search">返回交友列表</a></div>
<div align="center">
<center>
<br>
<table width="46%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#CCCC99" bordercolordark="#996633">
<tr bgcolor="#8d8051">
<td colspan="3">
<div align="right"><a href=javascript:window.close();><font color="#ffffff">关闭本窗</a></div>
</td>
</tr>
<tr bgcolor="#b2a265">
<td colspan="3">
<div align="center"> <font color="#000000"><%=session("myName")%>的照片上传成功</font></div>
</td>
</tr>
<tr>
<td height="193" width="25%" bgcolor="#8d8051">文件大小:<br><%=formsize%>字节</td>
<td height="193" width="75%" bgcolor="#8d8051">
<div align="center">
<img src="showimg.asp?id=<%=session("Username")%>" align="middle"></div>
</td>
</tr>
</table>
</center>
</div><p>
<div align="center"><a href=upload.asp>不满意，要重新上传</a> | <a href=javascript:location.reload();>请刷新显示</a> |<a href="main.asp?action=search">返回交友列表</a></div>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>
<%
'end if
'end if
%>


