<!doctype html>
<html lang="zh_CN">
<head>
<!--
<?php
$width||$width=600;
print <<<EOT
--> 
<meta charset="gb2312" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black"  />
<meta name="apple-mobile-web-app-capable" content="yes">
<title>LocalResizeIMG</title>
<style>
body {
	margin: 20px 20%;
	color:#777;
	text-align: center;
}
</style>
<body>
<form method="post" action="?action=copyimg&updir=$updir">
	<input type="file"/>
</form>
<!-- javascript================================================== -->
<script src="jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="$webdb[www_url]/images/exif/selectimg.js"></script>
<script type="text/javascript" src="$webdb[www_url]/images/exif/exif.js"></script>
<script src="localResizeIMG.js" type="text/javascript"></script>
<!-- mobileBUGFix.js ¼æÈÝÐÞ¸´ÒÆ¶¯Éè±¸ -->
<script src="mobileBUGFix.mini.js" type="text/javascript"></script>
<script type="text/javascript">
var thiswidth=$width;
$('input:file').localResizeIMG({
	width: thiswidth,
	quality: 0.8,
	success: function (result) {
		var img = new Image();
		img.src = result.base64;		
		$('body').append(img);	 
		console.log(result);
	}
});
</script>

</body>
</html>
<!--
EOT;
?>
-->