<%Server.ScriptTimeOut=9999%>
<!--#include FILE="conn.asp"-->
<!--#include FILE="upload_5xsoft.inc"-->
<link href="../../css/cnnetstars.css" rel="stylesheet" type="text/css">
<script>
parent.document.forms[0].Submit.disabled=false;
</script>
<%
function makefilename(fname)
fname = now()
fname = replace(fname,"-",""

fname = replace(fname," ",""
fname = replace(fname,":",""

fname = replace(fname,"PM",""

fname = replace(fname,"AM",""

fname = replace(fname,"上午",""

fname = replace(fname,"下午",""

makefilename=fname
end function
set upload=new upload_5xSoft
set file=upload.file("file1"

path=server.mappath("../../soft"

if right(path,1)<>"\" then path=path&"\"
url1=file.FileName
for x = len(url1) to 1 step -1
if mid(url1,x,1) = "." then
url1 = right(url1,(len(url1)-x))
exit for
end if
next
fname = makefilename(now())
picturename=fname&"."&url1
file.SaveAs path&picturename
imgpath="[img]"&picturename&"[/img]"
%>
<body bgcolor="#EAEAEA" leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#EAEAEA"> 图片路径:<%=imgpath%> <A href="upload.asp">[继续上传]</A></td>
</tr>
</table>
<script language="javascript">
var str;
if(parent.document.forms[0].picname.value!=""

parent.document.forms[0].picname.value+="|"+"<%=picturename%>";
else
parent.document.forms[0].picname.value="<%=picturename%>";
str=parent.document.forms[0].main.value+'[img]<%=picturename%>[/img]';
parent.document.forms[0].main.value=str;
</script>