<?
if(is_file($upfile)){
   $savepath="../../../upfiles_temp/".$upfile_name;
   copy($upfile,$savepath);
   //echo "<script>alert('".$savepath."')</script>";
   echo "<script>window.parent.".$parWinObjId.".value='".substr($savepath,3)."'</script>";
}
?>
<html>
<head>
<title>上传文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
A {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
TABLE {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
DIV {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
SPAN {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
TD {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
TH {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
INPUT {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
SELECT {
	FONT: 9pt "宋体", Verdana, Arial, Helvetica, sans-serif
}
BODY {
	PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px
}
</STYLE>
</head>
<body bgColor='menu' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form action="Upfile_Dialog.php" method="post" enctype="multipart/form-data">
<input name="upfile" size='18' type="file">
<INPUT TYPE="hidden" name='parWinObjId' value='<?=$parWinObjId?>'>
<INPUT TYPE="submit" value='上传'>
</form>
</body>
</html>
