<?php require_once("seefundo.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Upload</title>
<script language="javascript" type="text/javascript" src="seefundo.js"></script>
</head>
<body>
<?php 

if(isset($_POST['upload']))
{?>
	<div id="upload_tracker">
		<img src="images/ajax-loader.gif" /> Uploading ...
	</div>
	<?php $sfd_name = sfd_upload($sfd_dir_rel); ?>
	<script language="javascript">
		document.getElementById('upload_tracker').innerHTML = "<?php echo $sfd_name; ?> uploaded";		
	</script>
	<?php
}?>

<form name="sfd_uploader" action="<?php echo(basename($_SERVER['PHP_SELF'])); ?>" method="post" enctype="multipart/form-data">
<input type="file" name="file" size="15" />
Width: <input type="text" size="3" name="x"/>
Height: <input type="text" size="3" name="y"/>
<input type="hidden" name="upload" value="upload"/>
<input type="submit" value="Upload" onclick="return sfd_validate_upload()" />
</form>
</body>
</html>
