<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传文件</title>
<link href="<?=BASEURL?>modules/file/views/upload/images/upload.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php if($_POST){?>
<a href="<?=BASEURI.$imagepath?>"><img src="<?=BASEURL.$imagepath?>" width="200" /></a>
<input type="button" name="sb" value="完成" onclick="window.opener.document.getElementById('<?=$inputid?>').value='<?=$path?>';window.close();" />
<?php }else{?>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="<?=BASEURI?>file_upload/image">
  <label>
  <input type="hidden" name="inputid" value="<?=$inputid?>" />
  <input type="file" name="uploadfile" id="uploadfile" />
  <p>
    <label>
    <input type="submit" name="button" id="button" value="上传" class="button" />
    </label>
  </p>
</form>
<?php }?>
</body>
</html>
